/* =============================== ROOT THEME ================================= */ :root { --sm-bg: #eef3f9; --sm-surface: #ffffff; --sm-surface-2: #f8fbff; --sm-text: #0f172a; --sm-text-soft: #64748b; --sm-border: rgba(37, 99, 235, 0.12); --sm-primary: #2563eb; --sm-primary-dark: #1d4ed8; --sm-primary-soft: rgba(37, 99, 235, 0.08); --sm-blue-1: #60a5fa; --sm-blue-2: #3b82f6; --sm-blue-3: #2563eb; --sm-blue-4: #1d4ed8; --sm-blue-5: #1e40af; --sm-success: #16a34a; --sm-warning: #d97706; --sm-danger: #dc2626; --sm-shadow: 0 18px 40px rgba(15, 23, 42, 0.10); --sm-shadow-hover: 0 24px 56px rgba(15, 23, 42, 0.14); --sm-radius: 18px; } /* =============================== BASE ================================= */ html, body { margin: 0; padding: 0; min-height: 100%; } body { background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 25%), radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 20%), linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%); color: var(--sm-text); transition: background-color 0.28s ease, color 0.28s ease, background 0.28s ease; } /* smooth transitions */ body, .navbar, .card, .dropdown-menu, .form-control, .form-select, textarea, .alert, .btn, .table, .log-link, .log-link-clean, .card-header-custom { transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease, background 0.22s ease; } /* =============================== NAVBAR / DROPDOWN LAYER FIXES ================================= */ .navbar { position: sticky; top: 0; z-index: 2000 !important; overflow: visible !important; background: rgba(255, 255, 255, 0.88) !important; backdrop-filter: blur(14px); border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); } .navbar .container, .navbar .container-fluid, .navbar .navbar-collapse, .navbar .dropdown { overflow: visible !important; } .dropdown-menu { z-index: 3000 !important; position: absolute; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; padding: 0.5rem; background: rgba(255, 255, 255, 0.96); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important; } /* Prevent card stacks from covering dropdowns */ .card, .table-responsive, .container, .row, .col, [class*="col-"] { position: relative; z-index: 1; } .navbar-brand { color: var(--sm-text) !important; font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; } .nav-link { color: #475569 !important; font-weight: 600; border-radius: 14px; padding: 0.7rem 1rem !important; } .nav-link:hover, .nav-link:focus { color: var(--sm-primary) !important; background: rgba(37, 99, 235, 0.08); } .nav-link.active { color: #fff !important; background: linear-gradient(135deg, var(--sm-blue-3), var(--sm-blue-4)); box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24); } .configuration-link { color: #ef4444 !important; } .configuration-link:hover, .configuration-link:focus { color: #dc2626 !important; background: rgba(239, 68, 68, 0.08); } /* =============================== AVATAR ================================= */ .avatar-btn { border: none !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; } .avatar-initials { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--sm-blue-2), var(--sm-blue-4)); box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22); } /* =============================== DARK MODE TOGGLE BUTTON ================================= */ .btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(148, 163, 184, 0.22); background: rgba(255, 255, 255, 0.75); color: #334155; font-size: 0; line-height: 1; overflow: hidden; } .btn-icon:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10); } /* SVG icon support */ .theme-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; line-height: 0; font-size: 0; flex: 0 0 18px; } .theme-icon svg { display: block; width: 18px; height: 18px; } .theme-icon-moon { display: none; } body.dark-mode .theme-icon-bulb { display: none; } body.dark-mode .theme-icon-moon { display: inline-flex; } /* =============================== CARDS / BOXES ================================= */ .card { border: 1px solid rgba(148, 163, 184, 0.14) !important; border-radius: var(--sm-radius) !important; overflow: hidden; background: rgba(255, 255, 255, 0.94); box-shadow: var(--sm-shadow) !important; } .card:hover { box-shadow: var(--sm-shadow-hover) !important; } .alert { border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 14px; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10) !important; } /* =============================== CARD HEADERS ================================= */ .card-header-custom { font-weight: 800; font-size: 1rem; letter-spacing: 0.01em; padding: 0.95rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.10); display: flex; align-items: center; justify-content: space-between; border-radius: 16px 16px 0 0; color: #fff; } .card-header-primary, .card-header-success, .card-header-warning, .card-header-danger, .card-header-neutral { background: linear-gradient(135deg, var(--sm-blue-2), var(--sm-blue-4)); color: #fff; } /* =============================== HERO / INTRO CARDS ================================= */ .hero-box, .page-hero, .welcome-hero { background: linear-gradient(135deg, #1e293b, #1e40af); color: #dbeafe; border-radius: 24px; padding: 2rem; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18); } .hero-box h1, .page-hero h1, .welcome-hero h1, .hero-box h2, .page-hero h2, .welcome-hero h2, .hero-box h3, .page-hero h3, .welcome-hero h3 { color: #fff !important; } .hero-box p, .page-hero p, .welcome-hero p, .hero-box .text-muted, .page-hero .text-muted, .welcome-hero .text-muted { color: #cbd5e1 !important; } /* =============================== FORMS ================================= */ .form-control, .form-select, textarea { border-radius: 14px !important; border: 1px solid rgba(148, 163, 184, 0.18) !important; padding: 0.8rem 0.95rem !important; background: #fff !important; color: var(--sm-text) !important; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04) !important; } .form-control:focus, .form-select:focus, textarea:focus { border-color: rgba(37, 99, 235, 0.35) !important; box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.12) !important; } .form-control::placeholder, textarea::placeholder { color: #94a3b8 !important; } /* =============================== BUTTONS ================================= */ .btn { border-radius: 14px !important; font-weight: 700 !important; transition: transform 0.16s ease, box-shadow 0.18s ease, background-color 0.18s ease !important; } .btn:hover { transform: translateY(-1px); } .btn-primary { background: linear-gradient(135deg, var(--sm-blue-3), var(--sm-blue-4)) !important; border: none !important; box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24); } .btn-success { background: linear-gradient(135deg, #22c55e, #16a34a) !important; border: none !important; box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22); } .btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706) !important; border: none !important; color: #111827 !important; box-shadow: 0 12px 24px rgba(245, 158, 11, 0.20); } .btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626) !important; border: none !important; box-shadow: 0 12px 24px rgba(239, 68, 68, 0.20); } .btn-outline-danger { border-color: rgba(239, 68, 68, 0.5) !important; color: #ef4444 !important; } .btn-outline-danger:hover { background: rgba(239, 68, 68, 0.08) !important; color: #dc2626 !important; } .btn-outline-secondary { border-color: rgba(148, 163, 184, 0.4) !important; color: #475569 !important; } .btn-outline-secondary:hover { background: rgba(148, 163, 184, 0.08) !important; } /* =============================== LOG LINKS AS BUTTONS ================================= */ .log-list { padding-left: 0; margin: 0; } .log-list li { list-style: none; margin-bottom: 12px; } .log-link, .log-link-clean { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 0.95rem 1rem; border-radius: 16px; text-decoration: none; background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04)); border: 1px solid rgba(37, 99, 235, 0.16); color: var(--sm-text); font-weight: 700; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.06); } .log-link:hover, .log-link-clean:hover { text-decoration: none; transform: translateY(-1px); background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.07)); border-color: rgba(37, 99, 235, 0.26); } .log-title { color: var(--sm-primary-dark); font-size: 0.98rem; font-weight: 800; line-height: 1.2; } .log-sub { color: var(--sm-text-soft); font-size: 0.88rem; font-weight: 600; } /* =============================== TABLES ================================= */ .table { --bs-table-bg: transparent; color: inherit; } .table thead th { color: #475569; font-weight: 800; border-bottom-color: rgba(148, 163, 184, 0.18); } .table td, .table th { border-color: rgba(148, 163, 184, 0.12); } /* =============================== LOGIN PAGE ================================= */ .login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 25%), radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 20%), linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%); } .login-shell { width: 100%; max-width: 1100px; padding: 2rem; } .login-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: stretch; } .login-brand-panel { border-radius: 28px; padding: 2.5rem; background: linear-gradient(135deg, #1e293b, #1e40af); color: #dbeafe; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18); } .login-brand-panel h1, .login-brand-panel h2, .login-brand-panel h3 { color: #fff !important; font-weight: 800; letter-spacing: -0.03em; } .login-brand-panel p { color: #cbd5e1 !important; } .login-card { border-radius: 28px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12); border: 1px solid rgba(148, 163, 184, 0.14); padding: 0.5rem; } .login-card .form-label { font-weight: 700; } .login-card .btn-primary { min-height: 52px; font-size: 1.05rem; } /* =============================== DARK MODE ================================= */ body.dark-mode { background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 25%), radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.08), transparent 20%), linear-gradient(180deg, #020617 0%, #0f172a 55%, #111827 100%) !important; color: #e2e8f0; } /* navbar should not stay blue/black in light mode */ body.dark-mode .navbar { background: rgba(15, 23, 42, 0.92) !important; border-bottom: 1px solid #1e293b !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); } body.dark-mode .navbar-brand { color: #f8fafc !important; } body.dark-mode .nav-link { color: #cbd5e1 !important; } body.dark-mode .nav-link:hover, body.dark-mode .nav-link:focus { color: #fff !important; background: rgba(59, 130, 246, 0.15); } body.dark-mode .nav-link.active { background: linear-gradient(135deg, var(--sm-blue-3), var(--sm-blue-4)); color: #fff !important; } body.dark-mode .configuration-link { color: #fca5a5 !important; } body.dark-mode .configuration-link:hover, body.dark-mode .configuration-link:focus { color: #fecaca !important; background: rgba(239, 68, 68, 0.12); } /* icon button safe, no emoji dependency */ body.dark-mode .btn-icon { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 213, 79, 0.35); animation: bulbGlow 2.4s ease-in-out infinite; color: #ffd54f; } body.dark-mode .theme-icon-moon svg { color: #ffd54f; fill: currentColor; } @keyframes bulbGlow { 0% { box-shadow: 0 0 0 rgba(255, 213, 79, 0.00); } 50% { box-shadow: 0 0 18px rgba(255, 213, 79, 0.22); } 100% { box-shadow: 0 0 0 rgba(255, 213, 79, 0.00); } } body.dark-mode .card { background: rgba(30, 41, 59, 0.96); border-color: rgba(255, 255, 255, 0.06) !important; color: #e2e8f0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26) !important; } body.dark-mode .card:hover { box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34) !important; } body.dark-mode .alert { background: rgba(15, 23, 42, 0.88); color: #e2e8f0; border-color: rgba(255,255,255,0.08); } body.dark-mode .dropdown-menu { background: #1e293b; border-color: rgba(255, 255, 255, 0.08); } body.dark-mode .dropdown-item { color: #e2e8f0; } body.dark-mode .dropdown-item:hover, body.dark-mode .dropdown-item:focus { background: rgba(59, 130, 246, 0.15); color: #fff; } body.dark-mode .avatar-initials { box-shadow: 0 10px 22px rgba(37, 99, 235, 0.34); } body.dark-mode .form-control, body.dark-mode .form-select, body.dark-mode textarea, body.dark-mode input { background: #0f172a !important; color: #e2e8f0 !important; border-color: rgba(255, 255, 255, 0.10) !important; box-shadow: none !important; } body.dark-mode .form-control:focus, body.dark-mode .form-select:focus, body.dark-mode textarea:focus { border-color: rgba(59, 130, 246, 0.45) !important; box-shadow: 0 0 0 0.22rem rgba(59, 130, 246, 0.15) !important; } body.dark-mode .form-control::placeholder, body.dark-mode textarea::placeholder { color: #64748b !important; } body.dark-mode .table { color: #e2e8f0; } body.dark-mode .table thead th { color: #cbd5e1; border-bottom-color: rgba(255, 255, 255, 0.08); } body.dark-mode .table td, body.dark-mode .table th { border-color: rgba(255, 255, 255, 0.06); } /* text readability */ body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6, body.dark-mode p, body.dark-mode span, body.dark-mode label, body.dark-mode strong, body.dark-mode li, body.dark-mode td, body.dark-mode th { color: inherit; } body.dark-mode .text-muted, body.dark-mode .small.text-muted { color: #94a3b8 !important; } /* hero cards */ body.dark-mode .hero-box, body.dark-mode .page-hero, body.dark-mode .welcome-hero { background: linear-gradient(135deg, #020617, #1e3a8a); color: #dbeafe; } /* log links still button-styled in dark mode */ body.dark-mode .log-link, body.dark-mode .log-link-clean { background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.08)); border-color: rgba(59, 130, 246, 0.22); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16); } body.dark-mode .log-link:hover, body.dark-mode .log-link-clean:hover { background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.11)); border-color: rgba(59, 130, 246, 0.32); } body.dark-mode .log-title { color: #f8fafc !important; } body.dark-mode .log-sub { color: #94a3b8 !important; } body.dark-mode .login-page { background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 25%), radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.10), transparent 20%), linear-gradient(180deg, #020617 0%, #0f172a 55%, #111827 100%); } body.dark-mode .login-card { background: rgba(30, 41, 59, 0.96); border-color: rgba(255,255,255,0.06); } body.dark-mode .login-brand-panel { background: linear-gradient(135deg, #020617, #1e3a8a); } /* =============================== RESPONSIVE ================================= */ @media (max-width: 991.98px) { .login-wrap { grid-template-columns: 1fr; } .navbar .nav-link { margin-bottom: 0.35rem; } }


/* ===============================
   LOGIN PAGE - FINAL CLEAN VERSION
   =============================== */

body.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, #eef3fa 0%, #e9eff8 100%);
    color: #1f2937;
}

/* Container */
body.login-page .login-shell {
    width: 100%;
    max-width: 400px;
}

/* ===============================
   BRAND
   =============================== */

body.login-page .login-brand {
    text-align: center;
    margin-bottom: 14px;
}

body.login-page .login-brand-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 8px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2f6df6, #1ba7df);
    box-shadow: 0 8px 18px rgba(47, 109, 246, 0.2);
}

body.login-page .login-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 2px;
}

body.login-page .login-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ===============================
   CARD
   =============================== */

body.login-page .login-card {
    background: #ffffff;
    border: 1px solid #e5ebf4;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

body.login-page .login-card-header {
    padding: 14px 16px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid #edf2f8;
}

body.login-page .login-card-body {
    padding: 14px 16px 16px;
}

/* ===============================
   ERROR
   =============================== */

body.login-page .login-error {
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #f3c2c2;
    background: #fff4f4;
    color: #b42318;
    font-size: 0.85rem;
    padding: 8px 10px;
}

/* ===============================
   FORM
   =============================== */

body.login-page .login-label {
    margin-bottom: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

/* Input group */
body.login-page .login-input-group {
    position: relative;
    margin-bottom: 10px;
}

/* Icon */
body.login-page .login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    text-align: center;
    color: #7c8aa5;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

/* Input */
body.login-page .login-input.form-control {
    height: 42px;
    padding-left: 50px; /* ensures no overlap */
    padding-right: 10px;
    border-radius: 10px;
    border: 1px solid #d9e2ef;
    background: #f5f8fd;
    font-size: 0.85rem;
    color: #1f2937;
    box-shadow: none;
    transition: all 0.15s ease;
}

body.login-page .login-input::placeholder {
    color: #94a3b8;
}

body.login-page .login-input.form-control:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

/* Autofill fix */
body.login-page input.login-input:-webkit-autofill {
    -webkit-text-fill-color: #1f2937;
    -webkit-box-shadow: 0 0 0 1000px #f5f8fd inset;
    padding-left: 50px !important;
}

/* ===============================
   BUTTON
   =============================== */

body.login-page .login-btn {
    height: 42px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3f7bf7, #2a56d8);
    border: none;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(47, 109, 246, 0.2);
    transition: all 0.15s ease;
}

body.login-page .login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(47, 109, 246, 0.25);
}

/* ===============================
   FOOTER
   =============================== */

body.login-page .login-footer-note {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

/* ===============================
   SMALL HEIGHT SCREENS
   =============================== */

@media (max-height: 700px) {
    body.login-page {
        align-items: flex-start;
        padding-top: 10px;
    }

    body.login-page .login-brand {
        margin-bottom: 8px;
    }

    body.login-page .login-title {
        font-size: 1.2rem;
    }

    body.login-page .login-brand-badge {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    body.login-page .login-card-body {
        padding: 12px;
    }

    body.login-page .login-input.form-control,
    body.login-page .login-btn {
        height: 38px;
    }
}

/* File input wrapper */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

/* Hide default ugly input */
.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Custom styled box */
.file-upload-display {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #0b1220;
    border-radius: 12px;
    padding: 10px 14px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5f5;

    transition: all 0.2s ease;
}

/* Hover effect */
.file-upload-wrapper:hover .file-upload-display {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* Fake button */
.file-upload-button {
    background: #1f2a44;
    color: #fff;

    padding: 6px 12px;
    border-radius: 8px;

    font-size: 0.9rem;
    font-weight: 500;

    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* File name */
.file-upload-text {
    margin-left: 10px;
    opacity: 0.7;
    font-size: 0.9rem;
}


/* ===============================
   LOGIN INPUTS
   =============================== */

body.login-page .login-input-group {
    position: relative;
    margin-bottom: 10px;
}

body.login-page .login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c8aa5;
    font-size: 0.95rem;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

body.login-page .login-input.form-control {
    height: 42px;
    padding-left: 52px !important;
    padding-right: 12px !important;
    border-radius: 10px;
    border: 1px solid #d9e2ef;
    background: #f5f8fd;
    font-size: 0.85rem;
    color: #1f2937;
    box-shadow: none;
    transition: all 0.15s ease;
}

body.login-page .login-input::placeholder {
    color: #94a3b8;
}

body.login-page .login-input.form-control:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

body.login-page input.login-input:-webkit-autofill {
    -webkit-text-fill-color: #1f2937;
    -webkit-box-shadow: 0 0 0 1000px #f5f8fd inset;
    padding-left: 52px !important;
}

.login-brand-logo img {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

.login-brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.login-brand-logo img {
    max-width: 120px;
    height: auto;
}

/* Container alignment */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide default checkbox */
input[type="checkbox"].form-check-input {
    appearance: none;
    -webkit-appearance: none;

    width: 20px;
    height: 20px;

    border-radius: 6px;

    /* MATCH YOUR INPUT STYLE */
    background: linear-gradient(145deg, #0b1324, #0f1b33);
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.03);

    cursor: pointer;
    position: relative;

    transition: all 0.2s ease;
}

/* Hover */
input[type="checkbox"].form-check-input:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.15),
        inset 0 1px 2px rgba(0,0,0,0.6);
}

/* Checked */
input[type="checkbox"].form-check-input:checked {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    border-color: #3b82f6;

    box-shadow:
        0 0 8px rgba(59,130,246,0.5),
        inset 0 1px 2px rgba(0,0,0,0.5);
}

/* Checkmark */
input[type="checkbox"].form-check-input:checked::after {
    content: "";
    position: absolute;

    left: 6px;
    top: 2px;

    width: 6px;
    height: 11px;

    border: solid white;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}

/* Disabled */
input[type="checkbox"].form-check-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Container alignment */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide default checkbox */
input[type="checkbox"].form-check-input {
    appearance: none;
    -webkit-appearance: none;

    width: 20px;
    height: 20px;

    border-radius: 6px;

    /* MATCH YOUR INPUT STYLE */
    background: linear-gradient(145deg, #0b1324, #0f1b33);
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.03);

    cursor: pointer;
    position: relative;

    transition: all 0.2s ease;
}

/* Hover */
input[type="checkbox"].form-check-input:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.15),
        inset 0 1px 2px rgba(0,0,0,0.6);
}

/* Checked */
input[type="checkbox"].form-check-input:checked {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    border-color: #3b82f6;

    box-shadow:
        0 0 8px rgba(59,130,246,0.5),
        inset 0 1px 2px rgba(0,0,0,0.5);
}

/* Checkmark */
input[type="checkbox"].form-check-input:checked::after {
    content: "";
    position: absolute;

    left: 6px;
    top: 2px;

    width: 6px;
    height: 11px;

    border: solid white;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}

/* Disabled */
input[type="checkbox"].form-check-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

body.dark-mode .config-sidebar .list-group-item:not(.active),
body[data-bs-theme="dark"] .config-sidebar .list-group-item:not(.active) {
    background-color:  #334766;
    border-color: #2b3648;
    color: #e5e7eb;
}

body.dark-mode .config-sidebar .list-group-item:not(.active):hover,
body[data-bs-theme="dark"] .config-sidebar .list-group-item:not(.active):hover {
    background-color: #334766;
    border-color: #34435c;
    color: #ffffff;
}

body.dark-mode .dropdown-menu {
    background-color: #1f2a3d;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e8edf7;
}

body.dark-mode .dropdown-menu .fw-semibold,
body.dark-mode .dropdown-menu .dropdown-item {
    color: #f3f6fb;
}

body.dark-mode .dropdown-menu .text-muted,
body.dark-mode .dropdown-menu .small.text-muted {
    color: #b8c2d6 !important;
}

body.dark-mode .dropdown-menu .dropdown-item:hover,
body.dark-mode .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.dark-mode .dropdown-menu .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.10);
}
/* DARK MODE FIXES */
body.bg-dark .blacklist-list {
    background: #1e293b; /* dark panel */
    border-color: #334155;
}

body.bg-dark .blacklist-row {
    border-bottom: 1px solid #334155;
    color: #e2e8f0;
}

body.bg-dark .blacklist-ip {
    color: #e2e8f0;
}

body.bg-dark .blacklist-empty {
    color: #94a3b8;
}

/* Buttons (optional polish) */
body.bg-dark .btn-outline-danger {
    color: #f87171;
    border-color: #f87171;
}

body.bg-dark .btn-outline-danger:hover {
    background-color: #f87171;
    color: #0f172a;
}

/* Card override if needed */
body.bg-dark .card {
    background-color: #1e293b;
    color: #e2e8f0;
}

/* Inputs */
body.bg-dark .form-control,
body.bg-dark .form-select {
    background-color: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}

body.bg-dark .form-control::placeholder {
    color: #64748b;
}

body.dark-mode .blacklist-list {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .blacklist-row {
    background: #0f172a !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .blacklist-row:hover {
    background: #162033 !important;
}

body.dark-mode .blacklist-ip {
    color: #e5e7eb !important;
}

body.dark-mode .blacklist-empty {
    color: #94a3b8 !important;
    background: #0f172a !important;
}

body.dark-mode #blacklistSummary {
    color: #94a3b8 !important;
}