/* ------------------ RESET & FONTS ------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ------------------ GENERAL ------------------ */
body {
    background: #f4f6f9;
}

/* ------------------ LOGIN PAGE ------------------ */
body.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E90FF, #457b9d);
}

.login-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 420px;
    padding: 40px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
}

.login-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.22);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header i {
    font-size: 48px;
    color: #1E90FF;
    margin-bottom: 12px;
}

.login-header h3 {
    font-weight: 600;
    color: #1E3C72;
}

.login-header p {
    font-size: 14px;
    color: #666;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    color: #444;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    padding: 12px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #1E90FF;
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.25);
    outline: none;
}

.btn-login {
    background: #1E90FF;
    color: white;
    padding: 12px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    transition: all 0.3s;
    width: 100%;
}

.btn-login:hover {
    background: #0d74e0;
    transform: translateY(-2px);
}

/* ------------------ SIDEBAR ------------------ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-item {
    margin-bottom: 8px;
}

.sidebar-item a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-item a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(6px);
}

.sidebar-item.active a {
    background: rgba(255, 255, 255, 0.28);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 5px solid #ffffff;
}

.sidebar-item i {
    width: 24px;
    text-align: center;
    font-size: 1.15rem;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.45);
}

/* ------------------ TOPBAR ------------------ */
.topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(30,144,255,0.1);
}

.topbar h5 {
    margin: 0;
    color: #1E3C72;
    font-weight: 600;
}

/* ------------------ DASHBOARD & CARDS ------------------ */
body.dashboard {
    padding-left: 260px;
    padding-top: 20px;
    min-height: 100vh;
}

.main {
    padding: 0 32px 32px;
}

.glass-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(30,144,255,0.12);
    border-left: 6px solid #1E90FF;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.35s ease;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
    border-left-color: #dc3545;
}

.glass-card h6 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: #1E3C72;
    font-weight: 500;
}

.glass-card h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 8px 0;
    color: #000;
}

.glass-card i.card-icon {
    font-size: 2.8rem;
    color: #3e659f;
    opacity: 0.9;
    margin-top: 8px;
}

/* Table enhancements */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.table thead th {
    background: #1E90FF;
    color: white;
    font-weight: 600;
}

.table tbody tr:hover {
    background: rgba(30,144,255,0.08);
    transition: background 0.2s;
}

/* Responsive */
@media (max-width: 992px) {
    body.dashboard {
        padding-left: 0;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    /* You can add JS to toggle .sidebar.active { transform: translateX(0); } */
}

@media (max-width: 576px) {
    .login-box {
        width: 92%;
        padding: 32px 24px;
    }
    .glass-card h2 {
        font-size: 2rem;
    }
}