*{
    box-sizing:border-box;
}

html,
body{
    min-height:100%;
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    color:#e8f0ff;
    background:#07162d;
}

/* LOGIN */

.login-body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px;
    background:
        radial-gradient(circle at top left,rgba(38,110,205,.40),transparent 34%),
        radial-gradient(circle at bottom right,rgba(245,180,0,.18),transparent 30%),
        linear-gradient(135deg,#06142b,#0b2d5d);
}

.login-box{
    width:100%;
    max-width:440px;
    padding:34px;
    color:#fff;
    background:rgba(7,24,52,.95);
    border:1px solid rgba(174,211,255,.22);
    border-radius:18px;
    box-shadow:0 22px 60px rgba(0,0,0,.42);
}

.brand-area{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:30px;
}

.login-logo{
    width:74px;
    height:74px;
    object-fit:contain;
    padding:6px;
    background:#fff;
    border-radius:12px;
}

.brand-area h1{
    margin:0;
    color:#fff;
    font-size:27px;
}

.brand-area p{
    margin:7px 0 0;
    color:#a9c8f8;
    font-size:13px;
}

.login-box label{
    display:block;
    margin:16px 0 8px;
    color:#d8e8ff;
    font-size:14px;
    font-weight:700;
}

.login-box input{
    width:100%;
    height:48px;
    padding:0 14px;
    color:#0a1e3d;
    background:#eef4ff;
    border:1px solid #426a9d;
    border-radius:9px;
    outline:none;
    font-size:15px;
}

.login-box input:focus{
    border-color:#f4b400;
    box-shadow:0 0 0 3px rgba(244,180,0,.18);
}

.login-box button{
    width:100%;
    height:49px;
    margin-top:26px;
    border:0;
    border-radius:9px;
    cursor:pointer;
    color:#06142b;
    background:#f4b400;
    font-size:16px;
    font-weight:700;
}

.error{
    margin:0 0 18px;
    padding:12px;
    color:#ffe1e1;
    background:rgba(220,38,38,.22);
    border:1px solid rgba(255,132,132,.55);
    border-radius:9px;
}

.login-footer{
    margin-top:25px;
    color:#91afd5;
    text-align:center;
    font-size:12px;
}

/* DASHBOARD */

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:260px;
    min-height:100vh;
    padding:24px 16px;
    background:#081a35;
    border-right:1px solid rgba(151,190,245,.16);
}

.sidebar-brand{
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 10px 28px;
    border-bottom:1px solid rgba(151,190,245,.14);
}

.sidebar-brand img{
    width:50px;
    height:50px;
    object-fit:contain;
    padding:4px;
    background:#fff;
    border-radius:10px;
}

.sidebar-brand strong{
    display:block;
    color:#fff;
    font-size:18px;
}

.sidebar-brand span{
    display:block;
    margin-top:4px;
    color:#8faed8;
    font-size:11px;
}

.sidebar-menu{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-top:25px;
}

.sidebar-menu a{
    display:flex;
    align-items:center;
    gap:13px;
    padding:13px 14px;
    color:#a9c1e3;
    text-decoration:none;
    border-radius:10px;
    font-size:15px;
    font-weight:700;
}

.sidebar-menu a:hover,
.sidebar-menu a.active{
    color:#fff;
    background:#173b70;
}

.sidebar-menu .logout-link{
    margin-top:20px;
    color:#ffb4b4;
    background:rgba(190,45,45,.12);
}

.dashboard-main{
    min-height:100vh;
    margin-left:260px;
    padding:42px;
    background:
        radial-gradient(circle at top right,rgba(27,95,180,.24),transparent 30%),
        #07162d;
}

.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:32px;
}

.eyebrow{
    margin:0 0 8px;
    color:#8db6ee;
    font-size:11px;
    font-weight:700;
    letter-spacing:1.4px;
}

.topbar h1,
.section-title h2{
    margin:0;
    color:#fff;
}

.topbar h1{
    font-size:30px;
}

.welcome-text{
    margin:10px 0 0;
    color:#9fb8db;
}

.admin-badge{
    padding:11px 14px;
    color:#cde1ff;
    background:#0c284e;
    border:1px solid #244c7d;
    border-radius:10px;
    font-size:13px;
    font-weight:700;
}

.admin-dot,
.status-dot{
    display:inline-block;
    width:10px;
    height:10px;
    margin-right:7px;
    background:#36d576;
    border-radius:50%;
    box-shadow:0 0 12px rgba(54,213,118,.8);
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

.service-card,
.status-panel{
    background:#0b2141;
    border:1px solid rgba(137,182,239,.18);
    border-radius:15px;
    box-shadow:0 14px 32px rgba(0,0,0,.16);
}

.service-card{
    padding:22px;
}

.service-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    margin-bottom:17px;
    color:#07162d;
    background:#f4b400;
    border-radius:11px;
    font-size:16px;
    font-weight:800;
}

.service-card h3{
    margin:0;
    color:#fff;
    font-size:18px;
}

.service-card p{
    min-height:38px;
    margin:10px 0 17px;
    color:#9eb9de;
    font-size:13px;
    line-height:1.45;
}

.service-card a{
    color:#f9c432;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}

.status-panel{
    margin-top:24px;
    padding:25px;
}

.section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:22px;
}

.section-title h2{
    font-size:21px;
}

.live-label{
    color:#5ce895;
    font-size:12px;
    font-weight:700;
}

.status-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}

.status-item{
    display:flex;
    align-items:center;
    padding:16px;
    background:#0e2a50;
    border:1px solid rgba(137,182,239,.13);
    border-radius:11px;
}

.status-item strong{
    display:block;
    color:#fff;
    font-size:14px;
}

.status-item small{
    display:block;
    margin-top:5px;
    color:#91afd5;
    font-size:12px;
}

@media(max-width:1050px){
    .service-grid,
    .status-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:720px){
    .sidebar{
        position:relative;
        width:100%;
        min-height:auto;
    }

    .dashboard-main{
        margin-left:0;
        padding:22px;
    }

    .topbar{
        align-items:flex-start;
        flex-direction:column;
    }

    .service-grid,
    .status-grid{
        grid-template-columns:1fr;
    }
}
