:root {
    font-size: 100%;
    --app-sidebar-width: 285px;
    --design-ink: #10233f;
    --design-navy: #17365f;
    --design-blue: #24558b;
    --design-gold: #bd8a27;
    --design-line: #dfe7f0;
    --design-canvas: #f3f6fa;
    --design-surface: #ffffff;
    --design-radius: 16px;
    --design-shadow: 0 8px 28px rgba(16, 35, 63, 0.065);
    --design-shadow-raised: 0 16px 36px rgba(16, 35, 63, 0.11);
}

html[data-theme="dark"] {
    --design-ink: #e9f0f8;
    --design-navy: #a8c7f0;
    --design-blue: #8ab7f1;
    --design-gold: #e1bb69;
    --design-line: #334155;
    --design-canvas: #0f172a;
    --design-surface: #1e293b;
    --design-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    --design-shadow-raised: 0 16px 36px rgba(0, 0, 0, 0.28);
}

body {
    color: var(--design-ink);
}

.app-content {
    background:
        radial-gradient(ellipse at 92% 0%, rgba(36, 85, 139, 0.055), transparent 34rem),
        var(--design-canvas);
}

.top-navbar {
    min-height: 76px;
    padding: 0.8rem clamp(1rem, 2.5vw, 2rem);
    background: color-mix(in srgb, var(--design-surface) 94%, transparent);
    border-bottom: 1px solid var(--design-line);
    box-shadow: 0 5px 20px rgba(16, 35, 63, 0.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.top-navbar h6 {
    color: var(--design-ink) !important;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700 !important;
    letter-spacing: -0.025em;
}

.top-navbar small {
    letter-spacing: 0.015em;
}

.top-navbar #sidebarToggle,
.top-navbar #notificationCenterToggle,
.top-navbar [aria-label="Open account menu"] {
    border-color: var(--design-line) !important;
    box-shadow: 0 2px 6px rgba(16, 35, 63, 0.045);
}

.app-sidebar {
    background:
        radial-gradient(ellipse at 0 0, rgba(68, 111, 165, 0.22), transparent 25rem),
        linear-gradient(180deg, #102440 0%, #0b192c 58%, #091525 100%);
    box-shadow: 8px 0 28px rgba(8, 20, 36, 0.12);
}

.sidebar-brand {
    min-height: 82px;
    padding: 1rem 1.1rem;
}

.sidebar-menu {
    padding: 1rem 0.8rem;
}

.menu-header {
    color: #8fa4bd;
    padding-top: 1rem;
    letter-spacing: 0.1em;
}

.nav-link-custom {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 500;
}

.nav-link-custom i {
    font-size: 1.05rem;
}

.nav-link-custom.active {
    border-color: rgba(255, 255, 255, 0.09);
    background: linear-gradient(105deg, rgba(49, 88, 138, 0.95), rgba(31, 59, 94, 0.88));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 5px 14px rgba(2, 8, 18, 0.16);
}

.main-body {
    width: 100%;
    max-width: 1800px;
    margin-inline: auto;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.main-body > .card,
.main-body > .row > [class*="col"] > .card,
.main-body > .row > .card {
    border: 1px solid var(--design-line);
    border-radius: var(--design-radius);
    background-color: var(--design-surface);
    box-shadow: var(--design-shadow);
}

.main-body > .row {
    --bs-gutter-y: 1.15rem;
}

.main-body .card-header {
    min-height: 54px;
    border-bottom-color: var(--design-line);
    border-radius: var(--design-radius) var(--design-radius) 0 0;
}

.stat-card {
    padding: 1.15rem;
}

.stat-card .h3 {
    color: var(--design-ink) !important;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.card .table,
.main-body > .table-responsive .table {
    --bs-table-bg: transparent;
}

.table thead th {
    background: color-mix(in srgb, var(--design-canvas) 78%, var(--design-surface));
    color: var(--design-ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.table > :not(caption) > * > * {
    padding: 0.8rem 0.9rem;
}

.users-directory-table {
    min-width: 1100px;
    table-layout: auto;
}

.users-directory-table th:nth-child(1),
.users-directory-table td:nth-child(1) {
    min-width: 240px;
}

.users-directory-table th:nth-child(2),
.users-directory-table td:nth-child(2) {
    min-width: 175px;
}

.users-directory-table th:nth-child(3),
.users-directory-table td:nth-child(3) {
    min-width: 220px;
}

.users-directory-table th:nth-child(4),
.users-directory-table td:nth-child(4) {
    min-width: 105px;
}

.users-directory-table th:nth-child(5),
.users-directory-table td:nth-child(5) {
    min-width: 120px;
    white-space: nowrap;
}

.users-directory-table th:nth-child(6),
.users-directory-table td:nth-child(6) {
    min-width: 230px;
    white-space: nowrap;
}

.table tbody tr:last-child > * {
    border-bottom: 0;
}

.form-label {
    color: var(--design-ink);
    font-weight: 600;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 42px;
    border-color: var(--design-line);
    border-radius: 10px;
}

textarea.form-control {
    min-height: 96px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--design-blue);
    box-shadow: 0 0 0 0.22rem rgba(36, 85, 139, 0.13);
}

.btn {
    border-radius: 9px;
    font-weight: 600;
}

.btn-primary,
.btn-nemsu {
    background-image: linear-gradient(135deg, #1d416d, #2b5d93) !important;
}

.badge,
.badge-minimal {
    font-weight: 600;
}

.dropdown-menu {
    border: 1px solid var(--design-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--design-shadow-raised);
}

.site-footer {
    border-top: 1px solid var(--design-line);
    box-shadow: 0 -6px 24px rgba(16, 35, 63, 0.055);
}

.auth-wrapper .auth-card {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(2, 10, 24, 0.34), 0 2px 10px rgba(2, 10, 24, 0.08);
}

.auth-wrapper .auth-input {
    border-radius: 11px;
}

.landing-page {
    color: #334155;
}

.landing-navbar {
    border-bottom-color: rgba(203, 216, 232, 0.85);
    box-shadow: 0 8px 24px rgba(16, 35, 63, 0.045);
}

.landing-brand-logo {
    width: 42px;
    height: 42px;
    box-shadow: 0 3px 10px rgba(16, 35, 63, 0.12);
}

.landing-nav-link {
    border-radius: 999px;
    font-weight: 600;
}

.landing-nav-link.active {
    box-shadow: inset 0 0 0 1px rgba(36, 85, 139, 0.04);
}

.btn-landing-primary,
.btn-landing-secondary {
    min-height: 42px;
    border-radius: 9px;
    font-weight: 650;
}

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 5rem);
    background:
        radial-gradient(ellipse at 12% 5%, rgba(189, 138, 39, 0.09), transparent 24rem),
        radial-gradient(ellipse at 92% 12%, rgba(36, 85, 139, 0.1), transparent 30rem),
        linear-gradient(180deg, #ffffff, #f7f9fc);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-pill {
    border-color: #d8e3ef;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 4px 14px rgba(16, 35, 63, 0.045);
}

.hero-pill .dot {
    box-shadow: 0 0 0 4px rgba(36, 85, 139, 0.1);
}

.hero-title {
    color: #10233f;
    letter-spacing: -0.052em;
}

.hero-title .text-brand {
    background: linear-gradient(100deg, #1d416d, #3977b4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    color: #586b82;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-section .bg-white.border.rounded-3 {
    border-color: #e1e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(16, 35, 63, 0.045);
}

.stats-strip {
    position: relative;
    z-index: 1;
    padding: 1.25rem 0;
    border-bottom-color: #e1e8f0;
    background: #f4f7fb;
}

.stats-strip .stat-item {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 14px rgba(16, 35, 63, 0.035);
}

.stats-strip .stat-number {
    color: #17365f;
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
}

.section-wrap {
    padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}

.section-tag {
    padding: 0.3rem 0.65rem;
    border: 1px solid #dce6f0;
    border-radius: 999px;
    background: #f5f8fc;
    color: #24558b;
}

.section-heading {
    color: #10233f;
    letter-spacing: -0.04em;
}

.minimal-card {
    border-color: #e0e7ef;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(16, 35, 63, 0.04);
}

.minimal-card:hover {
    border-color: #c5d4e5;
    box-shadow: 0 16px 34px rgba(16, 35, 63, 0.09);
}

.sport-card-image,
.facility-card-image {
    background: #eaf0f6;
}

.minimal-card-title {
    color: #142b49;
    letter-spacing: -0.025em;
}

.minimal-card-footer {
    border-top-color: #e8edf3;
}

.tryout-panel {
    border-color: #dfe7f0;
    border-radius: 20px;
    box-shadow: var(--design-shadow);
}

.tryout-event-item {
    border-radius: 11px;
}

.landing-footer {
    background: #f6f8fb;
}

@media (max-width: 991.98px) {
    .top-navbar {
        min-height: 68px;
    }

    .landing-navigation {
        padding-top: 0.75rem;
    }

    .landing-navigation.show,
    .landing-navigation.collapsing {
        flex-basis: 100%;
        order: 3;
        padding-bottom: 0.2rem;
    }

    .landing-navigation.show {
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
    }

    .landing-navigation.show .landing-nav-link {
        border-radius: 9px;
    }
}

@media (max-width: 575.98px) {
    .top-navbar {
        gap: 0.5rem;
        padding: 0.65rem 0.75rem;
    }

    .top-navbar > .d-flex:last-child {
        gap: 0.45rem !important;
    }

    .main-body {
        padding: 0.9rem 0.75rem;
    }

    .main-body .card-header {
        min-height: 48px;
    }

    .table > :not(caption) > * > * {
        padding: 0.68rem 0.7rem;
    }

    .stats-strip .stat-item {
        min-height: 82px;
    }

    .hero-section {
        padding-top: 3.5rem;
    }

    .hero-lead {
        font-size: 0.98rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-body > .card,
    .main-body > .row > [class*="col"] > .card,
    .minimal-card,
    .stats-strip .stat-item {
        transition: none !important;
    }
}
