/* ==========================================
   BOALKHALI SERVICES
   style.css
========================================== */

/* ---------- CSS VARIABLES ---------- */

:root{

    --primary:#0d6efd;
    --primary-dark:#0b5ed7;
    --secondary:#198754;
    --accent:#ffc107;

    --bg:#f4f7fb;
    --surface:#ffffff;

    --text:#222;
    --text-light:#666;

    --border:#e2e8f0;

    --radius:14px;

    --shadow:
        0 5px 15px rgba(0,0,0,.08);

}

/* ---------- RESET ---------- */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:

    system-ui,

    -apple-system,

    sans-serif;

    line-height:1.5;

}

/* ---------- LINKS ---------- */

a{

    text-decoration:none;
    color:inherit;

}

/* ---------- BUTTON ---------- */

button{

    cursor:pointer;

    border:none;

    border-radius:10px;

    transition:.25s;

    font-size:15px;

}

button:hover{

    opacity:.92;

}

/* ---------- HEADER ---------- */

.header{

    position:sticky;

    top:0;

    z-index:500;

    background:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 20px;

    box-shadow:var(--shadow);

}

.logo{

    font-size:22px;

    font-weight:700;

    color:var(--primary);

}

/* ---------- NAV ---------- */

nav{

    display:flex;

    gap:8px;

}

.nav-link{

    background:none;

    padding:10px 14px;

    color:#333;

}

.nav-link:hover{

    background:#eef4ff;

}

.nav-link.active{

    background:var(--primary);

    color:white;

}

.admin-btn{

    background:var(--secondary);

    color:white;

}

.menu-btn{

    display:none;

    background:none;

    font-size:28px;

}

/* ---------- MAIN ---------- */

main{

    width:min(1200px,95%);

    margin:auto;

    padding:30px 0 90px;

}

/* ---------- PAGE ---------- */

.page{

    display:none;

}

.active-page{

    display:block;

}

/* ---------- HERO ---------- */

.hero{

    background:linear-gradient(

        135deg,

        var(--primary),

        #4ea5ff

    );

    color:white;

    border-radius:20px;

    padding:45px 25px;

    text-align:center;

    margin-bottom:35px;

}

.hero h1{

    font-size:36px;

    margin-bottom:15px;

}

.hero p{

    max-width:650px;

    margin:auto;

    opacity:.95;

}

/* ---------- SEARCH ---------- */

.search-box{

    margin-top:30px;

    display:grid;

    gap:12px;

    grid-template-columns:

    repeat(auto-fit,minmax(220px,1fr));

}

.search-box select,

.search-box button{

    padding:14px;

    border-radius:12px;

}

.search-box button{

    background:white;

    color:var(--primary);

    font-weight:bold;

}

/* ---------- GRID ---------- */

.grid{

    display:grid;

    grid-template-columns:

    repeat(auto-fill,minmax(270px,1fr));

    gap:20px;

    margin:25px 0;

}

/* ---------- CARD ---------- */

.card{

    background:var(--surface);

    border-radius:16px;

    padding:18px;

    box-shadow:var(--shadow);

    transition:.3s;

}

.card:hover{

    transform:translateY(-4px);

}

.card h3{

    margin-bottom:10px;

}

.card p{

    color:var(--text-light);

    font-size:14px;

    margin-bottom:8px;

}

.card .badge{

    display:inline-block;

    background:#eef4ff;

    color:var(--primary);

    padding:4px 10px;

    border-radius:20px;

    font-size:12px;

    margin:4px;

}

/* ---------- PROVIDER ACTION ---------- */

.provider-actions{

    display:flex;

    gap:10px;

    margin-top:15px;

}

.provider-actions button{

    flex:1;

    padding:11px;

}

.primary-btn{

    background:var(--primary);

    color:white;

}

.secondary-btn{

    background:#edf2f7;

}

/* ---------- FILTER ---------- */

.filters{

    display:grid;

    gap:12px;

    margin:25px 0;

    grid-template-columns:

    repeat(auto-fit,minmax(200px,1fr));

}

.filters input,

.filters select,

.filters button{

    padding:13px;

}

/* ---------- FORM ---------- */

form{

    background:white;

    padding:20px;

    border-radius:15px;

    box-shadow:var(--shadow);

}

form input,

form textarea,

form select{

    width:100%;

    padding:13px;

    margin:10px 0;

    border:1px solid var(--border);

    border-radius:10px;

    font-size:15px;

}

textarea{

    min-height:130px;

    resize:vertical;

}

form button{

    width:100%;

    padding:15px;

    background:var(--primary);

    color:white;

    margin-top:12px;

}

/* ---------- BACK BUTTON ---------- */

.backBtn{

    background:#f1f5f9;

    padding:12px 18px;

    margin-bottom:20px;

}

/* ---------- ADMIN ---------- */

.stats{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(180px,1fr));

    gap:18px;

    margin:25px 0;

}

.stat{

    background:white;

    border-radius:14px;

    padding:20px;

    text-align:center;

    box-shadow:var(--shadow);

}

.stat h3{

    font-size:34px;

    color:var(--primary);

}

/* ---------- TABLE ---------- */

table{

    width:100%;

    border-collapse:collapse;

    background:white;

    margin:20px 0;

}

th,td{

    padding:12px;

    border:1px solid #ddd;

    text-align:left;

}

th{

    background:#f7f7f7;

}

/* ---------- TOAST ---------- */

#toast{

    position:fixed;

    right:20px;

    bottom:95px;

    background:#222;

    color:white;

    padding:15px 22px;

    border-radius:10px;

    display:none;

    z-index:9999;

    box-shadow:var(--shadow);

}

.toast-success{

    background:var(--secondary);

}

.toast-error{

    background:#dc3545;

}

.toast-warning{

    background:#ff9800;

}

.toast-info{

    background:var(--primary);

}

/* ---------- MODAL ---------- */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    justify-content:center;

    align-items:center;

    padding:20px;

    z-index:1000;

}

.modal-box{

    background:white;

    width:min(600px,100%);

    border-radius:16px;

    padding:25px;

    position:relative;

    max-height:90vh;

    overflow:auto;

}

#closeModal{

    position:absolute;

    right:15px;

    top:15px;

    background:#eee;

    width:36px;

    height:36px;

    border-radius:50%;

}

/* ---------- MOBILE NAV ---------- */

.mobile-nav{

    position:fixed;

    bottom:0;

    left:0;

    right:0;

    background:white;

    display:none;

    justify-content:space-around;

    box-shadow:0 -4px 12px rgba(0,0,0,.08);

    padding:10px;

    z-index:999;

}

.mobile-nav button{

    background:none;

    font-size:24px;

}

/* ---------- FOOTER SPACE ---------- */

body{

    padding-bottom:80px;

}

/* ---------- RESPONSIVE ---------- */

@media(max-width:900px){

    nav{

        display:none;

        position:absolute;

        top:70px;

        left:0;

        right:0;

        background:white;

        flex-direction:column;

        padding:15px;

        box-shadow:var(--shadow);

    }

    nav.show{

        display:flex;

    }

    .menu-btn{

        display:block;

    }

    .hero h1{

        font-size:28px;

    }

    .mobile-nav{

        display:flex;

    }

}

@media(max-width:600px){

    main{

        width:94%;

    }

    .hero{

        padding:30px 18px;

    }

    .hero h1{

        font-size:24px;

    }

    .grid{

        grid-template-columns:1fr;

    }

    .provider-actions{

        flex-direction:column;

    }

}