/* =========================================
   MediFind India
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f4f7fb;
    color:#333;
}

/* ================= HEADER ================= */

header{
    background:#0d6efd;
    color:#fff;
    padding:15px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:34px;
    font-weight:700;
}

nav{
    display:flex;
    gap:25px;
    align-items:center;
}

nav a{
    color:#fff;
    text-decoration:none;
    font-size:17px;
    transition:.3s;
}

nav a:hover{
    opacity:.8;
}

.admin-btn{
    background:#111;
    padding:10px 18px;
    border-radius:8px;
}

/* ================= HERO ================= */

.hero{

    min-height:85vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#1565C0,#42A5F5);

    padding:40px;

}

/* ================= SEARCH CARD ================= */

.search-card{

    width:850px;

    max-width:95%;

    background:#fff;

    border-radius:20px;

    padding:50px;

    box-shadow:0 20px 50px rgba(0,0,0,.18);

}

.search-card h1{

    text-align:center;

    font-size:48px;

    margin-bottom:10px;

}

.search-card p{

    text-align:center;

    color:#777;

    margin-bottom:35px;

    font-size:18px;

}

/* ================= FORM ================= */

.search-card form{

    position:relative;

}

.search-row{

    display:flex;

    align-items:center;

}

/* Input */

#medicine{

    flex:1;

    height:60px;

    padding:0 20px;

    border:2px solid #ddd;

    border-right:none;

    border-radius:12px 0 0 12px;

    font-size:18px;

    outline:none;

}

#medicine:focus{

    border-color:#0d6efd;

}

/* GPS */

#gpsBtn{

    width:70px;

    height:60px;

    border:none;

    background:#28a745;

    color:#fff;

    font-size:24px;

    cursor:pointer;

}

#gpsBtn:hover{

    background:#1f8a37;

}

/* Search */

button[type=submit]{

    width:150px;

    height:60px;

    border:none;

    background:#0d6efd;

    color:#fff;

    font-size:18px;

    font-weight:600;

    border-radius:0 12px 12px 0;

    cursor:pointer;

}

button[type=submit]:hover{

    background:#0056d2;

}

/* ================= SUGGESTION ================= */

#suggestions{

    display:none;

    position:absolute;

    left:0;

    top:60px;

    width:calc(100% - 220px);

    background:#fff;

    border:1px solid #ddd;

    border-top:none;

    border-radius:0 0 12px 12px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

    z-index:9999;

}

.suggest-item{

    padding:14px 18px;

    cursor:pointer;

    border-bottom:1px solid #eee;

}

.suggest-item:last-child{

    border-bottom:none;

}

.suggest-item:hover{

    background:#0d6efd;

    color:#fff;

}

/* ================= LOGIN ================= */

.login-box{

    width:420px;

    margin:60px auto;

    background:#fff;

    padding:35px;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

}

.login-box h2{

    margin-bottom:20px;

    text-align:center;

}

.login-box input{

    width:100%;

    padding:14px;

    margin-bottom:15px;

    border:1px solid #ccc;

    border-radius:8px;

}

.login-box button{

    width:100%;

    height:50px;

    border:none;

    background:#0d6efd;

    color:#fff;

    border-radius:8px;

}

/* ================= DASHBOARD ================= */

.dashboard-cards{

    display:flex;

    justify-content:center;

    gap:25px;

    flex-wrap:wrap;

    margin:50px;

}

.card{

    width:260px;

    background:#fff;

    padding:25px;

    border-radius:15px;

    box-shadow:0 10px 25px rgba(0,0,0,.12);

    text-align:center;

}

.card h2{

    margin-bottom:10px;

}

.card a{

    display:inline-block;

    margin-top:15px;

    background:#0d6efd;

    color:#fff;

    text-decoration:none;

    padding:10px 18px;

    border-radius:8px;

}

/* ================= FOOTER ================= */

footer{

    background:#222;

    color:#fff;

    text-align:center;

    padding:20px;

}

/* ================= MOBILE ================= */

@media(max-width:768px){

header{

    flex-direction:column;

    gap:15px;

}

nav{

    flex-wrap:wrap;

    justify-content:center;

}

.search-card{

    padding:25px;

}

.search-card h1{

    font-size:34px;

}

.search-row{

    flex-direction:column;

}

#medicine{

    width:100%;

    border-radius:10px;

    border-right:2px solid #ddd;

    margin-bottom:10px;

}

#gpsBtn{

    width:100%;

    border-radius:10px;

    margin-bottom:10px;

}

button[type=submit]{

    width:100%;

    border-radius:10px;

}

#suggestions{

    width:100%;

}

}