:root{
    --sidebar:#0b1739;
    --sidebar-soft:#15264e;
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --background:#f3f6fb;
    --surface:#ffffff;
    --border:#e5eaf2;
    --text:#172033;
    --muted:#667085;
    --success:#067647;
    --danger:#b42318;
    --sidebar-width:255px;
}

*{box-sizing:border-box}

body{
    margin:0;
    background:var(--background);
    color:var(--text);
    font-family:Inter,Arial,sans-serif;
}

body.admin-dashboard{
    padding-left:var(--sidebar-width);
}

body.admin-dashboard header{
    position:fixed;
    top:0;
    left:var(--sidebar-width);
    right:0;
    height:72px;
    z-index:900;
    padding:0 28px;
    background:rgba(255,255,255,.96);
    color:var(--text);
    border-bottom:1px solid var(--border);
    box-shadow:0 2px 10px rgba(16,24,40,.04);
    backdrop-filter:blur(8px);
}

body.admin-dashboard header strong{
    font-size:19px;
    font-weight:800;
    letter-spacing:-.3px;
}

body.admin-dashboard header a{
    color:var(--primary);
    font-weight:700;
}

body.admin-dashboard .wrap{
    max-width:none;
    margin:0;
    padding:100px 28px 35px;
}

body.admin-dashboard nav{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:var(--sidebar-width);
    z-index:1000;
    display:flex;
    flex-direction:column;
    gap:7px;
    margin:0;
    padding:95px 16px 24px;
    background:linear-gradient(180deg,var(--sidebar) 0%,#101f48 100%);
    box-shadow:8px 0 30px rgba(16,24,40,.08);
}

body.admin-dashboard nav::before{
    content:"PRICE PORTAL";
    position:absolute;
    top:27px;
    left:24px;
    color:#fff;
    font-size:18px;
    font-weight:900;
    letter-spacing:.8px;
}

body.admin-dashboard nav::after{
    content:"Customer Management";
    position:absolute;
    top:51px;
    left:24px;
    color:#9fb0d0;
    font-size:12px;
}

body.admin-dashboard nav a{
    position:relative;
    display:flex;
    align-items:center;
    gap:12px;
    min-height:46px;
    padding:12px 14px;
    color:#cbd5e1;
    background:transparent;
    border:0;
    border-radius:11px;
    font-weight:700;
    transition:.2s ease;
}

body.admin-dashboard nav a:hover,
body.admin-dashboard nav a.active{
    color:#fff;
    background:var(--sidebar-soft);
    transform:translateX(2px);
}

body.admin-dashboard nav a.active::before{
    content:"";
    position:absolute;
    left:-16px;
    top:9px;
    bottom:9px;
    width:4px;
    border-radius:0 5px 5px 0;
    background:#60a5fa;
}

body.admin-dashboard nav a .menu-icon{
    width:24px;
    text-align:center;
    font-size:18px;
}

.card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:16px;
    padding:24px;
    margin-bottom:22px;
    box-shadow:0 8px 30px rgba(16,24,40,.055);
}

.card h2{
    margin:0 0 20px;
    font-size:21px;
    letter-spacing:-.3px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
}

label{
    color:#344054;
    font-size:14px;
    font-weight:700;
}

input,
select{
    min-height:44px;
    padding:11px 13px;
    background:#fff;
    border:1px solid #d0d5dd;
    border-radius:9px;
    outline:none;
    transition:.2s ease;
}

input:focus,
select:focus{
    border-color:#84adff;
    box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

button,
.btn{
    min-height:42px;
    padding:11px 17px;
    border:0;
    border-radius:9px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    font-weight:800;
    box-shadow:0 5px 14px rgba(37,99,235,.22);
    transition:.2s ease;
}

button:hover,
.btn:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(37,99,235,.26);
}

table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:12px;
}

th{
    padding:13px 14px;
    background:#f8fafc;
    color:#475467;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.4px;
    border-bottom:1px solid var(--border);
}

td{
    padding:14px;
    background:#fff;
    border-bottom:1px solid #edf0f5;
    vertical-align:middle;
}

tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#fafcff}

.alert{
    border:1px solid transparent;
    border-radius:11px;
    padding:14px 16px;
    font-weight:700;
}

.ok{
    background:#ecfdf3;
    color:var(--success);
    border-color:#abefc6;
}

.bad{
    background:#fef3f2;
    color:var(--danger);
    border-color:#fecdca;
}

.customers{
    background:#fafbfc;
    border:1px solid var(--border);
    border-radius:10px;
    padding:12px;
}

.check{
    padding:8px 5px;
    border-bottom:1px solid #edf0f5;
}

.check:last-child{border-bottom:0}

.login{
    border:1px solid var(--border);
    box-shadow:0 22px 60px rgba(16,24,40,.13);
}

@media(max-width:900px){
    body.admin-dashboard{
        padding-left:0;
    }

    body.admin-dashboard header{
        left:0;
        height:65px;
        padding:0 16px;
    }

    body.admin-dashboard .wrap{
        padding:85px 14px 90px;
    }

    body.admin-dashboard nav{
        top:auto;
        right:0;
        width:auto;
        height:70px;
        padding:8px;
        flex-direction:row;
        justify-content:space-around;
        align-items:center;
        box-shadow:0 -5px 25px rgba(16,24,40,.12);
    }

    body.admin-dashboard nav::before,
    body.admin-dashboard nav::after{
        display:none;
    }

    body.admin-dashboard nav a{
        flex:1;
        justify-content:center;
        flex-direction:column;
        gap:2px;
        min-height:54px;
        padding:5px;
        font-size:10px;
        text-align:center;
    }

    body.admin-dashboard nav a.active::before{
        left:20%;
        right:20%;
        top:-8px;
        bottom:auto;
        width:auto;
        height:3px;
        border-radius:0 0 5px 5px;
    }

    body.admin-dashboard nav a .menu-icon{
        font-size:18px;
    }

    .card{
        padding:17px;
        border-radius:13px;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }
}
