/**
 * SPA.css - Single Page Application Styles
 * Consolidated mobile-first design system for app.html
 */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-primary-dark, #00264d) !important;
    background-image: none !important;
    min-height: 100vh;
    color: var(--club-background-text, var(--color-white));
    padding-bottom: 80px;
    padding-top: 70px;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

/* Background layer with opacity control */
body::before,
body.mobile-view::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: var(--club-background, linear-gradient(180deg, var(--color-primary, #003366) 0%, var(--color-primary-dark, #00264d) 100%)) !important;
    background-attachment: var(--club-background-attachment, fixed) !important;
    background-size: var(--club-background-size, cover) !important;
    background-position: var(--club-background-position, center) !important;
    background-repeat: var(--club-background-repeat, no-repeat) !important;
    opacity: var(--background-opacity, 1) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(var(--primary-rgb, 0, 51, 102), var(--nav-opacity, 0.95)) !important;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    max-width: 40px;
}

@media (min-width: 768px) {
    .header-logo {
        height: 50px;
        max-width: 50px;
    }
}

.header-left h1 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.2;
    opacity: 1 !important;
}

.header-left p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: 2px;
    opacity: 1 !important;
}

.header-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Reduce header icons on smaller screens when there are many */
@media (max-width: 400px) {
    .header-right {
        gap: 4px;
    }
    .header-right .icon-btn {
        width: 34px;
        height: 34px;
    }
    .header-right .icon-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Even smaller screens */
@media (max-width: 350px) {
    .header-right {
        gap: 2px;
    }
    .header-right .icon-btn {
        width: 30px;
        height: 30px;
    }
    .header-right .icon-btn svg {
        width: 16px;
        height: 16px;
    }
    .header-left h1 {
        font-size: 18px;
    }
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    position: relative;
    opacity: 1 !important;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn.active {
    background: var(--accent-color, #fdb813) !important;
}

.icon-btn.active svg {
    stroke: var(--primary-color, #003366) !important;
}

.icon-btn svg {
    stroke: #ffffff !important;
    width: 24px;
    height: 24px;
    opacity: 1 !important;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Header icon divider for visual grouping */
.header-right .icon-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

/* Profile button special styling */
#profile-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#profile-btn:hover {
    border-color: var(--color-secondary, #fdb813);
    background: rgba(255, 255, 255, 0.25);
}

/* Active state must override profile button special styling */
#profile-btn.active {
    background: var(--accent-color, #fdb813) !important;
    border-color: var(--accent-color, #fdb813) !important;
}

#profile-btn.active svg {
    stroke: var(--primary-color, #003366) !important;
}

/* ==================== CONTENT AREA ==================== */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 20px 20px 20px; /* 90px top = 70px header + 20px spacing */
    min-height: calc(100vh - 150px);
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(var(--primary-rgb, 0, 51, 102), var(--nav-opacity, 0.98)) !important;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
    text-align: center;
    min-width: 60px;
    opacity: 1 !important;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.85) !important;
    opacity: 1 !important;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
    opacity: 1 !important;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-secondary, #fdb813) !important;
    opacity: 1 !important;
}

.nav-item:hover svg,
.nav-item.active svg {
    stroke: var(--color-secondary, #fdb813) !important;
    opacity: 1 !important;
}

/* Active nav item background pill */
.nav-item.active {
    position: relative;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 32px;
    background: rgba(var(--secondary-rgb, 253, 184, 19), 0.15);
    border-radius: 16px;
    z-index: -1;
}

/* Live icon wrapper for pulse animation */
.live-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: none;
}

/* Show pulse when live matches exist */
.live-pulse.active {
    display: block;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

/* Live nav item with active matches */
.nav-item[data-route="/live"].has-live {
    color: #ef4444 !important;
}

.nav-item[data-route="/live"].has-live svg {
    stroke: #ef4444 !important;
}

/* ==================== CAROUSEL ==================== */
.club-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
}

.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    
    font-size: 32px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
}

.carousel-dot.active {
    background: white;
}

/* Carousel responsive */
@media (min-width: 768px) {
    .club-carousel {
        height: 400px;
    }
    
    .carousel-caption {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .club-carousel {
        height: 500px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==================== CARDS ==================== */
.card {
    background: rgba(255, 255, 255, var(--card-opacity, 1)) !important;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary);
}

/* ==================== STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--color-gray-100);
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--color-gray-500);
    margin-top: 8px;
}

/* ==================== QUICK ACTIONS ==================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.action-card {
    background: var(--color-gray-50);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--color-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-card svg {
    margin-bottom: 8px;
    stroke: var(--color-secondary);
}

.action-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.action-card p {
    font-size: 12px;
    color: var(--color-gray-500);
    margin: 0;
}

/* ==================== TEAMS GRID ==================== */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.team-card {
    background: var(--color-gray-50);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.12);
    border-color: rgba(253, 184, 19, 0.5) !important;
}

.team-card:hover .team-logo {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 51, 102, 0.3);
}

.team-card:hover svg:last-child {
    opacity: 1 !important;
    transform: translateX(4px);
}

.team-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-logo svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-gray-400);
}

.team-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.team-card p {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-bottom: 8px;
}

.player-count {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ==================== MATCH CARDS ==================== */
.section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    margin-top: 24px;
    padding: 0 4px;
}

.section-title:first-child {
    margin-top: 0;
}

.card-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.match-card {
    background: var(--color-gray-50);
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow 0.2s;
}

.match-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.match-card.live-match {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    position: relative;
}

.live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-error);
    
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

.meta {
    font-size: 12px;
    color: var(--color-gray-500);
}

.teams-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.team.left {
    justify-content: flex-start;
}

.team.right {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.team-logo-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.team-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.score {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    min-width: 60px;
}

.score.live-score {
    color: var(--color-error);
}

.vs {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray-400);
}

.result-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
}

/* ==================== FILTERS ==================== */
.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Filter button structure - theme colors applied in theme-utilities.css */
.filter-btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:active {
    transform: scale(0.98);
}

.filter-btn span {
    color: var(--color-white);
    font-weight: 500;
}

.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
}

.filter-modal.hidden {
    display: none;
}

.filter-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.filter-modal-content {
    position: absolute;
    top: 110px;
    left: 16px;
    right: 16px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-height: 400px;
    overflow-y: auto;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.filter-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.filter-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-gray-500);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.filter-modal-close:hover {
    background: var(--color-gray-100);
}

.filter-modal-list {
    list-style: none;
    padding: 4px;
    margin: 0;
}

.filter-modal-list li {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    color: var(--color-primary);
}

.filter-modal-list li:hover {
    background: var(--color-gray-100);
}

.filter-modal-list li.active {
    
    color: var(--color-secondary);
    font-weight: 600;
}

/* ==================== RESULTS PAGE ==================== */
.edit-match-btn:hover {
    box-shadow: 0 4px 12px rgba(253, 184, 19, 0.4);
    transform: translateY(-1px);
}

.edit-match-btn:active {
    transform: translateY(0);
}

/* ==================== MODAL STYLES ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    z-index: 301;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-gray-200);
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions button {
    flex: 1;
}

.modal-close-btn {
    background: transparent;
    border: 0;
    font-size: 24px;
    color: var(--color-gray-500);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 50%;
}

.modal-close-btn:hover {
    background: var(--color-gray-100);
}

/* ==================== PROFILE SECTION ==================== */
.profile-field {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.profile-field p {
    font-size: 15px;
    color: var(--color-primary);
    font-weight: 500;
}

/**
 * SPA Core Styles - Theme-agnostic structural styles
 * Purpose: Layout, typography, component structure, base elements
 * Load order: After main-v2.css, before theme-utilities.css
 * Contains: Navigation, cards, modals, forms, base button structure
 */

/* ==================== BUTTONS ==================== */
/* Base button structure - provides foundation for theme-specific button classes */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

/* NOTE: All semantic button styles moved to theme-utilities.css:
   btn-primary, btn-secondary, btn-danger, btn-success, btn-warning,
   btn-action, btn-edit, btn-outline for consistent theming */

/* .btn-danger, .btn-success, .btn-warning moved to theme-utilities.css */

.btn-error {
    background: #ef4444;
    color: var(--color-white);
}

.btn-error:hover {
    opacity: 0.9;
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-gray-300);
}

.btn-ghost:hover {
    background: var(--color-gray-100);
}

/* ==================== UTILITY ==================== */
.loading {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.empty {
    text-align: center;
    padding: 40px;
    color: var(--color-gray-500);
    font-size: 15px;
}

.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
}

/* ==================== PWA INSTALL PROMPT ==================== */
.pwa-install-banner {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    max-width: 90%;
    width: 360px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.pwa-install-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.pwa-install-text {
    flex: 1;
}

.pwa-install-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.pwa-install-text p {
    font-size: 12px;
    color: var(--color-gray-500);
    margin: 0;
}

.pwa-install-banner .btn {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.pwa-install-banner .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.pwa-install-close {
    width: 28px;
    height: 28px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

/* Push notification prompt */
.push-notification-prompt {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    max-width: 90%;
    width: 360px;
}

.push-prompt-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.push-prompt-icon {
    font-size: 32px;
}

.push-prompt-text {
    flex: 1;
}

.push-prompt-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.push-prompt-text p {
    font-size: 12px;
    color: var(--color-gray-500);
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-left h1 {
        font-size: 18px;
    }
    
    .header-left p {
        font-size: 12px;
    }
    
    .content {
        padding: 16px;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .stat {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .team-logo-small {
        width: 28px;
        height: 28px;
    }
    
    .score {
        font-size: 1rem;
        min-width: 44px;
    }
}

@media (min-width: 769px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== NOTIFICATION DROPDOWN ==================== */
.notification-dropdown {
    position: fixed;
    top: 60px;
    right: 8px;
    width: 380px;
    max-width: calc(100vw - 16px);
    background: var(--color-white);
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
}

.notification-dropdown-header strong {
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-dropdown-header strong::before {
    content: "🔔";
}

.notification-clear-all {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.notification-clear-all:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.notification-close {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.notification-dropdown-body {
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    flex: 1;
    background: #fafafa;
}

.notification-empty,
.notification-error {
    padding: 48px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    background: white;
}

.notification-empty::before {
    content: "✓";
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notification-error {
    color: var(--color-error);
}

.notification-error::before {
    content: "⚠";
}

.notification-item {
    padding: 14px 16px;
    margin: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.notification-item:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.notification-item.unread {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-left: 3px solid #3b82f6;
}

.notification-item:last-child {
    margin-bottom: 8px;
}

.notification-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.notification-item-header strong {
    font-size: 13px;
    font-weight: 600;
    color: #003366;
}

.notification-time {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.notification-delete-btn {
    background: transparent;
    border: none;
    color: #d1d5db;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: all 0.2s;
    border-radius: 4px;
}

.notification-delete-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

.notification-responded {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
}

.notification-item-body {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

.notification-item-body p {
    margin: 0;
}

.notification-fixture-info {
    margin-bottom: 8px;
    line-height: 1.5;
}

.notification-fixture-info strong {
    color: #003366;
    font-weight: 600;
    font-size: 14px;
}

.notification-fixture-info .muted {
    color: #9ca3af;
    font-size: 12px;
}

.notification-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.notification-actions button {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.btn-avail-yes {
    color: #059669;
    border-color: #10b981;
    background: #ecfdf5;
}

.btn-avail-yes:hover {
    background: #d1fae5;
    border-color: #059669;
}

.btn-avail-no {
    color: #dc2626;
    border-color: #ef4444;
    background: #fef2f2;
}

.btn-avail-no:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.btn-avail-maybe {
    color: #d97706;
    border-color: #f59e0b;
    background: #fffbeb;
}

.btn-avail-maybe:hover {
    background: #fef3c7;
    border-color: #d97706;
}

.notification-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notification-responded-text {
    color: #6b7280;
    font-size: 12px;
    padding: 6px 0;
    font-style: italic;
}

.btn-notification-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 6px 12px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-notification-action:hover {
    background: #004080;
}

.notification-calendar-hint {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

/* Mobile adjustments for notification dropdown */
@media (max-width: 768px) {
    .notification-dropdown {
        top: 56px;
        right: 8px;
        left: 8px;
        width: auto;
        max-width: none;
        border-radius: 12px;
    }
    
    .notification-dropdown-header {
        padding: 14px 16px;
    }
    
    .notification-dropdown-header strong {
        font-size: 15px;
    }
    
    .notification-item {
        padding: 12px 14px;
        margin: 6px;
    }
    
    .notification-actions button {
        padding: 10px 8px;
    }
}

/* ==================== SETTINGS MENU VIEW ==================== */
.settings-menu-view {
    padding: 8px;
    padding-bottom: 100px;
}

.settings-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.settings-menu-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.settings-menu-item:active {
    transform: scale(0.99);
}

.settings-menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-menu-content {
    flex: 1;
    min-width: 0;
}

.settings-menu-label {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.settings-menu-desc {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-menu-arrow {
    color: #d1d5db;
    flex-shrink: 0;
}

#settings-section-content {
    padding: 0;
}

/* ==================== PUSH NOTIFICATION PROMPT ==================== */
.push-notification-prompt {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 90%;
    width: 380px;
    border-top: 3px solid var(--color-secondary);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.push-prompt-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.push-prompt-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.push-prompt-text {
    flex: 1;
    min-width: 150px;
}

.push-prompt-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.push-prompt-text p {
    font-size: 13px;
    color: var(--color-gray-500);
    margin: 0;
}

.push-notification-prompt .btn {
    margin-top: 8px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .push-notification-prompt {
        bottom: 90px;
        max-width: calc(100% - 32px);
    }
    
    .push-prompt-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .push-prompt-icon {
        align-self: center;
    }
    
    .push-notification-prompt .btn {
        width: 100%;
        margin: 4px 0;
    }
}

/* ==================== SETTINGS PAGE ==================== */
.settings-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid transparent;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.settings-tab:hover {
    background: #e5e7eb;
    transform: scale(1.02);
}

.settings-tab:active {
    transform: scale(0.98);
}

.settings-tab.active {
    background: var(--accent-color, #fdb813) !important;
    color: var(--accent-text, #111827) !important;
    border-color: var(--accent-color, #fdb813) !important;
}

.settings-tab.active:hover {
    opacity: 0.9;
}

.settings-tab svg {
    flex-shrink: 0;
}

/* Horizontal scroll container styling */
.card:has(.settings-tab) {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.card:has(.settings-tab)::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ==================== MY FIXTURES VIEW ==================== */
.compact-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px;
    flex-wrap: wrap;
}

.compact-filters .filter-select {
    padding: 8px 32px 8px 12px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23003366' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.compact-filters .filter-select:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-filters .filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    background: var(--color-white);
    color: var(--color-gray-500);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: #d1d5db;
    background: var(--color-gray-50);
}

.filter-chip.active {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.filter-chip.active:hover {
    background: #e5a610;
    border-color: #e5a610;
}

.fixture-card {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.6), rgba(0, 38, 77, 0.6));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 2px solid rgba(253, 184, 19, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.fixture-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(253, 184, 19, 0.3);
    border-color: var(--color-secondary);
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8), rgba(0, 38, 77, 0.8));
}

.fixture-card.past-fixture {
    opacity: 0.5;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.3), rgba(0, 38, 77, 0.3));
    border-color: rgba(255, 255, 255, 0.1);
}

.coach-fixture-card .fixture-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.coach-fixture-card .fixture-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coach-fixture-card .fixture-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
}

.fixture-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-available {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 2px solid #10b981;
}

.status-unavailable {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid #ef4444;
}

.status-maybe {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

.status-pending {
    background: rgba(156, 163, 175, 0.1);
    color: var(--color-gray-400);
    border: 2px solid #9ca3af;
}

.fixture-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    font-size: 18px;
}

.fixture-match .team {
    font-weight: 700;
    color: var(--color-primary);
}

.fixture-match .vs {
    color: var(--color-gray-400);
    font-size: 14px;
}

.fixture-child {
    margin: 12px 0;
    padding: 12px 14px;
    background: rgba(253, 184, 19, 0.15);
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
    font-size: 14px;
    color: var(--color-white);
    font-weight: 500;
}

.fixture-child strong {
    color: var(--color-secondary);
    font-weight: 700;
}

.fixture-location,
.fixture-notes {
    margin: 8px 0;
    font-size: 14px;
    color: var(--color-gray-500);
}

.fixture-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.coach-fixture-card .fixture-location {
    font-size: 13px;
    color: var(--color-gray-500);
}

.fixture-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.fixture-actions .btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fixture-actions .btn-success {
    background: #10b981;
    color: var(--color-white);
}

.fixture-actions .btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.fixture-actions .btn-warning {
    background: var(--color-error);
    color: var(--color-white);
}

.fixture-actions .btn-warning:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.fixture-actions .btn-maybe {
    background: #f59e0b;
    color: var(--color-white);
}

.fixture-actions .btn-maybe:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.fixture-actions .btn-secondary {
    background: #6b7280;
    color: var(--color-white);
}

.fixture-actions .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray-400);
    font-size: 16px;
}

/* Coach View Styles */
.coach-fixture-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.coach-fixture-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Player/Parent View Styles */
.player-fixture-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.player-fixture-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.player-fixture-card.past-fixture {
    opacity: 0.6;
}

.player-fixture-card .fixture-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.player-fixture-card .fixture-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-fixture-card .fixture-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
}

.player-fixture-card .fixture-child {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
}

.availability-counts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.availability-counts .count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

.availability-counts .count-label {
    font-size: 14px;
}

.availability-counts .available-count {
    color: #10b981;
    border: 2px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.availability-counts .unavailable-count {
    color: #ef4444;
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.availability-counts .maybe-count {
    color: #f59e0b;
    border: 2px solid #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.availability-counts .unknown-count {
    color: var(--color-gray-400);
    border: 2px solid #9ca3af;
    background: rgba(156, 163, 175, 0.1);
}

/* Team logos section */
.coach-fixture-card .fixture-match-with-logos,
.player-fixture-card .fixture-match-with-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.coach-fixture-card .team-container,
.player-fixture-card .team-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.coach-fixture-card .team-container.away,
.player-fixture-card .team-container.away {
    flex-direction: row-reverse;
}

.coach-fixture-card .team-logo,
.player-fixture-card .team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-gray-100);
    object-fit: cover;
    flex-shrink: 0;
}

.coach-fixture-card .team-name,
.player-fixture-card .team-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

.coach-fixture-card .team-container.away .team-name,
.player-fixture-card .team-container.away .team-name {
    text-align: right;
}

.coach-fixture-card .match-vs,
.player-fixture-card .match-vs {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gray-500);
}

/* Expandable fixture details */
.coach-fixture-card .fixture-details,
.player-fixture-card .fixture-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.players-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

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

.player-card .player-name {
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    line-height: 1.2;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    order: -1;
}

.player-card .player-image-container {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    border: 5px solid;
    overflow: hidden;
    position: relative;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-card.available-border .player-image-container {
    border-color: #10b981;
}

.player-card.unavailable-border .player-image-container {
    border-color: #ef4444;
}

.player-card.maybe-border .player-image-container {
    border-color: #f59e0b;
}

.player-card.unknown-border .player-image-container {
    border-color: #d1d5db;
}

.player-card .player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-card .player-initials {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    user-select: none;
}

.player-card .player-image-container.no-photo {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.player-card.available-border .player-image-container.no-photo {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.player-card.unavailable-border .player-image-container.no-photo {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.player-card.maybe-border .player-image-container.no-photo {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.player-card .player-status {
    display: none;
}

@media (max-width: 768px) {
    .compact-filters {
        margin: 8px;
        gap: 8px;
    }

    .compact-filters .filter-select {
        font-size: 13px;
        padding: 6px 28px 6px 10px;
    }

    .filter-chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    .fixture-match {
        flex-direction: column;
        gap: 8px;
    }

    .fixture-actions {
        flex-direction: column;
    }

    .fixture-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .players-grid {
        gap: 12px;
        justify-content: center;
    }
    
    .player-card .player-name {
        font-size: 10px;
        max-width: 70px;
    }
    
    .player-card .player-image-container {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
        border-width: 3px;
    }
    
    .player-card .player-initials {
        font-size: 24px;
    }
    
    .coach-fixture-card {
        padding: 16px;
    }
    
    .availability-counts {
        gap: 8px;
        font-size: 12px;
    }
    
    .availability-counts .count {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* =====================================
   TEAM CALENDAR VIEW STYLES
   ===================================== */

.team-calendar-view {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-header h1 {
    margin: 0 0 8px 0;
    color: var(--color-primary);
}

.page-header .subtitle {
    margin: 0;
    color: var(--color-gray-500);
    font-size: 14px;
}

.header-actions {
    margin-top: 8px;
}

/* Dropdown for "Add to Calendar" */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    margin-top: 8px;
    z-index: 1000;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #1f2937;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Type filters */
.type-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.type-chip {
    padding: 8px 16px;
    border: 1px solid var(--color-gray-300);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.type-chip:hover {
    border-color: var(--color-primary);
    background: var(--color-gray-50);
}

.type-chip.active {
    
    
    border-color: var(--color-primary);
}

/* Calendar cards - base styles */
.coach-calendar-card,
.player-calendar-card {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.coach-calendar-card:hover,
.player-calendar-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* Past items styling */
.past-item {
    opacity: 0.6;
    background: var(--color-gray-50);
}

/* Item type indicators */
.fixture-item {
    border-left: 4px solid #003366;
}

.training-item {
    border-left: 4px solid #10b981;
}

.event-item {
    border-left: 4px solid var(--color-secondary);
}

/* Calendar item header */
.calendar-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-type-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.type-icon {
    font-size: 20px;
}

.type-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--color-gray-500);
    letter-spacing: 0.5px;
}

.item-time {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.item-status {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.status-available {
    background: #d1fae5;
    color: #065f46;
}

.status-unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.status-maybe {
    background: #fef3c7;
    color: #92400e;
}

.status-pending {
    background: var(--color-gray-200);
    color: #4b5563;
}

/* Item content sections */
.item-child-name {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-gray-200);
}

.training-info,
.event-info {
    margin-bottom: 12px;
}

.training-details,
.event-details {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-gray-500);
    line-height: 1.6;
}

.recurring-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.event-type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: capitalize;
}

.item-location {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: var(--color-gray-500);
    font-size: 13px;
}

.item-notes {
    margin-top: 12px;
    padding: 12px;
    background: var(--color-gray-50);
    border-radius: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* Action buttons for parent/player view */
.item-actions-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.item-actions-buttons .btn {
    flex: 1;
    min-width: 100px;
}

.guest-select {
    padding: 8px 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Coach action buttons */
.item-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: var(--color-gray-100);
}

/* Expandable player details */
.item-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Guest badge on player cards */
.player-card {
    position: relative;
}

.guest-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--color-secondary);
    
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        margin-top: 16px;
    }
    
    .calendar-item-header {
        flex-wrap: wrap;
    }
    
    .item-actions-buttons .btn {
        min-width: auto;
        flex: 1 1 calc(50% - 4px);
    }
    
    .guest-select {
        width: 100%;
    }
}


/* ===== MOBILE-FIRST TEAM CALENDAR ===== */
.team-calendar-view {
    padding: 0;
    max-width: 100%;
    background: transparent;
}

.calendar-action-bar {
    padding: 12px 12px;
    background: transparent;
    border-bottom: none;
    position: sticky;
    top: 70px;
    z-index: 10;
}

.btn-add-calendar {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#calendar-content {
    background: transparent;
}

#calendar-list {
    padding: 0;
    margin: 0;
}

/* Calendar Filter Section */
.calendar-filter-section {
    padding: 12px;
}

.filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-row-wrap {
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.filter-chip .filter-icon {
    font-size: 14px;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.filter-chip.active {
    background: var(--accent-color, #fdb813);
    color: #111827;
    border-color: var(--accent-color, #fdb813);
    font-weight: 600;
}

.filter-chip-alert {
    border-color: rgba(239, 68, 68, 0.5);
}

.filter-chip-alert.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Legacy support for modern-filter-bar */
.modern-filter-bar {
    display: none; /* Hide old filter bar */
}

.mobile-filters {
    padding: 12px 16px;
    background: transparent;
}

.mobile-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    background: white;
}

.date-group {
    margin-bottom: 24px;
}

.date-header {
    padding: 8px 12px;
    background: transparent;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Compact Card - Mobile First */
.compact-card {
    background: white;
    margin: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.compact-card.past {
    opacity: 0.6;
}

.card-main {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    cursor: pointer;
    min-height: 64px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}

.card-main:active {
    background: var(--color-gray-50);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-home {
    background: #10b981;
    color: white;
}

.badge-away {
    background: #3b82f6;
    color: white;
}

.card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--color-gray-500);
}

.card-time {
    font-weight: 500;
}

.card-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.status-available {
    background: #d1fae5;
    color: #059669;
}

.status-unavailable {
    background: #fee2e2;
    color: var(--color-error);
}

.status-maybe {
    background: #fef3c7;
    color: #d97706;
}

.status-pending {
    background: var(--color-gray-100);
    color: var(--color-gray-400);
}

.card-counts {
    display: flex;
    gap: 4px;
    align-items: center;
}

.count {
    min-width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    padding: 0 6px;
}

.count-available {
    background: #d1fae5;
    color: #059669;
}

.count-unavailable {
    background: #fee2e2;
    color: var(--color-error);
}

.count-pending {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
}

/* Expanded Section */
.card-expanded {
    padding: 0 16px 12px 16px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Availability Buttons */
.availability-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-avail {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.btn-avail:active {
    transform: scale(0.98);
}

.btn-yes {
    color: #059669;
}

.btn-yes.active {
    background: #d1fae5;
    border-color: #059669;
}

.btn-no {
    color: var(--color-error);
}

.btn-no.active {
    background: #fee2e2;
    border-color: var(--color-error);
}

.btn-clear {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: var(--color-gray-500);
}

.card-notes {
    padding: 8px 12px;
    background: var(--color-gray-50);
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-gray-500);
    margin-top: 8px;
}

/* Coach View - Players List */
.players-compact {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
}

.player-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.player-compact:last-child {
    border-bottom: none;
}

.player-compact.available {
    background: #ecfdf5; /* Slightly darker green background */
}

.player-compact.unavailable {
    background: #fef2f2;
}

.player-compact.maybe {
    background: #fefce8;
}

.player-name {
    flex: 1;
    font-weight: 500;
    color: #111827;
}

.player-status {
    font-weight: 600;
    font-size: 16px;
}

/* Player inline availability actions in calendar coach view */
.player-inline-actions {
    display: flex;
    gap: 6px;
    margin-left: 8px;
}

.player-compact .btn-availability {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--color-gray-500);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.player-compact .btn-availability:hover {
    transform: scale(1.05);
    border-color: var(--color-gray-400);
}

.player-compact .btn-availability.btn-available:hover {
    border-color: #059669;
    color: #059669;
}

.player-compact .btn-availability.btn-unavailable:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.player-compact .btn-availability.btn-available.active {
    background: #059669;
    border-color: #059669;
    
}

.player-compact .btn-availability.btn-unavailable.active {
    background: var(--color-error);
    border-color: #ef4444;
    
}

.player-compact .btn-availability:active {
    transform: scale(0.95);
}

/* Card Actions (Coach) */
.card-actions {
    display: flex;
    gap: 8px;
}

.btn-compact {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    color: #374151; /* Default text color */
}

/* .btn-edit moved to theme-utilities.css for theme-aware styling */

.btn-delete {
    color: var(--color-error) !important;
    border-color: var(--color-error);
}

/* Modal Form */
.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.modal-form input[type="text"],
.modal-form input[type="date"],
.modal-form input[type="time"],
.modal-form input[type="number"],
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.modal-form textarea {
    resize: vertical;
    min-height: 60px;
}

.modal-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
}

/* Modal Option Buttons (for Add menu) */
.modal-option-btn {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
    color: var(--primary-color, #003366);
}

.modal-option-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color, #003366);
}

.modal-option-btn:active {
    transform: scale(0.98);
    background: rgba(0, 0, 0, 0.05);
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--color-gray-400);
    font-size: 15px;
}

/* Loading */
.loading {
    padding: 60px 20px;
    text-align: center;
    color: var(--color-gray-500);
}

/* Desktop Enhancements (> 768px) */
@media (min-width: 768px) {
    .team-calendar-view {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
    }

    .calendar-action-bar {
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .btn-add-calendar {
        width: auto;
    }

    .compact-card {
        border: 1px solid var(--color-gray-200);
        border-radius: 12px;
        margin-bottom: 8px;
    }

    .card-main {
        border-radius: 12px;
    }

    .modal-container {
        max-width: 600px;
    }
}

/* ==================== SCOREBOARD MODAL ==================== */
.scoreboard-modal-content {
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scoreboard-header {
    background: linear-gradient(135deg, #003366 0%, #00264d 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #fdb813;
}

.scoreboard-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.scoreboard-title::before {
    content: '🏆';
    font-size: 28px;
}

.scoreboard-header .modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    font-size: 28px;
    color: var(--color-white);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.scoreboard-header .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.scoreboard-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.scoreboard-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.scoreboard-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scoreboard-summary-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

.scoreboard-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.scoreboard-table thead {
    background: linear-gradient(135deg, #003366 0%, #00264d 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.scoreboard-table th {
    padding: 14px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #fdb813;
}

.scoreboard-th-rank {
    width: 60px;
    text-align: center;
}

.scoreboard-th-number {
    width: 50px;
}

.scoreboard-th-player {
    text-align: left !important;
    min-width: 180px;
}

.scoreboard-th-stat {
    width: 50px;
    padding: 14px 8px !important;
}

.scoreboard-th-games {
    width: 60px;
}

.scoreboard-th-points {
    width: 90px;
    background: rgba(253, 184, 19, 0.2);
}

.scoreboard-table tbody {
    overflow-y: auto;
}

.scoreboard-row {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.scoreboard-row:hover {
    background: #f8fafc;
    transform: translateX(4px);
    box-shadow: -4px 0 0 #fdb813;
}

.scoreboard-row-podium {
    background: linear-gradient(90deg, rgba(253, 184, 19, 0.05) 0%, rgba(253, 184, 19, 0) 100%);
}

.scoreboard-row-podium:hover {
    background: linear-gradient(90deg, rgba(253, 184, 19, 0.1) 0%, rgba(253, 184, 19, 0) 100%);
}

.scoreboard-table td {
    padding: 14px 12px;
    text-align: center;
    font-size: 14px;
    color: #334155;
}

.scoreboard-td-rank {
    font-size: 20px;
    font-weight: 700;
}

.scoreboard-td-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
}

.scoreboard-td-player {
    text-align: left !important;
}

.scoreboard-player-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

.scoreboard-td-stat {
    font-weight: 600;
}

.scoreboard-stat-tries {
    color: #10b981;
}

.scoreboard-stat-conversions {
    color: #f59e0b;
}

.scoreboard-stat-penalties {
    color: #8b5cf6;
}

.scoreboard-stat-dropgoals {
    color: #06b6d4;
}

.scoreboard-td-games {
    color: #64748b;
    font-weight: 500;
}

.scoreboard-td-points {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(253, 184, 19, 0.1);
}

.scoreboard-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.scoreboard-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.scoreboard-empty p {
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Scoreboard */
@media (max-width: 768px) {
    .scoreboard-modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 0;
        border-radius: 12px;
    }

    .scoreboard-header {
        padding: 14px 12px;
    }

    .scoreboard-title {
        font-size: 16px;
    }

    .scoreboard-title::before {
        font-size: 20px;
    }

    .scoreboard-header .modal-close-btn {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .scoreboard-summary {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .scoreboard-summary-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .scoreboard-summary-label {
        font-size: 10px;
    }

    .scoreboard-summary-value {
        font-size: 20px;
    }

    .scoreboard-table th,
    .scoreboard-table td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .scoreboard-th-rank,
    .scoreboard-td-rank {
        width: 40px;
        font-size: 14px;
    }

    .scoreboard-th-number,
    .scoreboard-td-number {
        width: 35px;
        font-size: 11px;
    }

    .scoreboard-th-player {
        min-width: 100px;
    }

    .scoreboard-player-name {
        font-size: 12px;
    }

    .scoreboard-th-stat,
    .scoreboard-td-stat {
        padding: 8px 3px !important;
        font-size: 11px;
        width: 35px;
    }

    .scoreboard-th-games,
    .scoreboard-td-games {
        width: 35px;
        font-size: 11px;
    }

    .scoreboard-th-points,
    .scoreboard-td-points {
        width: 60px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .scoreboard-modal-content {
        max-width: 98vw;
        border-radius: 8px;
    }

    .scoreboard-header {
        padding: 12px 10px;
    }

    .scoreboard-title {
        font-size: 14px;
    }

    .scoreboard-title::before {
        font-size: 18px;
    }

    .scoreboard-header .modal-close-btn {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .scoreboard-summary {
        padding: 10px;
        gap: 8px;
    }

    .scoreboard-summary-item {
        padding: 6px 10px;
    }

    .scoreboard-summary-label {
        font-size: 9px;
    }

    .scoreboard-summary-value {
        font-size: 18px;
    }

    .scoreboard-table {
        font-size: 10px;
    }

    .scoreboard-table th,
    .scoreboard-table td {
        padding: 6px 2px;
        font-size: 10px;
    }

    .scoreboard-th-rank,
    .scoreboard-td-rank {
        width: 32px;
        font-size: 12px;
    }

    .scoreboard-th-number,
    .scoreboard-td-number {
        width: 28px;
        font-size: 10px;
    }

    .scoreboard-th-player {
        min-width: 80px;
    }

    .scoreboard-player-name {
        font-size: 11px;
        line-height: 1.2;
    }

    .scoreboard-th-stat,
    .scoreboard-td-stat {
        padding: 6px 2px !important;
        font-size: 10px;
        width: 28px;
    }

    .scoreboard-th-games,
    .scoreboard-td-games {
        width: 28px;
        font-size: 10px;
    }

    .scoreboard-th-points,
    .scoreboard-td-points {
        width: 50px;
        font-size: 12px;
        font-weight: 600;
    }
}

/* ==================== APPROVAL TABS ==================== */
.approval-tab-btn {
    position: relative;
    overflow: hidden;
}

.approval-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.approval-tab-btn:hover::before {
    opacity: 1;
}

.approval-tab-btn.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.approval-tab-btn:not(.active):hover {
    background: rgba(var(--primary-rgb, 0, 51, 102), 0.1) !important;
}

.approval-row {
    transition: all 0.3s ease;
}

.approval-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==================== MODAL BASE STYLES ==================== */
/* Reusable modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal container */
.modal-container {
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.modal-container.modal-large {
    max-width: 700px;
}

/* Themed modal header */
.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.modal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    opacity: 0.95;
}

.modal-close-btn {
    background: none;
    border: none;
    
    cursor: pointer;
    padding: 4px;
    font-size: 28px;
    line-height: 1;
    transition: opacity 0.2s;
}

.modal-close-btn:hover {
    opacity: 0.8;
}

/* Modal body */
.modal-body {
    padding: 20px;
}

/* Scrollable modal layout - fixed header/footer, scrollable content */
.modal-scrollable {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-scrollable .modal-header {
    flex-shrink: 0;
}

.modal-scrollable .modal-body {
    flex: 1;
    overflow-y: auto;
}

.modal-scrollable .modal-footer {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

/* ==================== TOAST ANIMATIONS ==================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ==================== SKELETON LOADING ==================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 12px;
}

/* ==================== PULL TO REFRESH ==================== */
.pull-indicator {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 8px 16px;
    background: #003366;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 99;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pull-indicator.visible {
    transform: translateX(-50%) translateY(10px);
}

.pull-indicator.refreshing {
    transform: translateX(-50%) translateY(10px);
}

.pull-indicator svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
