/* ======================================================================
   SGÔR - 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: #B09E6C;
    --cc-gold-light: #CFC39D;
    --cc-gold-dark: #8C7D52;
    --cc-blue: #d9d9d9;
    --cc-blue-light: #f1f1f1;
    --cc-blue-dark: #555555;
    --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: 232px;
    --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(176,158,108,.15), transparent 42%),
        radial-gradient(circle at 14% 88%, rgba(120,120,120,.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: none; }
}

@keyframes section-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* =====================================================================
   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(120,120,120,.16), transparent 44%),
        radial-gradient(circle at 82% 75%, rgba(176,158,108,.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; }

/* Pitch markings hidden (remove this rule to bring them back) */
.auth-pitch { display: 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(176,158,108,.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: 240px;
    max-width: 85%;
    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(176,158,108,.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: 200px; }

    .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(176,158,108,.24);
    box-shadow: 18px 0 36px rgba(0,0,0,.25);
}

#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(176,158,108,.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(176,158,108,.35);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
}

.sidebar-logo {
    display: block;
    margin: 0 auto;
}

#content-wrapper {
    margin-left: var(--cc-sidebar-width);
    min-width: 0; /* let wide content (tabs, tables) scroll inside its own box instead of stretching the page */
    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(176,158,108,.22), rgba(120,120,120,.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(176,158,108,.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;
    text-align: left;
    /* Lines the section icon up with the nav-link icons below it (0.5rem outer
       margin + 1rem link padding = 1.5rem before an icon starts). */
    padding-left: 1.5rem;
    padding-right: 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;
}

/* Collapsible sidebar sections (desktop) */
.sidebar-nav .nav-header.nav-section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.sidebar-nav .nav-header .nav-section-chevron {
    font-size: 0.55rem;
    opacity: .6;
    transition: transform .15s ease;
}

.sidebar-nav .nav-header[aria-expanded="true"] .nav-section-chevron {
    transform: rotate(90deg);
}

.sidebar-nav .nav-item.section-collapsed {
    display: none !important;
}

/* Subtle divider between item groups within a section (e.g. Admin Menu). */
.sidebar-nav .nav-item.nav-group-divider {
    margin: .5rem 0;
}

.sidebar-nav .nav-item.nav-group-divider hr {
    margin: 0 1rem;
    border: none;
    border-top: 1px solid rgba(176,158,108, .15);
}

/* ---- 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(176,158,108,.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(176,158,108,.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(176,158,108,.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(120,120,120,.04);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(176,158,108,.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(176,158,108,.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(176,158,108,.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);
}

/* ---- No Photo Consent Overlay ---- */
/* Marks a player's photo/placeholder wherever it appears, when a parent has
   explicitly declined photo consent (see player_photo_consent_declined() in
   app/Helpers/functions.php). Self-contained — just add the class to whatever
   element already wraps the image; it supplies its own position:relative,
   so it also works added directly to a container that has its own layout
   rules (e.g. display:flex) without fighting them. */
.no-photo-consent {
    position: relative;
    z-index: 4; /* above page-specific decorative layers like watermarks */
}

.no-photo-consent > img,
.no-photo-consent > * {
    filter: blur(2px) grayscale(.3);
    opacity: .6;
}

.no-photo-consent::after {
    content: '\f030'; /* fa-camera */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    color: #dc2626;
    text-shadow: 0 1px 3px rgba(255,255,255,.85);
    pointer-events: none;
}

.no-photo-consent::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12%;
    right: 12%;
    height: 3px;
    background: #dc2626;
    box-shadow: 0 0 0 1px rgba(255,255,255,.85);
    border-radius: 2px;
    transform: rotate(-45deg);
    z-index: 1;
    pointer-events: none;
}

/* ---- 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(176,158,108,.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(176,158,108,.1);
    color: #856404;
    border-left: 4px solid var(--cc-gold);
}

.alert-info {
    background: rgba(120,120,120,.1);
    color: #343a40;
    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(120,120,120,.06) 0px,
        rgba(120,120,120,.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(176,158,108,.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(176,158,108,.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(176,158,108,.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;
    }
}

.attendance-streak {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background: #f8f9fa;
}

.attendance-streak-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    animation: attendance-streak-pulse 1.8s ease-in-out infinite;
}

.attendance-streak-rank {
    position: absolute;
    top: 0.5rem;
    right: 0.625rem;
    color: #0f766e;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.soccer-pitch-icon {
    position: relative;
    display: inline-block;
    width: 0.95em;
    height: 0.65em;
    border: 1px solid currentColor;
    border-radius: 1px;
    vertical-align: -0.04em;
}

.soccer-pitch-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: 50%;
    border-left: 1px solid currentColor;
}

.soccer-pitch-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.3em;
    height: 0.3em;
    border: 1px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.attendance-streak-current {
    color: #b45309;
    background: #fef3c7;
}

.attendance-streak-best {
    color: #0f766e;
    background: #ccfbf1;
    animation-delay: 0.35s;
}

@keyframes attendance-streak-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .attendance-streak-icon { animation: none; }
}

/* ---- Collapsible sidebar (tablet / landscape) ---- */
@media (min-width: 768px) {
    body.sidebar-collapsed #sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    body.sidebar-collapsed #content-wrapper {
        margin-left: 0;
    }
}

/* ---- 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: #000 !important;
    backdrop-filter: none !important;
    border-right: 1px solid rgba(176,158,108,.28) !important;
}

body #sidebar.sidebar .sidebar-nav .nav-link {
    color: #fff !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(176,158,108,.28), rgba(255,255,255,.08)) !important;
    border-color: rgba(176,158,108,.4) !important;
}

body #sidebar.sidebar .sidebar-nav .nav-link.active {
    color: #111 !important;
    background: linear-gradient(135deg, #B09E6C, #CFC39D) !important;
    border-color: rgba(176,158,108,.5) !important;
    box-shadow: 0 10px 22px rgba(176,158,108,.32) !important;
}

body #sidebar.sidebar .sidebar-nav .nav-link i {
    color: rgba(255,255,255,.75) !important;
    opacity: 1 !important;
}

body #sidebar.sidebar .sidebar-nav .nav-link.active i {
    color: #111 !important;
}

body #sidebar.sidebar .sidebar-nav .nav-header {
    color: #B09E6C !important;
    opacity: 1 !important;
}

body #content-wrapper > .navbar {
    background: rgba(255,255,255,.88) !important;
    border-bottom: 1px solid rgba(12,207,63,.18) !important;
    backdrop-filter: blur(13px) !important;
}

body #content-wrapper > .navbar::after {
    opacity: .85;
}

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;
}

body #content-wrapper .card.standing-order-bank-details {
    background: linear-gradient(135deg, #111827, #1f2937) !important;
    border-color: #111827 !important;
    color: #fff;
}

/* Coach years-of-service badge (club presentation awards) */
.service-badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
                 background: rgba(128,128,128,.15); color: inherit; white-space: nowrap; }
.service-gold   { background: #facc15; color: #422006; }
.service-green  { background: #22c55e; color: #052e16; }
.service-purple { background: #8b5cf6; color: #fff; }

/* Team tags on the staff list: black and gold */
.team-tag { display: inline-block; padding: .15rem .55rem; border-radius: 6px; background: #111; color: #B09E6C;
            border: 1px solid #B09E6C; font-size: .72rem; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }

/* Higher coaching licence marker (A / B / C) next to the Coaching expiry */
.licence-badge { display: inline-block; min-width: 1.5rem; padding: .15rem .4rem; margin-left: .25rem; border-radius: 6px; background: #1e3a8a;
                 color: #fff; font-size: .72rem; font-weight: 800; text-align: center; line-height: 1.2; }

/* ==========================================================================
   SGÔR platform theme: sidebar, top bar and app background only.
   Page content (cards, buttons, tabs) keeps the club colours above.
   ========================================================================== */
:root {
    --sgor-green: #0ccf3f;
    --sgor-green-light: #a6f20f;
    --sgor-green-dark: #05803a;
    --sgor-green-deep: #04321a;
    --sgor-charcoal: #121614;
    --sgor-grey: #eef1ef;

    --cc-body-bg: radial-gradient(circle at 10% 10%, #ffffff 0%, #f4f6f5 40%, #e8ecea 100%);
    --cc-sidebar-bg: #000;
    --cc-header-bg: rgba(255, 255, 255, 0.88);
}

body::after {
    background:
        radial-gradient(circle at 85% 12%, rgba(176,158,108,.10), transparent 42%),
        radial-gradient(circle at 14% 88%, rgba(120,120,120,.10), transparent 40%);
}

/* Sidebar: black/gold club branding, with the SGÔR green stripe along the very top */
#sidebar::before {
    background: linear-gradient(90deg, var(--sgor-green-dark), var(--sgor-green), var(--sgor-green-light));
}
.sidebar-header {
    background: none;
}

/* Top bar */
.top-navbar,
.navbar {
    border-bottom: 1px solid rgba(12,207,63,.18);
}
.top-navbar::after,
.navbar::after {
    height: 3px;
    background: linear-gradient(90deg, var(--sgor-green-dark), var(--sgor-green), var(--sgor-green-light));
    opacity: .85;
}
.user-avatar {
    background: linear-gradient(135deg, var(--sgor-green-dark), var(--sgor-green));
    color: #fff;
    box-shadow: 0 2px 8px rgba(12,207,63,.3);
}

/* ==========================================================================
   Club branding for page content: black / white / grey, gold as the highlight.
   Re-points Bootstrap's blue "primary" and cyan "info" at gold and grey.
   ========================================================================== */
:root {
    --bs-primary: #8C7D52;
    --bs-primary-rgb: 140,125,82;
    --bs-info: #495057;
    --bs-info-rgb: 73,80,87;
    --bs-link-color: #8C7D52;
    --bs-link-color-rgb: 140,125,82;
    --bs-link-hover-color: #111;
    --bs-link-hover-color-rgb: 17,17,17;
}
.bg-primary { background-color: var(--cc-gold) !important; color: var(--cc-black) !important; }
.bg-info    { background-color: #343a40 !important; color: #fff !important; }
.badge.bg-info { background: #343a40 !important; color: #fff !important; }
.text-primary { color: var(--cc-gold-dark) !important; }
.text-info    { color: #6c757d !important; }
.btn-info, .btn-info:hover { background: #343a40; border-color: #343a40; color: #fff; }
.btn-outline-info { border-color: #495057; color: #495057; }
.btn-outline-info:hover { background: #343a40; border-color: #343a40; color: #fff; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--cc-gold);
    box-shadow: 0 0 0 .2rem rgba(176,158,108,.25);
}
.form-check-input:checked { background-color: var(--cc-gold); border-color: var(--cc-gold); }
.form-switch .form-check-input:checked { background-color: var(--cc-gold); border-color: var(--cc-gold); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--cc-gold); color: var(--cc-black); }
.page-link { color: var(--cc-black); }
.page-item.active .page-link { background-color: var(--cc-gold); border-color: var(--cc-gold); color: var(--cc-black); }
.progress-bar { background-color: var(--cc-gold); color: var(--cc-black); }
