body {
    /* padding-top: 56px; For fixed navbar */
    background-color: #f5f7fa;
}
.bg-soft {
    background-color: #f5f7fa;
}
.login-card {
    width: 50%;
    max-width: 500px;
    min-width: 320px;
    margin: 80px auto 40px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.brand-primary {
    color: #110137; /* bootstrap primary */
}

.logo-img {
    max-width: 75px;
    height: auto;
    width: auto;
    object-fit: contain;
    margin-right: 8px;
}
.navbar-info-box {
    background-color: rgba(55,59,62,0.04);
    border: 1px solid rgba(55,59,62,0.06);
}

/* Right-align the info box and ensure icons are inline */
.navbar-info-box .fa-solid {
    color: #6c757d;
}
@media (min-width: 768px) {
    .navbar-info-box {
        display: flex;
        justify-content: flex-end;
    }
}
.navbar-brand {
    font-weight: bold;
}
.card {
    margin-bottom: 20px;
}
.table-responsive {
    margin-bottom: 20px;
}
.alert {
    margin-top: 20px;
}
/* Mobile optimizations */
@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Make login card responsive: full width on small screens */
@media (max-width: 768px) {
    .login-card {
        width: 90%;
        min-width: unset;
    }
}

/* Navbar theme overrides: dark background, white links, vertically centered */
.navbar {
    background-color: #110137 !important;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-text,
.navbar .dropdown-toggle {
    color: #fff !important;
    display: flex;
    align-items: center;
    /* padding-top: 0.5rem;
    padding-bottom: 0.5rem; */
}

/* Ensure the brand/logo aligns with nav items */
.navbar .navbar-brand .logo-img {
    /* margin-right: 8px; */
    max-height: 80px;
}

/* Toggler icon visibility on dark background */
.navbar .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

/* Dropdown menu on dark navbar */
.navbar .dropdown-menu {
    background-color: #373b3e;
    border: none;
}
.navbar .dropdown-item {
    color: #fff !important;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(255,255,255,0.06);
    color: #fff !important;
}

/* Ensure collapsed (mobile) nav links are readable and centered */
@media (max-width: 991px) {
    .navbar .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Error Capture Box Styles */
#admin-error-capture {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
}

#admin-error-capture textarea {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-size: 10px;
    line-height: 1.3;
    resize: vertical;
}

#admin-error-capture details summary {
    font-weight: bold;
    padding: 2px 0;
}

#admin-error-capture .error-trace {
    max-height: 100px;
    overflow-y: auto;
    background: #e9ecef;
    padding: 8px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Mobile responsive error box */
@media (max-width: 768px) {
    #admin-error-capture {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
        width: auto !important;
    }
}