*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Inter,Arial,sans-serif;
    background:#0f172a;
    color:#e2e8f0;
    min-height:100vh;
}

a{
    text-decoration:none;
}

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

/* SIDEBAR */

.sidebar{
    width:280px;
    background:linear-gradient(180deg,#111827,#0f172a);
    border-right:1px solid rgba(255,255,255,0.06);
    padding:30px 20px;
    position:sticky;
    top:0;
    height:100vh;
}

.sidebar h2{
    color:#fff;
    font-size:28px;
    margin-bottom:40px;
    line-height:1.3;
}

.sidebar h2 small{
    color:#94a3b8;
    font-size:14px;
    font-weight:400;
}

.sidebar a{
    display:block;
    color:#cbd5e1;
    padding:14px 18px;
    border-radius:14px;
    margin-bottom:10px;
    transition:0.25s;
    font-size:15px;
    font-weight:500;
}

.sidebar a:hover{
    background:#1e293b;
    color:#38bdf8;
    transform:translateX(4px);
}

/* MAIN */

.main{
    flex:1;
    padding:40px;
}

.main h1{
    font-size:38px;
    margin-bottom:30px;
    color:#fff;
}

/* CARDS */

.card{
    background:rgba(15,23,42,0.85);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:24px;
    padding:30px;
    margin-bottom:25px;
    backdrop-filter:blur(12px);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.card h2{
    font-size:24px;
    margin-bottom:20px;
    color:#fff;
}

.card h3{
    margin-bottom:10px;
    color:#fff;
}

.card p{
    color:#cbd5e1;
    line-height:1.7;
    margin-bottom:10px;
}

/* FORMS */

input,
textarea,
select{
    width:100%;
    background:#0f172a;
    border:1px solid #334155;
    color:#fff;
    border-radius:14px;
    padding:14px;
    font-size:15px;
    transition:0.25s;
}

input:focus,
textarea:focus,
select:focus{
    outline:none;
    border-color:#38bdf8;
    box-shadow:0 0 0 4px rgba(56,189,248,0.15);
}

textarea{
    resize:vertical;
}

/* BUTTONS */

button{
    background:linear-gradient(135deg,#38bdf8,#0ea5e9);
    border:none;
    color:#fff;
    padding:14px 24px;
    border-radius:14px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.25s;
    box-shadow:0 10px 20px rgba(14,165,233,0.2);
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(14,165,233,0.3);
}

/* LINKS */

.card a{
    color:#38bdf8;
    transition:0.25s;
}

.card a:hover{
    color:#7dd3fc;
}

/* STATUS BLOCK */

.status-box{
    background:#020617;
    border:1px solid #1e293b;
    padding:15px;
    border-radius:14px;
}

/* PROGRESS BAR */

.progress{
    background:#1e293b;
    border-radius:20px;
    overflow:hidden;
    height:18px;
    margin-top:15px;
}

.progress-bar{
    height:100%;
    background:linear-gradient(90deg,#38bdf8,#0ea5e9);
    border-radius:20px;
}

/* TABLE STYLE */

.table{
    width:100%;
    border-collapse:collapse;
}

.table tr{
    border-bottom:1px solid rgba(255,255,255,0.06);
}

.table td{
    padding:16px 0;
}

/* ALERTS */

.alert{
    background:#082f49;
    border:1px solid #0ea5e9;
    color:#bae6fd;
    padding:15px;
    border-radius:14px;
    margin-bottom:20px;
}

/* MOBILE */

@media(max-width:980px){

    .wrapper{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
        border-right:none;
        border-bottom:1px solid rgba(255,255,255,0.06);
    }

    .main{
        padding:20px;
    }

    .main h1{
        font-size:30px;
    }

    .card{
        padding:20px;
    }
}
.sidebar a.active{
    background:linear-gradient(135deg,#0ea5e9,#2563eb);
    color:#fff;
    box-shadow:0 10px 25px rgba(14,165,233,0.25);
/* TOPBAR */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    background:rgba(15,23,42,0.75);
    border:1px solid rgba(255,255,255,0.05);
    padding:18px 24px;
    border-radius:22px;
    backdrop-filter:blur(10px);
}

.topbar-left h3{
    color:#fff;
    font-size:22px;
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.status-online{
    display:flex;
    align-items:center;
    gap:10px;
    color:#cbd5e1;
    font-size:14px;
}

.dot{
    width:10px;
    height:10px;
    background:#22c55e;
    border-radius:50%;
    box-shadow:0 0 15px #22c55e;
}

.user-badge{
    background:#0f172a;
    border:1px solid rgba(255,255,255,0.06);
    padding:12px 18px;
    border-radius:14px;
    color:#fff;
    font-size:14px;
    display:flex;
    flex-direction:column;
}

.user-badge small{
    color:#94a3b8;
    margin-top:4px;
}}
/* AUTH SCREEN */

.auth-wrapper{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
    position:relative;
    overflow:hidden;
}

.auth-wrapper::before{
    content:'';
    position:absolute;
    width:700px;
    height:700px;
    background:radial-gradient(circle,#0ea5e955 0%,transparent 70%);
    top:-250px;
    right:-200px;
    z-index:0;
}

.auth-wrapper::after{
    content:'';
    position:absolute;
    width:600px;
    height:600px;
    background:radial-gradient(circle,#2563eb44 0%,transparent 70%);
    bottom:-250px;
    left:-200px;
    z-index:0;
}

.auth-card{
    width:100%;
    max-width:650px;
    background:rgba(15,23,42,0.82);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:32px;
    padding:60px;
    position:relative;
    z-index:2;
    backdrop-filter:blur(18px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-logo{
    margin-bottom:20px;
}

.auth-logo h1{
    font-size:54px;
    color:#fff;
    line-height:1.1;
    margin-bottom:15px;
}

.auth-logo p{
    color:#94a3b8;
    font-size:20px;
    line-height:1.7;
}

.auth-form{
    margin-top:40px;
}

.auth-form input{
    margin-bottom:18px;
    height:58px;
    font-size:16px;
}

.auth-form button{
    width:100%;
    height:58px;
    margin-top:10px;
    font-size:16px;
    border-radius:16px;
}

.auth-footer{
    margin-top:35px;
    text-align:center;
}

.auth-footer a{
    color:#38bdf8;
    font-size:17px;
}

.auth-footer a:hover{
    color:#7dd3fc;
}

.auth-glow{
    position:absolute;
    width:300px;
    height:300px;
    background:#0ea5e922;
    filter:blur(100px);
    border-radius:50%;
    animation:floatGlow 6s ease-in-out infinite;
}

.auth-glow.one{
    top:10%;
    left:10%;
}

.auth-glow.two{
    bottom:10%;
    right:10%;
    animation-delay:2s;
}

@keyframes floatGlow{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-25px);
    }
    100%{
        transform:translateY(0px);
    }
}
/* AUTH FIX FINAL */

body:has(.auth-wrapper){
    background:#0f172a;
}

.auth-wrapper{
    width:100%;
    min-height:100vh;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:40px;
}

.auth-card{
    width:100%;
    max-width:620px;
    background:#111827;
    border:1px solid #334155;
    border-radius:28px;
    padding:50px;
    box-shadow:0 30px 80px rgba(0,0,0,.45);
}

.auth-logo h1{
    font-size:44px;
    margin-bottom:15px;
}

.auth-logo p{
    font-size:18px;
    color:#cbd5e1;
    margin-bottom:30px;
}

.auth-form input{
    width:100%;
    display:block;
    margin-bottom:16px;
}

.auth-form button{
    width:100%;
}

.auth-footer{
    text-align:center;
    margin-top:25px;
}
