:root{
    --primary:#0d6efd;
    --success:#198754;
    --danger:#dc3545;
    --dark:#212529;
    --border:#e9ecef;
    --bg:#f5f7fb;
    --card:#ffffff;
}

body{
    background:var(--bg);
    font-family:Inter,Segoe UI,Tahoma,sans-serif;
    color:#212529;
}

.topbar{
    background:#fff;
    border-bottom:1px solid var(--border);
    padding:15px 25px;
    position:sticky;
    top:0;
    z-index:1000;
}

.brand-title{
    font-size:22px;
    font-weight:700;
    margin:0;
}

.card{
    border:none;
    border-radius:14px;
    background:var(--card);
    box-shadow:0 2px 12px rgba(0,0,0,.05);
}

.card h6{
    color:#6c757d;
    font-size:14px;
    margin-bottom:10px;
}

.stat-number{
    font-size:30px;
    font-weight:700;
    line-height:1.2;
}

.status-online{
    color:var(--success);
}

.status-offline{
    color:var(--danger);
}

.table{
    margin-bottom:0;
}

.table thead th{
    background:#f8f9fa;
    font-size:13px;
    border-bottom:1px solid #dee2e6;
}

.badge-up{
    background:#d1e7dd;
    color:#0f5132;
    padding:6px 10px;
    border-radius:6px;
    font-weight:600;
}

.badge-down{
    background:#f8d7da;
    color:#842029;
    padding:6px 10px;
    border-radius:6px;
    font-weight:600;
}

.login-wrapper{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-card{
    width:100%;
    max-width:420px;
    border:none;
    border-radius:16px;
    box-shadow:0 5px 25px rgba(0,0,0,.08);
}

.login-header{
    text-align:center;
    padding-bottom:15px;
}

.login-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:5px;
}

.login-subtitle{
    color:#6c757d;
    font-size:14px;
}

.footer{
    text-align:center;
    color:#6c757d;
    padding:25px 0;
    font-size:14px;
}

.btn-primary{
    border-radius:10px;
}

.form-control{
    border-radius:10px;
}

.table-responsive{
    overflow-x:auto;
}

@media (max-width:768px){

    .topbar{
        padding:12px 15px;
    }

    .brand-title{
        font-size:18px;
    }

    .stat-number{
        font-size:24px;
    }

}

/* ===== Layout ===== */

.sidebar{
    min-height:100vh;
    background:#1f2937;
    color:#fff;
}

.sidebar-brand{
    padding:20px;
    font-size:22px;
    font-weight:700;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar-menu{
    padding:15px 0;
}

.sidebar-menu a{
    display:block;
    color:#d1d5db;
    text-decoration:none;
    padding:12px 20px;
    transition:.2s;
}

.sidebar-menu a:hover{
    background:#374151;
    color:#fff;
}

.sidebar-menu a.active{
    background:#0d6efd;
    color:#fff;
}

.content-area{
    padding:25px;
}

.top-navbar{
    background:#fff;
    padding:15px 20px;
    border-bottom:1px solid #e5e7eb;
}

.page-title{
    font-size:24px;
    font-weight:700;
}

.main-wrapper{
    min-height:100vh;
}


@media (max-width: 991px){

    .sidebar{
        display:none !important;
    }

    .page-title{
        font-size:22px;
    }

    #mobileMenu{
        background:#1f2937;
    }

    #mobileMenu a{
        border-bottom:1px solid rgba(255,255,255,.08);
    }

}

@media (min-width: 992px){

    #mobileMenu{
        display:none !important;
    }

}
@media(max-width:768px){

    .sidebar{
        min-height:auto;
    }

    .content-area{
        padding:15px;
    }

}
