/* District 8 Travel League - MVP Styles */

/* ============================================================
   BASEBALL THEME — Stadium Modern
   Palette:
     Navy    #0d1f3c   (dugout / primary)
     Red     #c8102e   (accent / CTAs)
     Green   #2d6a4f   (field / hero)
     Cream   #f5f2eb   (background)
     Gold    #f59e0b   (first place / highlights)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

:root {
    --bb-navy:   #0d1f3c;
    --bb-navy-2: #162844;
    --bb-red:    #c8102e;
    --bb-green:  #2d6a4f;
    --bb-green-2:#1e4d2b;
    --bb-cream:  #f5f2eb;
    --bb-gold:   #f59e0b;
}

/* Custom styles for the MVP application */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bb-cream);
}

h1, h2, h3, h4,
.navbar-brand,
.coach-hero-team,
.card-header {
    font-family: 'Oswald', sans-serif;
}

.navbar-brand {
    font-weight: bold;
}

.jumbotron {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    margin-bottom: 2rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.table-sm th,
.table-sm td {
    padding: 0.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Login forms */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
}

.login-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

/* Admin dashboard */
.dashboard-card {
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.metric-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.metric-number {
    font-size: 2rem;
    font-weight: bold;
}

/* Schedule table */
.schedule-table {
    font-size: 0.875rem;
}

.schedule-table th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

/* Standings table */
.standings-table .place-1 {
    background-color: #fff3cd;
    font-weight: bold;
}

.standings-table .place-2 {
    background-color: #f8f9fa;
}

/* Status badges */
.status-active {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

.status-completed {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

.status-cancelled {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.status-pending {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.status-approved {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

.status-denied {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.status-scheduled {
    background-color: #007bff !important;
    color: #ffffff !important;
}

.status-created {
    background-color: #6f42c1 !important;
    color: #ffffff !important;
}

.status-pending-change {
    background-color: #fd7e14 !important;
    color: #ffffff !important;
}

.status-unverified {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.status-team-pending {
    background-color: #fd7e14 !important;
    color: #ffffff !important;
}

.status-team-owner {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

.status-postponed {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

.status-default {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

.badge.bg-warning {
    color: #212529 !important;
}

/* Form styles */
.form-label {
    font-weight: 600;
    color: #495057;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .metric-number {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .card-header,
    footer {
        display: none !important;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
    
    body {
        background-color: white;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.375rem;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.reg-progress .steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-progress .step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
}

.reg-progress .step.active {
    color: #0d6efd;
    font-weight: 600;
}

.reg-progress .circle {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 2px solid #adb5bd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.reg-progress .step.active .circle {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
}

.reg-progress .connector {
    flex: 1 1 auto;
    border-top: 2px solid #dee2e6;
    min-width: 2rem;
}

/* ==========================================================================
   Story 4.4 — Coach Dashboard: Hero + Action Grid
   ========================================================================== */

/* Coach Identity Hero */
.coach-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 2rem 0;
}

.coach-hero.unassigned {
    background: #6c757d;
}

/* pending state keeps the blue gradient; the amber badge provides the visual cue */

.coach-hero-team {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.25rem 0;
    color: #fff;
}

.coach-name-line,
.coach-hero-meta {
    font-size: 0.875rem;
    opacity: 0.85;
    color: #fff;
}

/* Action Card Grid */
.coach-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: -1.5rem; /* overlap hero bottom edge (UX-DR3) */
    padding-bottom: 2rem;
}

.coach-action-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.coach-action-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}

.coach-action-card .card-label {
    font-size: 1rem;
    font-weight: 700;
}

.coach-action-card .card-sub {
    font-size: 0.8rem;
}

.coach-action-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 0.75rem;
}

.coach-action-card.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

/* Mobile: single-column grid */
@media (max-width: 575px) {
    .coach-action-grid {
        grid-template-columns: 1fr;
        margin-top: -1rem;
    }
}

/* VS Score Entry (score-input.php) */
.vs-score-entry {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.vs-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c757d;
    text-align: center;
    padding: 0 0.5rem;
}

.vs-score-input {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    min-height: 44px;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6;
}

/* Migration Cutover — Gap Checklist Rows (UX-DR6) */
.gap-row-covered {
    color: #28a745;
}

.gap-row-missing {
    color: #dc3545;
    background-color: #fff9f9;
}

/* iOS auto-zoom prevention — inputs must be ≥16px so iOS Safari won't zoom on focus */
input, select, textarea {
    font-size: max(16px, 1em);
}

/* Score input overrides the global font-size rule with a more specific selector — intentional */
.vs-score-input {
    font-size: 2rem !important;
}

/* Downsize Bootstrap's lg-select and lg-input on small phones so they don't dominate the screen */
@media (max-width: 575px) {
    .form-select-lg, .form-control-lg {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    /* Score input game info banner: tighten font */
    .score-game-banner {
        font-size: 0.875rem;
    }
}

/* ====================================================
   Mobile-Responsive UI (Story 17.1)
   ==================================================== */

/* Score input: per-team row layout on mobile (≤480px) */
@media (max-width: 480px) {
    .vs-score-entry {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    /* !important required — .vs-score-entry > div { display: flex } below has equal specificity */
    .vs-label { display: none !important; }
    .vs-score-entry > div {
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 0.85rem 1rem;
        margin-bottom: 0.6rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }
    /* Group role label + team name in a left-side column */
    .vs-card-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex: 1;
        min-width: 0;
    }
    .vs-card-text label {
        margin-bottom: 0;
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
    }
    .vs-score-entry .vs-team-label {
        display: block;
    }
    /* !important on all dimensions — form-control sets width:100% at same specificity */
    .vs-score-input {
        width: 70px !important;
        height: 70px !important;
        min-height: 70px;
        font-size: 2rem !important;
        font-weight: 700 !important;
        flex-shrink: 0;
        border: 2px solid #adb5bd !important;
        border-radius: 10px !important;
        background: #f8f9fa !important;
        text-align: center !important;
        padding: 0 !important;
        line-height: 70px !important;
    }
    .vs-score-input:focus {
        border-color: #2563eb !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
        outline: none;
    }
}

/* vs-team-label hidden on desktop, shown via media query above */
.vs-team-label { display: none; }

/* Mobile schedule cards (hidden on lg+) */
.mobile-date-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    padding: 0.5rem 0 0.25rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
}

.mobile-game-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mobile-game-card .team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.mobile-game-card .score-or-vs {
    font-weight: 700;
    font-size: 1rem;
    color: #2563eb;
}

.mobile-game-card .game-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.35rem;
}

.mobile-filter-chips {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-filter-chips::-webkit-scrollbar { display: none; }

.mobile-game-card.is-filtered-out {
    display: none !important;
}

.date-group.is-empty {
    display: none !important;
}

.chip-btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid #2563eb;
    background: #fff;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.chip-btn.active,
.chip-btn:hover {
    background: #2563eb;
    color: #fff;
}

/* Public schedule tabs */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}
.game-row-today {
    background-color: #fffbeb !important;
}
.game-row-today td {
    font-weight: 500;
}

/* Underline tab strip */
.schedule-tab-strip {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1rem;
    gap: 0;
}
.sch-tab {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6c757d;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color .12s;
    white-space: nowrap;
}
.sch-tab:hover { color: #495057; }
.sch-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.sch-tab.tab-warn.active { color: #d97706; border-bottom-color: #f59e0b; }
.sch-tab.tab-ppd.active  { color: #6f42c1; border-bottom-color: #6f42c1; }

/* Tab count badges */
.sch-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #e9ecef;
    color: #495057;
}
.sch-tab.active .sch-tab-badge          { background: #dbeafe; color: #1d4ed8; }
.sch-tab.tab-warn .sch-tab-badge        { background: #fef3c7; color: #92400e; }
.sch-tab.tab-ppd .sch-tab-badge         { background: #ede9fe; color: #5b21b6; }

/* Mobile tab chips — warn/ppd variants */
.chip-btn.tab-chip-warn { border-color: #f59e0b; color: #92400e; }
.chip-btn.tab-chip-warn.active { background: #f59e0b; color: #fff; }
.chip-btn.tab-chip-ppd { border-color: #6f42c1; color: #5b21b6; }
.chip-btn.tab-chip-ppd.active { background: #6f42c1; color: #fff; }
/* Mobile tab chip row — tighter padding */
.mobile-tab-chips .chip-btn {
    padding: 0.26rem 0.55rem;
    font-size: 0.7rem;
}

/* Coach hero stat tiles */
.hero-stats {
    flex-wrap: wrap;
}

.hero-stat {
    flex: 1 1 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    text-align: center;
    min-width: 60px;
}

.hero-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-stat-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.75);
    margin-top: 0.1rem;
}

a.hero-stat {
    text-decoration: none;
    cursor: pointer;
}

a.hero-stat:hover {
    background: rgba(255,255,255,0.25);
    text-decoration: none;
}

.hero-stat-alert {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.55);
}

a.hero-stat.hero-stat-alert:hover {
    background: rgba(255, 193, 7, 0.45);
}

/* Contact cards (mobile) */
.contact-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.contact-card .contact-team {
    font-weight: 700;
    font-size: 0.95rem;
}

.contact-card .contact-manager {
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 0.1rem;
}

.contact-card .contact-links {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-card .contact-links a {
    font-size: 0.875rem;
    text-decoration: none;
}

/* Collapse chevron rotation */
.collapse-chevron {
    transition: transform 0.2s ease;
}

[aria-expanded="false"] .collapse-chevron {
    transform: rotate(-90deg);
}

/* Standings mobile expandable cards */
.standings-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.standings-card-first {
    border-color: #f59e0b;
    background: #fffbeb;
}

.standings-card-header {
    width: 100%;
    background: none;
    border: none;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    cursor: pointer;
}

.standings-card-place {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    flex-shrink: 0;
    min-width: 2rem;
}

.standings-card-first .standings-card-place {
    color: #b45309;
}

.standings-card-team {
    font-size: 0.9rem;
    font-weight: 700;
    color: #212529;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.standings-card-record {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6c757d;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.standings-chevron {
    font-size: 0.7rem;
    color: #adb5bd;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.standings-card-header[aria-expanded="true"] .standings-chevron {
    transform: rotate(180deg);
}

.standings-card-detail {
    padding: 0.5rem 0.9rem 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.standings-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 0.2rem 0;
    color: #495057;
}

.standings-detail-row span:first-child {
    color: #6c757d;
}

.standings-detail-row span:last-child {
    font-weight: 600;
}

/* Schedule view toggle (Table | Calendar) */
.schedule-view-toggle {
    gap: 0;
    margin-bottom: 0.75rem;
}
.view-toggle-btn {
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: #fff;
    color: #6c757d;
    border: 1.5px solid #dee2e6;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.view-toggle-btn:first-child {
    border-radius: 6px 0 0 6px;
}
.view-toggle-btn:last-child {
    border-radius: 0 6px 6px 0;
    border-left: none;
}
.view-toggle-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.view-toggle-btn:hover:not(.active) {
    background: #f8f9fa;
    color: #495057;
}

/* Calendar container */
#calendarEl {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
}
/* FullCalendar overrides */
.fc .fc-toolbar-title {
    font-size: 1rem;
    font-weight: 700;
}
.fc .fc-button {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
}
.fc .fc-daygrid-event {
    font-size: 0.72rem;
    border-radius: 3px;
    padding: 1px 3px;
    cursor: pointer;
}

/* Calendar team search */
.cal-search-wrap {
    max-width: 300px;
}
.cal-search-wrap .form-control-sm {
    font-size: 0.82rem;
}

/* Special date background events */
.fc-special-date .fc-bg-event {
    opacity: 0.25;
}
.fc .fc-bg-event .fc-event-title {
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 1;
    padding: 1px 4px;
    color: #1e293b; /* Darker text for better contrast on tinted backgrounds */
}

/* Calendar legend */
.cal-legend-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.cal-legend-upcoming { background: #2563eb; color: #fff; }
.cal-legend-completed { background: #6c757d; color: #fff; }
.cal-legend-awaiting { background: #f59e0b; color: #000; }
.cal-legend-postponed { background: #6f42c1; color: #fff; }
.cal-legend-special { background: #e2e8f0; color: #475569; }

/* Mobile Special Date Cards */
.mobile-special-date-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
    border-left-width: 3px;
    border-left-style: solid;
}
.mobile-special-date-card .sd-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #fff;
}
.mobile-special-date-card .sd-body { flex: 1; min-width: 0; }
.mobile-special-date-card .sd-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
}
.mobile-special-date-card .sd-type {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 1px;
}
/* keep the old marker class name as an alias just in case */
.mobile-special-date-marker {
    display: none; /* replaced by .mobile-special-date-card */
}

/* ==========================================================================
   BASEBALL THEME OVERRIDES
   ========================================================================== */

/* ── Navbar ── */
#main-navbar {
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-2) 100%) !important;
    border-bottom: 3px solid var(--bb-red);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
#main-navbar .navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
#main-navbar .nav-link {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}
#main-navbar .nav-link.active {
    border-bottom: 2px solid var(--bb-red);
}
#main-navbar .dropdown-menu {
    border: none;
    border-top: 3px solid var(--bb-red);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
#main-navbar .dropdown-item {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}
#main-navbar .dropdown-item:hover {
    background: var(--bb-cream);
    color: var(--bb-navy);
}
#main-navbar .dropdown-header {
    font-family: 'Oswald', sans-serif;
    color: var(--bb-red);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Mega Menu ── */
#main-navbar .mega-dropdown {
    position: static;
}

#main-navbar .mega-dropdown .dropdown-menu.mega-menu {
    width: 100%;
    border: none;
    border-top: 3px solid var(--bb-red);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 1.25rem 1.5rem;
    margin-top: 0;
    background: #fff;
    left: 0;
    right: 0;
}

#main-navbar .mega-dropdown .mega-section-header {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--bb-red);
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 2px solid var(--bb-red);
}

#main-navbar .mega-dropdown .dropdown-item {
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #333;
}

#main-navbar .mega-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--bb-navy);
}

#main-navbar .mega-dropdown .dropdown-item:hover {
    background: #f0f3f8;
    color: var(--bb-navy);
}

#main-navbar .mega-dropdown .dropdown-item.active {
    background: #eef2f7;
    color: var(--bb-navy);
    font-weight: 600;
}

#main-navbar .mega-dropdown .mega-section-header.mt-3 {
    margin-top: 1rem !important;
    padding-top: 0.5rem;
}

@media (max-width: 991.98px) {
    #main-navbar .mega-dropdown {
        position: relative;
    }
    #main-navbar .mega-dropdown .dropdown-menu.mega-menu {
        width: auto;
        left: auto;
        right: auto;
        padding: 0.5rem;
    }
    #main-navbar .mega-dropdown .mega-menu .row {
        display: block;
    }
    #main-navbar .mega-dropdown .mega-menu [class*="col-"] {
        width: 100%;
        flex: none;
        margin-bottom: 0.75rem;
    }
}

/* ── Jumbotron / Hero ── */
.jumbotron {
    background: linear-gradient(160deg, var(--bb-green-2) 0%, var(--bb-green) 55%, var(--bb-navy) 100%);
    color: white;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13,31,60,0.25);
}
.jumbotron::before {
    content: '⚾';
    position: absolute;
    right: -30px;
    top: -30px;
    font-size: 11rem;
    opacity: 0.07;
    transform: rotate(-20deg);
    pointer-events: none;
}
.jumbotron::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bb-red) 0%, var(--bb-gold) 50%, var(--bb-red) 100%);
}
.jumbotron h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.jumbotron .lead {
    opacity: 0.9;
}

/* ── Cards ── */
.card {
    border: 1px solid rgba(13,31,60,0.1);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.card-header {
    background: var(--bb-navy) !important;
    color: #fff !important;
    border-bottom: 2px solid var(--bb-red) !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* ── Buttons ── */
.btn-primary {
    background-color: var(--bb-navy);
    border-color: var(--bb-navy);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bb-navy-2);
    border-color: var(--bb-navy-2);
}
.btn-danger {
    background-color: var(--bb-red);
    border-color: var(--bb-red);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.btn-success {
    background-color: var(--bb-green);
    border-color: var(--bb-green);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.btn-outline-primary {
    color: var(--bb-navy);
    border-color: var(--bb-navy);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.btn-outline-primary:hover {
    background-color: var(--bb-navy);
    border-color: var(--bb-navy);
}
.btn-outline-light {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Form controls ── */
.form-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bb-navy);
}
.form-control:focus {
    border-color: var(--bb-navy);
    box-shadow: 0 0 0 0.2rem rgba(13,31,60,0.15);
}

/* ── Game cards ── */
.mobile-game-card {
    border-left: 3px solid var(--bb-navy);
    transition: border-left-color 0.15s, box-shadow 0.15s;
}
.mobile-game-card:hover {
    border-left-color: var(--bb-red);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.mobile-game-card .team-row {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--bb-navy);
}
.mobile-game-card .score-or-vs {
    color: var(--bb-red);
    font-family: 'Oswald', sans-serif;
}
.mobile-date-label {
    font-family: 'Oswald', sans-serif;
    color: var(--bb-green);
    border-bottom-color: rgba(45,106,79,0.2);
}

/* ── Standings ── */
.standings-table th {
    background-color: var(--bb-navy) !important;
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    border: none;
}
.standings-table .place-1 {
    border-left: 3px solid var(--bb-gold);
}

/* ── Coach hero ── */
.coach-hero {
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-navy-2) 60%, var(--bb-green-2) 100%);
    position: relative;
    overflow: hidden;
}
.coach-hero::before {
    content: '⚾';
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 9rem;
    opacity: 0.05;
    pointer-events: none;
}
.coach-hero-team {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Coach action cards ── */
.coach-action-card {
    border: 1px solid rgba(13,31,60,0.08);
    border-top: 3px solid transparent;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-top-color 0.15s;
}
.coach-action-card:hover {
    border-top-color: var(--bb-red);
    box-shadow: 0 8px 28px rgba(13,31,60,0.18);
}
.coach-action-card .card-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bb-navy);
}

/* ── Schedule tabs ── */
.sch-tab {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.sch-tab.active {
    color: var(--bb-navy);
    border-bottom-color: var(--bb-red);
}

/* ── Chip buttons ── */
.chip-btn {
    border-color: var(--bb-navy);
    color: var(--bb-navy);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.chip-btn.active, .chip-btn:hover {
    background: var(--bb-navy);
    color: #fff;
}

/* ── Login ── */
.login-header {
    background: linear-gradient(160deg, var(--bb-navy) 0%, var(--bb-green-2) 100%);
    position: relative;
    overflow: hidden;
}
.login-header::before {
    content: '⚾';
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 5rem;
    opacity: 0.08;
    transform: rotate(-10deg);
    pointer-events: none;
}
.login-header h2, .login-header h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Footer ── */
/* Use footer.bg-light to match Bootstrap's class-level specificity and win */
footer,
footer.bg-light {
    background: var(--bb-navy) !important;
    color: rgba(255,255,255,0.7) !important;
    border-top: 3px solid var(--bb-red) !important;
}
footer p,
footer small {
    color: rgba(255,255,255,0.7) !important;
}
/* .text-muted uses !important at class specificity — match it with footer .text-muted */
footer a,
footer .text-muted,
footer a.text-muted {
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none;
    transition: color 0.15s;
}
footer a:hover,
footer a.text-muted:hover {
    color: rgba(255,255,255,0.9) !important;
}

/* ── Umpire My Assignments: Revised Detail Cards (Option 1) ── */
.assignment-detail-card {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}
.assignment-detail-card__header {
    background: #e9edf2;
    padding: 0.5rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.assignment-detail-card__header i {
    color: #6c757d;
    font-size: 0.72rem;
}
.assignment-detail-card__body {
    padding: 0.65rem 0.75rem;
}
.assignment-detail-card__body .contact-name {
    font-weight: 600;
    font-size: 0.875rem;
}
.assignment-detail-card__body .contact-name-matchup {
    font-weight: 600;
    font-size: 0.85rem;
    overflow-wrap: break-word;
}
.assignment-detail-card__body .contact-line {
    font-size: 0.8rem;
    color: #495057;
}
.assignment-detail-card__body .contact-line a {
    color: #0d6efd;
    text-decoration: none;
}
.assignment-detail-card__body .contact-line a:hover {
    text-decoration: underline;
}
.assignment-detail-card__body .contact-sub {
    margin-top: 0.2rem;
}
.assignment-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0 0 0;
}
.assignment-action-row .btn {
    font-size: 0.8rem;
}
.assignment-panel {
    display: none;
    margin-top: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    padding: 0.75rem;
}
.assignment-panel.open {
    display: block;
}
.assignment-panel__title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}
.assignment-panel__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.assignment-panel__row:last-child {
    border-bottom: none;
}
.assignment-panel__row-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    min-width: 80px;
}
.assignment-panel__row-name {
    font-size: 0.85rem;
    flex: 1;
}
.assignment-panel__row-phone a {
    font-size: 0.85rem;
    color: #0d6efd;
    text-decoration: none;
}
.assignment-panel__row-phone a:hover {
    text-decoration: underline;
}
.assignment-panel__empty {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}
.assignment-decline-confirm .confirm-game-detail {
    font-size: 0.8rem;
    color: #495057;
    margin-bottom: 0.75rem;
}
.assignment-mobile-card {
    padding: 0;
}
.assignment-mobile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
}
.assignment-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: -0.25rem -0.25rem 0 0;
    border: 0;
    background: transparent;
    color: #6c757d;
}
.assignment-mobile-toggle:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
.assignment-mobile-summary {
    min-width: 0;
    flex: 1;
}
.assignment-mobile-toggle__icon {
    transition: transform 0.15s ease;
}
.assignment-mobile-toggle[aria-expanded="true"] .assignment-mobile-toggle__icon {
    transform: rotate(180deg);
}
.assignment-mobile-card-body {
    padding: 0 1rem 1rem;
}
.assignment-mobile-details {
    margin-top: 0.5rem;
}
.assignment-mobile-details .assignment-detail-card {
    margin-bottom: 0.5rem;
}
.assignment-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
@media (max-width: 991px) {
    .umpire-assignments-table .detail-grid {
        grid-template-columns: 1fr;
    }
}
