:root {
    --campus-primary: #0f766e;
    --campus-accent: #f59e0b;
    --campus-bg: #f8fafc;
}

body {
    color: #111827;
    background: var(--campus-bg);
}

.site-body,
.admin-body {
    min-height: 100vh;
}

.site-nav {
    background: var(--campus-primary);
}

.navbar-brand {
    letter-spacing: 0;
}

.app-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
}

.btn-primary {
    --bs-btn-bg: var(--campus-primary);
    --bs-btn-border-color: var(--campus-primary);
    --bs-btn-hover-bg: #115e59;
    --bs-btn-hover-border-color: #115e59;
}

.btn-outline-primary {
    --bs-btn-color: var(--campus-primary);
    --bs-btn-border-color: var(--campus-primary);
    --bs-btn-hover-bg: var(--campus-primary);
    --bs-btn-hover-border-color: var(--campus-primary);
}

.home-hero {
    background: #0b1215;
}

.hero-image {
    height: min(72vh, 620px);
    min-height: 420px;
    object-fit: cover;
    filter: brightness(0.62);
}

.hero-fallback {
    background: linear-gradient(120deg, #0f766e, #334155);
}

.carousel-caption {
    right: auto;
    bottom: 12%;
    left: 8%;
    max-width: 680px;
}

.carousel-caption h1 {
    font-size: clamp(2.25rem, 5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.02;
}

.carousel-caption p {
    max-width: 620px;
    font-size: 1.1rem;
}

.event-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.event-card .card-img-top {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.page-band {
    background: color-mix(in srgb, var(--campus-primary) 10%, white);
    border-bottom: 1px solid #dbe4e8;
}

.page-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.page-copy {
    max-width: 760px;
    color: #374151;
    font-size: 1.06rem;
    line-height: 1.75;
    white-space: normal;
}

.login-body {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(15, 118, 110, 0.92), rgba(30, 41, 59, 0.84)),
        url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(100%, 440px);
    padding: 32px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 56px);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
    padding: 24px 16px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
}

.sidebar-title {
    padding: 0 10px 12px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-link {
    display: block;
    padding: 10px 12px;
    color: #334155;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--campus-primary);
    background: color-mix(in srgb, var(--campus-primary) 10%, white);
    border-color: color-mix(in srgb, var(--campus-primary) 22%, white);
}

.admin-content {
    min-width: 0;
    padding: 24px;
}

.dashboard-heading,
.admin-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.dashboard-heading {
    padding: 20px;
}

.stat-tile {
    display: grid;
    gap: 4px;
    height: 100%;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.stat-tile span {
    color: #64748b;
    font-size: 0.88rem;
}

.stat-tile strong {
    color: var(--campus-primary);
    font-size: 2rem;
    line-height: 1;
}

.module-section {
    scroll-margin-top: 24px;
}

.module-section + .module-section {
    margin-top: 28px;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-panel {
    padding: 20px;
}

.record-card {
    height: 100%;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.admin-table {
    min-width: 780px;
}

.table-summary {
    max-width: 360px;
}

.admin-table th {
    color: #475569;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-table td,
.admin-table th {
    padding: 12px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

[data-ajax-pagination].is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.ajax-pagination-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn .bi {
    margin-right: 6px;
}

.detail-panel,
.form-panel {
    max-width: 980px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.detail-grid div {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.detail-grid dt {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-grid dd {
    margin: 4px 0 0;
    color: #111827;
    font-weight: 600;
}

.detail-copy {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.empty-state {
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
}

.form-control-color {
    width: 100%;
    height: 44px;
}

.theme-panel {
    max-width: 860px;
}

.theme-save-button {
    justify-self: start;
}

.form-save-button {
    justify-self: start;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.word-cloud span {
    color: var(--campus-primary);
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .sidebar-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .sidebar-link {
        white-space: nowrap;
    }

    .admin-content {
        padding: 16px;
    }

    .module-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-image {
        min-height: 480px;
    }

    .carousel-caption {
        left: 6%;
        right: 6%;
        bottom: 9%;
    }
}
