/* ============================================================
   Guild Admin — custom styles (Bootstrap 5 base)
   ============================================================ */

body {
    background-color: #f4f6f9;
    font-size: 0.9rem;
}

/* Sidebar nav */
.sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    background: #212529;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 0.6rem 1.25rem;
    border-radius: 0.25rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #343a40;
    color: #fff;
}

.sidebar .nav-link .bi {
    width: 1.25rem;
}

/* Sidebar section labels */
.nav-section-label {
    display: block !important;
    width: 100%;
    padding: .6rem 1.25rem .25rem;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #8a9bb0 !important;
    list-style: none;
    pointer-events: none;
}

/* Website section — visually distinct with a dividing line */
.nav-section-label.nav-section-website {
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px solid #343a40;
    color: #7eb3d4 !important;
}

/* Configuration collapsible toggle */
.nav-section-toggle {
    color: #adb5bd !important;
    padding: .45rem 1.25rem !important;
    border-radius: .25rem;
    transition: background .15s, color .15s;
    text-decoration: none;
    display: flex;
}
.nav-section-toggle:hover  { background: #343a40; color: #fff !important; }
.nav-section-toggle[aria-expanded="true"] { color: #fff !important; }

.nav-chevron {
    font-size: .7rem;
    transition: transform .2s;
}
.nav-section-toggle[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

/* Indent the items inside the collapsible section */
#configSection .nav-link {
    padding-left: 2rem !important;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #343a40;
}

/* Main content area */
.main-content {
    padding: 1.5rem 2rem;
}

/* Page header bar */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* Stat cards */
.stat-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #495057;
}

/* Don't override colour in dark headers */
.table-dark th,
thead.table-dark th {
    color: #ffffff;
}

/* Login page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #212529;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

/* Badges */
.status-active    { background-color: #198754; }
.status-inactive  { background-color: #6c757d; }
.status-pending   { background-color: #ffc107; color: #212529 !important; }
.status-lapsed    { background-color: #dc3545; }

/* Notes */
.note-item {
    border-left: 3px solid #dee2e6;
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
}

.note-item .note-meta {
    font-size: 0.78rem;
    color: #6c757d;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    .main-content {
        padding: 1rem;
    }
}

/* ---- Gallery admin thumbnails ---- */
.og-admin-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}
