/* =========================================================
   ADMIN MODERN DASHBOARD
========================================================= */

:root{
    --green:#0f8a4b;
    --green-dark:#0b5f36;
    --orange:#f59e0b;
    --blue:#2563eb;
    --bg:#f3f7f5;
    --text:#172033;
    --muted:#6b7280;
    --card:#ffffff;
    --border:#e5e7eb;
}

*{ box-sizing:border-box; }

body{
    margin:0;
    font-family:'Segoe UI', sans-serif;
    background:var(--bg);
    color:var(--text);
}

.admin-shell{
    min-height:100vh;
    display:flex;
}

/* SIDEBAR */
.admin-sidebar{
    width:270px;
    background:linear-gradient(180deg,#083b25,#0f8a4b);
    color:#fff;
    padding:24px;
    position:sticky;
    top:0;
    height:100vh;
}

.brand-box{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:35px;
}

.brand-icon{
    width:48px;
    height:48px;
    border-radius:16px;
    background:#fff;
    color:var(--green);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}

.brand-box h5{
    margin:0;
    font-weight:800;
}

.brand-box small{ opacity:.8; }

.side-menu{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.side-menu a{
    color:#eafff3;
    text-decoration:none;
    padding:12px 14px;
    border-radius:14px;
    font-weight:600;
    transition:.25s;
}

.side-menu a:hover{
    background:rgba(255,255,255,.15);
    transform:translateX(4px);
}

.side-menu .logout{
    margin-top:18px;
    background:rgba(255,255,255,.12);
}

/* MAIN */
.admin-main{
    flex:1;
    padding:24px;
}

.topbar{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:18px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-shadow:0 8px 24px rgba(15,138,75,.06);
    margin-bottom:24px;
}

.topbar h4{
    margin:0;
    font-weight:800;
    color:var(--green-dark);
}

.topbar small{ color:var(--muted); }

.admin-profile{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
}

.avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#ecfdf5;
    color:var(--green);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}

/* HEADER */
.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:24px;
}

.eyebrow{
    color:var(--orange);
    font-weight:800;
    text-transform:uppercase;
    font-size:12px;
    letter-spacing:.08em;
}

.dashboard-header h1{
    font-size:38px;
    font-weight:900;
    margin:5px 0;
}

.dashboard-header p{
    color:var(--muted);
    margin:0;
}

.btn-add{
    background:var(--green);
    color:#fff;
    text-decoration:none;
    padding:13px 18px;
    border-radius:14px;
    font-weight:800;
    box-shadow:0 10px 22px rgba(15,138,75,.22);
}

.btn-add:hover{
    background:var(--green-dark);
    color:#fff;
}

/* STATS */
.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-bottom:24px;
}

.stat-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:24px;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    box-shadow:0 8px 22px rgba(0,0,0,.04);
    position:relative;
    overflow:hidden;
}

.stat-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:6px;
    height:100%;
}

.accent-green::before{background:var(--green);}
.accent-orange::before{background:var(--orange);}
.accent-blue::before{background:var(--blue);}

.stat-card small{
    color:var(--muted);
    font-weight:800;
}

.stat-card h2{
    font-size:42px;
    font-weight:900;
    margin:8px 0;
}

.stat-card p{
    margin:0;
    color:var(--muted);
}

.stat-icon{
    width:54px;
    height:54px;
    border-radius:18px;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:25px;
}

/* PANELS */
.content-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:18px;
}

.panel-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:22px;
    box-shadow:0 8px 22px rgba(0,0,0,.04);
}

.panel-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.panel-head h5,
.quick-card h5{
    font-weight:900;
    margin:0;
}

.panel-head a{
    text-decoration:none;
    color:var(--green);
    font-weight:800;
}

.table{ margin:0; }

.table th{
    color:#6b7280;
    font-size:13px;
}

.status-pill{
    background:#ecfdf5;
    color:var(--green);
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.quick-card{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.quick-card a{
    text-decoration:none;
    color:#1f2937;
    background:#f9fafb;
    padding:13px 14px;
    border-radius:14px;
    font-weight:700;
    transition:.25s;
}

.quick-card a:hover{
    background:#ecfdf5;
    color:var(--green);
    transform:translateX(4px);
}

/* RESPONSIVE */
@media(max-width:992px){
    .admin-shell{ flex-direction:column; }

    .admin-sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .side-menu{
        flex-direction:row;
        overflow-x:auto;
        padding-bottom:4px;
    }

    .side-menu a{ white-space:nowrap; }

    .stats-grid,
    .content-grid{
        grid-template-columns:1fr;
    }

    .dashboard-header{
        flex-direction:column;
        align-items:flex-start;
    }
}

@media(max-width:576px){
    .admin-main{ padding:16px; }

    .topbar{ border-radius:18px; }

    .dashboard-header h1{ font-size:28px; }

    .stat-card h2{ font-size:34px; }
}
