:root {
    --brand-blue: #1a73e8;
    --brand-blue-dark: #1557b0;
    --brand-green: #27AE60;
    --sidebar-bg: #101a2c;
    --sidebar-bg-hover: #17263e;
    --page-bg: #f4f6fb;
    --card-radius: 14px;
    --text-dark: #1e2a3a;
    --text-muted: #7a8699;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Hind Siliguri', 'Segoe UI', sans-serif;
    background: var(--page-bg);
    color: var(--text-dark);
}

/* ---------- Login page ---------- */
body.login-body {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo-full {
    height: 64px;
    width: auto;
    max-width: 100%;
    margin-bottom: 22px;
}

.login-title {
    font-weight: 700;
    font-size: 24px;
    color: #0f2a6b;
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.login-card {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 18px;
    padding: 30px 28px;
    box-shadow: 0 10px 30px rgba(15,42,107,0.06);
    text-align: left;
}

.login-card label.form-label {
    font-weight: 600;
    font-size: 14px;
    color: #1e2a3a;
}

.login-card label.form-label .req { color: #dc3545; }

.input-icon-group {
    position: relative;
}

.input-icon-group .lead-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #64748b;
    pointer-events: none;
}

.input-icon-group .form-control {
    padding: 12px 44px 12px 42px;
    border-radius: 10px;
    border: 1px solid #dbe2ea;
    font-size: 15px;
}

.input-icon-group .form-control:focus {
    border-color: #1f3b94;
    box-shadow: 0 0 0 3px rgba(31,59,148,0.12);
}

.toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px 8px;
    font-size: 19px;
    color: #475569;
    cursor: pointer;
    line-height: 1;
}
.toggle-pass:hover { color: #0f2a6b; }

.login-card .btn-login {
    background: #0f2a6b;
    border: none;
    color: #fff;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    margin-top: 6px;
}
.login-card .btn-login:hover { background: #0b2054; color: #fff; }

/* ---------- Shell layout ---------- */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 17px; color: #fff; }
.brand-sub { font-size: 12px; color: #8fa3c2; }

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #b9c6db;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sidebar-nav .nav-link i { font-size: 17px; width: 20px; text-align: center; }

.sidebar-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f7291;
    padding: 16px 14px 4px;
}

.sidebar-nav .nav-link:hover {
    background: var(--sidebar-bg-hover);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,115,232,0.35);
}

.sidebar-logout {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.btn-logout {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #e2e8f0;
    padding: 11px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}
.btn-logout:hover { background: rgba(220,53,69,0.85); color: #fff; }

.main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #fff;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e7ebf2;
    position: sticky;
    top: 0;
    z-index: 5;
}

.page-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}
.topbar-user i { font-size: 24px; color: var(--brand-blue); }

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-dark);
}

.page-content {
    padding: 24px 28px 40px;
}

/* ---------- Cards / widgets ---------- */
.stat-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 20px 22px;
    box-shadow: 0 2px 10px rgba(20,30,60,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.stat-value { font-size: 24px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-muted); }

.content-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 22px;
    box-shadow: 0 2px 10px rgba(20,30,60,0.06);
}

.content-card h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: #f4f6fb;
    color: var(--text-muted);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e7ebf2;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f7;
    font-size: 14px;
    vertical-align: middle;
}

.table-modern tbody tr:hover { background: #f9fafc; }

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active { background: #e6f7ee; color: #1e8449; }
.badge-inactive { background: #fdeaea; color: #c0392b; }
.badge-pending { background: #fff4e0; color: #b7791f; }
.badge-completed { background: #e6f7ee; color: #1e8449; }

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search-bar .form-control, .search-bar .form-select {
    border-radius: 10px;
    border: 1px solid #dbe2ea;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 600;
}
.btn-brand:hover { color: #fff; opacity: 0.92; }

.btn-icon-edit {
    background: #eef4ff;
    color: var(--brand-blue);
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-edit:hover { background: var(--brand-blue); color: #fff; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 40px; margin-bottom: 10px; display: block; }

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 20;
        transition: left 0.2s ease;
    }
    .admin-shell.sidebar-open .sidebar { left: 0; }
    .page-content { padding: 18px; }
    .topbar { padding: 14px 16px; }
}
