/* ======================================================================
   Centre Circle - TUFC Member Portal
   Club Colours: Black, White, Gold, Baby Blue
   Football / Soccer themed UI
   ====================================================================== */

/* ---- Design Tokens ---- */
:root {
    /* Club palette */
    --cc-black: #111111;
    --cc-black-soft: #1a1a2e;
    --cc-white: #ffffff;
    --cc-gold: #d4a843;
    --cc-gold-light: #f0d78c;
    --cc-gold-dark: #b8912e;
    --cc-blue: #7ec8e3;
    --cc-blue-light: #d0effa;
    --cc-blue-dark: #4ba3c7;
    --cc-kit-stripe-dark: rgba(17,17,17,.16);
    --cc-kit-stripe-light: rgba(255,255,255,.65);
    --cc-kit-stripe-soft: rgba(17,17,17,.05);

    /* Functional colours */
    --cc-success: #28a745;
    --cc-danger: #dc3545;
    --cc-warning: var(--cc-gold);

    /* Surfaces */
    --cc-body-bg: radial-gradient(circle at 10% 10%, #e9f7ff 0%, #f6f8fd 34%, #eef4fb 100%);
    --cc-card-bg: rgba(255, 255, 255, 0.72);
    --cc-sidebar-bg: linear-gradient(160deg, rgba(9, 9, 18, 0.93) 0%, rgba(20, 20, 36, 0.92) 50%, rgba(15, 15, 25, 0.96) 100%);
    --cc-header-bg: rgba(255, 255, 255, 0.74);

    /* Layout */
    --cc-sidebar-width: 264px;
    --cc-header-height: 60px;
    --cc-radius: 0.875rem;
    --cc-radius-sm: 0.5rem;

    /* Shadows */
    --cc-shadow-sm: 0 8px 24px rgba(6, 18, 34, 0.09);
    --cc-shadow: 0 14px 34px rgba(6, 18, 34, 0.14);
    --cc-shadow-lg: 0 24px 56px rgba(6, 18, 34, 0.2);
}

/* ---- Base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--cc-body-bg);
    color: #333;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 12%, rgba(212,168,67,.15), transparent 42%),
        radial-gradient(circle at 14% 88%, rgba(126,200,227,.22), transparent 40%);
}

/* body::before stripe texture removed */

#wrapper { position: relative; z-index: 1; }

main.container-fluid {
    animation: page-fade-up .45s ease both;
}

main.container-fluid > .row,
main.container-fluid > .card,
main.container-fluid > .pitch-stripe,
main.container-fluid > [class*='col-'] {
    animation: section-rise .55s ease both;
}

@keyframes page-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes section-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   AUTH PAGES — full-screen pitch background + glass form overlay
   The Magpies | Tondu United FC
   ===================================================================== */

.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #0a0a0f;
}

/* ----------------------------------------------------------------
   Full-screen background layer
---------------------------------------------------------------- */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(155deg, #0e0e14 0%, #161622 55%, #0a0a12 100%);
}

/* Ambient colour glows */
.auth-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(126,200,227,.16), transparent 44%),
        radial-gradient(circle at 82% 75%, rgba(212,168,67,.18), transparent 42%);
    pointer-events: none;
}

/* Kit stripes — 5 wide vertical bands across the full viewport */
.auth-hero-stripes {
    position: absolute;
    inset: 0;
    /* Each pair is 20vw wide; repeating 5 times = 100vw */
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.055) 0 10vw,
        rgba(0,0,0,.38)        10vw 20vw
    );
    pointer-events: none;
    z-index: 0;
}

/* ---- Pitch markings ---- */
.auth-pitch {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.auth-pitch-midline {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 2px;
    background: rgba(255,255,255,.07);
}

.auth-pitch-circle {
    position: absolute;
    top: 50%; left: 50%;
    width: 280px; height: 280px;
    border: 2px solid rgba(255,255,255,.07);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.auth-pitch-box {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 260px; height: 120px;
    border: 2px solid rgba(255,255,255,.06);
}

.auth-pitch-box-top    { top: 0; border-top: none; }
.auth-pitch-box-bottom { bottom: 0; border-bottom: none; }

/* ---- Stars ---- */
.auth-star {
    position: absolute;
    z-index: 2;
    color: var(--cc-gold);
    pointer-events: none;
    line-height: 1;
    animation: star-twinkle 3s ease-in-out infinite;
}

.auth-star-1 { top: 8%;  left: 18%;  font-size: 1.5rem; animation-delay: 0s;   }
.auth-star-2 { top: 12%; right: 18%; font-size: 1rem;   animation-delay: .7s;  }
.auth-star-3 { top: 55%; left: 6%;   font-size: 1.2rem; animation-delay: 1.3s; opacity: .6; }
.auth-star-4 { top: 5%;  right: 6%;  font-size: .8rem;  animation-delay: 2s;   opacity: .5; }

@keyframes star-twinkle {
    0%,100% { opacity: 1;  transform: scale(1); }
    50%     { opacity: .2; transform: scale(.6); }
}

/* ---- Club crest — bottom right ---- */
.auth-magpie {
    position: absolute;
    z-index: 3;
    bottom: 4rem;
    right: 5%;
    width: 280px;
    animation: magpie-bob 4.5s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.65));
}

.magpie-svg { width: 100%; height: auto; }

@keyframes magpie-bob {
    0%,100% { transform: translateY(0) rotate(-1deg); }
    50%     { transform: translateY(-10px) rotate(2deg); }
}

/* ---- Club identity — bottom left ---- */
.auth-hero-text {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 4;
}

.auth-hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--cc-gold-dark), var(--cc-gold));
    color: #111;
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: .82rem;
    letter-spacing: .22em;
    padding: .28rem .9rem;
    border-radius: 999px;
    margin-bottom: .9rem;
    box-shadow: 0 4px 16px rgba(212,168,67,.35);
}

.auth-hero-title {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: .95;
    color: #fff;
    letter-spacing: .04em;
    text-shadow: 0 4px 32px rgba(0,0,0,.7);
    margin-bottom: .8rem;
}

.auth-hero-sub {
    color: rgba(255,255,255,.52);
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* ----------------------------------------------------------------
   Glass form overlay — floats above the background
---------------------------------------------------------------- */
.auth-overlay {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-form-inner {
    width: 100%;
    max-width: 440px;
}

/* Logo */
.auth-logo {
    width: 130px;
    max-width: 60%;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.35));
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-7px); }
}

/* Glass card */
.auth-card {
    background: rgba(255,255,255,.1);
    border-radius: 1.35rem;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow:
        0 28px 64px rgba(0,0,0,.5),
        inset 0 1px 0 rgba(255,255,255,.18);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    overflow: hidden;
}

/* Top kit-stripe accent on card */
.auth-card::before {
    content: '';
    display: block;
    height: 5px;
    background: repeating-linear-gradient(90deg, #111 0 18px, rgba(255,255,255,.9) 18px 36px);
}

.auth-card-body {
    padding: 2rem 2.2rem 2.4rem;
}

/* ---- Glass form element overrides ---- */
.auth-card h4 {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.45rem;
}

.auth-card .form-label,
.auth-card label {
    color: #fff !important;
    font-weight: 500;
}

.auth-card .form-control,
.auth-card .form-select {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.22) !important;
    color: #fff !important;
    border-radius: .6rem;
}

.auth-card .form-control::placeholder { color: rgba(255,255,255,.38); }

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    background: rgba(255,255,255,.18) !important;
    border-color: var(--cc-gold) !important;
    box-shadow: 0 0 0 .2rem rgba(212,168,67,.25) !important;
    color: #fff !important;
}

.auth-card .input-group-text {
    background: rgba(0,0,0,.35) !important;
    border-color: rgba(255,255,255,.22) !important;
    color: var(--cc-gold) !important;
}

.auth-card .form-text   { color: rgba(255,255,255,.45) !important; }
.auth-card .text-muted  { color: rgba(255,255,255,.5)  !important; }
.auth-card .form-check-label { color: rgba(255,255,255,.75) !important; }
.auth-card .form-check-input { border-color: rgba(255,255,255,.3); }
.auth-card hr { border-color: rgba(255,255,255,.14); }

.auth-card a {
    color: var(--cc-gold-light) !important;
    text-decoration: none;
}
.auth-card a:hover { color: #fff !important; }

.auth-card span.small,
.auth-card .text-center > span {
    color: #fff;
}

/* Footer text */
.auth-footer-text {
    color: rgba(255,255,255,.3);
    font-size: .72rem;
    letter-spacing: .06em;
}

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 600px) {
    .auth-hero-text { display: none; }

    .auth-magpie {
        width: 160px;
        bottom: 1rem;
        right: 1rem;
        opacity: .6;
    }

    .auth-logo { width: 110px; }

    .auth-card-body { padding: 1.5rem 1.4rem; }
}

/* ---- Sidebar ---- */
#sidebar {
    width: var(--cc-sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--cc-sidebar-bg);
    backdrop-filter: blur(14px);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    border-right: 1px solid rgba(212,168,67,.24);
    box-shadow: 18px 0 36px rgba(0,0,0,.25);
}

#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(212,168,67,.25);
    border-radius: 2px;
}

/* Gold accent stripe at the top of sidebar */
#sidebar::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--cc-gold), var(--cc-blue), var(--cc-gold));
}

/* #sidebar::after stripe removed */

#sidebar > * {
    position: relative;
    z-index: 1;
}

.sidebar-header {
    position: relative;
    padding: 1.25rem 1rem !important;
    background: linear-gradient(180deg, rgba(255,255,255,.05), transparent);
}

.sidebar-header h6,
.sidebar-header .sidebar-brand-text {
    color: #fff !important;
    text-shadow: 0 2px 14px rgba(212,168,67,.35);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
}

.sidebar-logo {
    border-radius: 50%;
    border: 2px solid var(--cc-gold);
    padding: 2px;
    box-shadow: 0 0 20px rgba(212,168,67,.2);
}

#content-wrapper {
    margin-left: var(--cc-sidebar-width);
    min-height: 100vh;
    transition: margin-left .3s cubic-bezier(.4,0,.2,1);
}

/* Sidebar nav items */
.sidebar-nav .nav-link {
    color: rgba(255,255,255,.94);
    padding: 0.6rem 1rem;
    border-radius: var(--cc-radius-sm);
    margin: 0 0.5rem 2px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: all .25s ease;
    position: relative;
    border: 1px solid transparent;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: linear-gradient(120deg, rgba(212,168,67,.22), rgba(126,200,227,.2));
    border-color: rgba(255,255,255,.22);
    transform: translateX(3px);
}

.sidebar-nav .nav-link.active {
    color: var(--cc-black);
    background:
        repeating-linear-gradient(90deg, rgba(17,17,17,.08) 0 16px, rgba(255,255,255,.12) 16px 32px),
        linear-gradient(135deg, var(--cc-gold), var(--cc-gold-light));
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(212,168,67,.3);
}

.sidebar-nav .nav-link.active i {
    color: var(--cc-black) !important;
}

.sidebar-nav .nav-link i {
    width: 22px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    color: var(--cc-blue-light);
    opacity: .95;
    transition: opacity .2s;
}

.sidebar-nav .nav-link:hover i {
    opacity: 1;
}

.sidebar-nav .nav-header {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cc-blue-light) !important;
    opacity: .9;
    list-style: none;
    padding-left: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

/* Soccer ball icon for section dividers */
.sidebar-nav .nav-header::before {
    content: '\f1e3'; /* fa-futbol */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    margin-right: 0.4rem;
    font-size: 0.6rem;
}

/* ---- Top Navbar / Header ---- */
.top-navbar,
.navbar {
    padding: 0.5rem 1.5rem;
    background: var(--cc-header-bg) !important;
    border-bottom: 1px solid rgba(255,255,255,.45);
    backdrop-filter: blur(12px);
    box-shadow: var(--cc-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 900;
}

.top-navbar::after,
.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(17,17,17,.72) 0 24px,
            rgba(255,255,255,.88) 24px 48px
        );
    opacity: .22;
    pointer-events: none;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--cc-gold), var(--cc-gold-dark));
    color: var(--cc-black);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(212,168,67,.3);
}

/* ---- Cards ---- */
.card {
    border: none;
    border-radius: var(--cc-radius);
    background: var(--cc-card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: var(--cc-shadow-sm);
    transition: box-shadow .3s ease, transform .3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow);
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.04);
    padding: 1rem 1.25rem;
    background: transparent;
}

.card-header h6,
.card-header .card-title {
    font-weight: 700;
}

/* Stat / summary cards */
.stat-card {
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--cc-gold) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-lg);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Decorative football pattern on stat cards */
.stat-card::after {
    content: '\f1e3';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    position: absolute;
    right: -8px;
    bottom: -8px;
    font-size: 4.5rem;
    opacity: .04;
    color: var(--cc-black);
    pointer-events: none;
}

/* ---- Buttons ---- */
.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--cc-gold-dark), var(--cc-gold));
    border: none;
    color: var(--cc-black);
    font-weight: 600;
    transition: all .2s ease;
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(135deg, var(--cc-gold), var(--cc-gold-light));
    color: var(--cc-black);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212,168,67,.35);
}

.btn-primary:active,
.btn-success:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border-color: var(--cc-gold);
    color: var(--cc-gold-dark);
}

.btn-outline-primary:hover {
    background: var(--cc-gold);
    border-color: var(--cc-gold);
    color: var(--cc-black);
}

.btn-outline-success {
    border-color: var(--cc-gold);
    color: var(--cc-gold-dark);
}

.btn-outline-success:hover {
    background: var(--cc-gold);
    border-color: var(--cc-gold);
    color: var(--cc-black);
}

.btn-dark {
    background: var(--cc-black);
    border-color: var(--cc-black);
}

.btn-dark:hover {
    background: #222;
    border-color: #222;
}

/* ---- Form Controls ---- */
.form-control:focus,
.form-select:focus {
    border-color: var(--cc-gold);
    box-shadow: 0 0 0 0.2rem rgba(212,168,67,.2);
}

.input-group-text {
    background: var(--cc-black);
    border-color: var(--cc-black);
    color: var(--cc-gold);
}

/* ---- Tables ---- */
.table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cc-black);
    background: var(--cc-blue-light);
    border-bottom: 2px solid var(--cc-gold);
}

.table td {
    font-size: 0.875rem;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(126,200,227,.04);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(212,168,67,.06);
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_filter input {
    border-radius: var(--cc-radius-sm);
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--cc-gold);
    box-shadow: 0 0 0 0.15rem rgba(212,168,67,.15);
}

.dataTables_wrapper .dataTables_length select {
    border-radius: var(--cc-radius-sm);
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link {
    background: var(--cc-gold);
    border-color: var(--cc-gold);
    color: var(--cc-black);
}

/* ---- Badges ---- */
.badge {
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    padding: 0.35em 0.7em;
    border-radius: 999px;
}

.badge.bg-success {
    background: var(--cc-success) !important;
}

.badge.bg-warning {
    background: var(--cc-gold) !important;
    color: var(--cc-black) !important;
}

.badge.bg-info {
    background: var(--cc-blue) !important;
    color: var(--cc-black) !important;
}

/* Match / Training / Tournament type badges */
.badge-match     { background: var(--cc-danger); color: #fff; }
.badge-training  { background: var(--cc-blue); color: var(--cc-black); }
.badge-tournament{ background: var(--cc-gold); color: var(--cc-black); }

/* ---- List Group ---- */
.list-group-item {
    border-color: rgba(0,0,0,.04);
    transition: background .15s ease;
}

.list-group-item:hover,
.list-group-item-action:hover {
    background: rgba(212,168,67,.04);
}

/* ---- Event date block ---- */
.event-date-block {
    min-width: 52px;
    text-align: center;
    background: var(--cc-black);
    color: var(--cc-gold);
    border-radius: var(--cc-radius-sm);
    padding: 0.4rem 0.3rem;
}

.event-date-block .day {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-block .month {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: .8;
}

/* ---- Player Avatar ---- */
.player-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--cc-blue-light), var(--cc-blue));
    color: var(--cc-black);
    border: 2px solid var(--cc-white);
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* ---- Page Header ---- */
.page-heading {
    position: relative;
    padding-bottom: 0.75rem;
}

.page-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--cc-gold), var(--cc-blue));
    border-radius: 2px;
}

.page-heading h1 {
    font-weight: 800;
    color: var(--cc-black);
    font-size: 1.5rem;
}

/* ---- Footer ---- */
.site-footer,
footer {
    background: linear-gradient(120deg, rgba(10,10,16,.94), rgba(25,25,37,.94)) !important;
    color: rgba(255,255,255,.5);
    border-top: 3px solid var(--cc-gold) !important;
}

footer small {
    color: rgba(255,255,255,.5) !important;
}

/* ---- Loading Overlay ---- */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17,17,17,.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loadingOverlay .spinner-border {
    color: var(--cc-gold) !important;
    width: 3rem;
    height: 3rem;
}

/* ---- Attendance Matrix ---- */
.attendance-matrix td,
.attendance-matrix th {
    padding: 0.4rem;
    font-size: 0.8rem;
}

/* ---- Scroll to top ---- */
.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--cc-gold-dark), var(--cc-gold));
    color: var(--cc-black);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(212,168,67,.4);
    font-weight: 700;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--cc-gold), var(--cc-gold-light));
    color: var(--cc-black);
    transform: translateY(-3px);
}

/* ---- Logout Modal ---- */
.modal-content {
    border: none;
    border-radius: var(--cc-radius);
    overflow: hidden;
}

.modal-header {
    background: var(--cc-black);
    color: var(--cc-gold);
    border-bottom: 2px solid var(--cc-gold);
}

.modal-header .btn-close {
    filter: invert(1) brightness(2);
}

/* ---- Alert / Flash ---- */
.alert {
    border-radius: var(--cc-radius-sm);
    border: none;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(40,167,69,.1);
    color: #155724;
    border-left: 4px solid var(--cc-success);
}

.alert-danger {
    background: rgba(220,53,69,.1);
    color: #721c24;
    border-left: 4px solid var(--cc-danger);
}

.alert-warning {
    background: rgba(212,168,67,.1);
    color: #856404;
    border-left: 4px solid var(--cc-gold);
}

.alert-info {
    background: rgba(126,200,227,.1);
    color: #0c5460;
    border-left: 4px solid var(--cc-blue);
}

/* ---- Transitions & Hover polish ---- */
a { transition: color .2s ease; }

/* Override Bootstrap text-success/text-primary for decorative icons in cards */
.card-header .text-success,
.card-header .text-primary {
    color: var(--cc-gold) !important;
}

/* Checkbox / radio accent */
.form-check-input:checked {
    background-color: var(--cc-gold);
    border-color: var(--cc-gold);
}

/* Dropdown active item */
.dropdown-item.active,
.dropdown-item:active {
    background: var(--cc-gold);
    color: var(--cc-black);
}

/* ---- Football pitch stripe on dashboard heading ---- */
.pitch-stripe {
    background: repeating-linear-gradient(
        90deg,
        rgba(126,200,227,.06) 0px,
        rgba(126,200,227,.06) 40px,
        transparent 40px,
        transparent 80px
    );
    border-radius: var(--cc-radius);
    padding: 1.25rem 1.5rem;
    position: relative;
    border-left: 4px solid var(--cc-gold);
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    /* Mobile bottom nav — icon bar + group switcher strip */
    #sidebar {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: 0;
        height: calc(80px + env(safe-area-inset-bottom));
        max-height: none;
        border-right: none;
        border-top: 1px solid rgba(212,168,67,.22);
        border-radius: 0;
        transform: none;
        box-shadow: 0 -6px 24px rgba(0,0,0,.45);
        overflow: hidden;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    #sidebar::before {
        display: none;
    }

    #content-wrapper {
        margin-left: 0;
        padding-bottom: calc(80px + env(safe-area-inset-bottom) + 1rem);
    }

    .sidebar-header,
    #sidebar > .text-center.py-3 {
        display: none;
    }

    /* Group switcher tab strip */
    .mob-tabs {
        display: flex;
        flex: 0 0 24px;
        height: 24px;
        background: rgba(0,0,0,.45);
        border-bottom: 1px solid rgba(212,168,67,.18);
        gap: 0;
    }
    .mob-tab {
        flex: 1;
        background: transparent;
        border: none;
        color: rgba(255,255,255,.45);
        font-family: 'Inter', sans-serif;
        font-size: .6rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        cursor: pointer;
        transition: color .2s, background .2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .2rem;
        padding: 0 .2rem;
    }
    .mob-tab i { font-size: .55rem; }
    .mob-tab.active {
        color: var(--cc-gold);
        background: rgba(212,168,67,.1);
        border-bottom: 2px solid var(--cc-gold);
    }

    .sidebar-nav {
        padding: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        height: 56px;
        flex: 0 0 56px;
        gap: 0;
        overflow: hidden;
        align-items: stretch;
    }

    .sidebar-nav .nav-header {
        display: none;
    }

    .sidebar-nav .nav-item {
        flex: 1 1 0;
        min-width: 0;
        margin: 0 !important;
    }

    .sidebar-nav .nav-item.mt-3.pt-3 {
        border-top: none !important;
    }

    .sidebar-nav .nav-link {
        margin: 0;
        height: 56px;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        text-align: center;
        transform: none !important;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .sidebar-nav .nav-link i {
        margin-right: 0;
        width: auto;
        font-size: 1rem;
    }

    /* Hide all text labels on mobile */
    .sidebar-nav .nav-link span {
        display: none;
    }

    /* Active dot indicator below icon */
    .sidebar-nav .nav-link.active {
        background: transparent !important;
        color: var(--cc-gold) !important;
        box-shadow: none !important;
        border: none !important;
        position: relative;
    }
    .sidebar-nav .nav-link.active::after {
        content: '';
        display: block;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--cc-gold);
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
    }
    .sidebar-nav .nav-link.active i {
        color: var(--cc-gold) !important;
    }

    #sidebarToggle {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

@media (min-width: 768px) {
    #sidebarToggle {
        display: none;
    }

    .mob-tabs {
        display: none;
    }
}

/* ---- Print ---- */
@media print {
    #sidebar,
    .navbar,
    .scroll-to-top,
    .btn {
        display: none !important;
    }

    #content-wrapper {
        margin-left: 0;
    }

    body::before {
        display: none;
    }
}

/* ---- Enforced UI Overrides (Higher Specificity) ---- */
body #sidebar.sidebar {
    background: linear-gradient(160deg, rgba(7,7,12,.95) 0%, rgba(16,16,24,.94) 52%, rgba(11,11,18,.96) 100%) !important;
    backdrop-filter: blur(16px) !important;
    border-right: 1px solid rgba(126,200,227,.28) !important;
}

body #sidebar.sidebar .sidebar-nav .nav-link {
    color: #f8fbff !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.35);
    background: rgba(255,255,255,.045);
}

body #sidebar.sidebar .sidebar-nav .nav-link:hover,
body #sidebar.sidebar .sidebar-nav .nav-link:focus {
    color: #fff !important;
    background: linear-gradient(120deg, rgba(212,168,67,.28), rgba(126,200,227,.25)) !important;
    border-color: rgba(255,255,255,.24) !important;
}

body #sidebar.sidebar .sidebar-nav .nav-link.active {
    color: #111 !important;
    background: linear-gradient(135deg, #d4a843, #f0d78c) !important;
    border-color: rgba(212,168,67,.5) !important;
    box-shadow: 0 10px 22px rgba(212,168,67,.32) !important;
}

body #sidebar.sidebar .sidebar-nav .nav-link i {
    color: #ccefff !important;
    opacity: 1 !important;
}

body #sidebar.sidebar .sidebar-nav .nav-link.active i {
    color: #111 !important;
}

body #sidebar.sidebar .sidebar-nav .nav-header {
    color: #9eddff !important;
    opacity: 1 !important;
}

body #content-wrapper > .navbar {
    background: rgba(255,255,255,.78) !important;
    border-bottom: 1px solid rgba(255,255,255,.58) !important;
    backdrop-filter: blur(13px) !important;
}

body #content-wrapper > .navbar::after {
    opacity: .26;
}

body #content-wrapper .card {
    background: rgba(255,255,255,.78) !important;
    border: 1px solid rgba(255,255,255,.68) !important;
    box-shadow: 0 14px 32px rgba(10, 30, 50, .12) !important;
}
