/**
 * 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: linear-gradient(180deg, #003366 0%, #00264d 100%);
    min-height: 100vh;
    color: #ffffff;
    padding-bottom: 80px;
    padding-top: 70px;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 51, 102, 0.95);
    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;
    line-height: 1.2;
}

.header-left p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

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

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

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

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

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

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #fdb813;
    color: #003366;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 51, 102, 0.98);
    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.6);
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
    text-align: center;
    min-width: 60px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    color: #fdb813;
}

/* ==================== 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);
    color: white;
    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;
    color: white;
    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: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: #003366;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #003366;
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #003366;
}

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

.stat {
    text-align: center;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #003366;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

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

.action-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #003366;
    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: #fdb813;
}

.action-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #003366;
}

.action-card p {
    font-size: 12px;
    color: #6b7280;
    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: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #003366;
    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: #9ca3af;
}

.team-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #003366;
}

.team-card p {
    font-size: 13px;
    color: #6b7280;
    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: #f8f9fa;
    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: #ef4444;
    color: white;
    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: #003366;
}

.meta {
    font-size: 12px;
    color: #6b7280;
}

.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: #003366;
}

.score {
    font-size: 1.2rem;
    font-weight: 700;
    color: #003366;
    text-align: center;
    min-width: 60px;
}

.score.live-score {
    color: #dc2626;
}

.vs {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
}

.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-btn {
    background: #003366;
    border: 2px solid #003366;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fdb813;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #004080;
    border-color: #004080;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

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

.filter-btn span {
    color: #ffffff;
    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 #e5e7eb;
}

.filter-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin: 0;
}

.filter-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #6b7280;
    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: #f3f4f6;
}

.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: #003366;
}

.filter-modal-list li:hover {
    background: #f3f4f6;
}

.filter-modal-list li.active {
    background: #003366;
    color: #fdb813;
    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 #e5e7eb;
}

.modal-body {
    padding: 20px;
}

.modal-close-btn {
    background: transparent;
    border: 0;
    font-size: 24px;
    color: #6b7280;
    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: #f3f4f6;
}

/* ==================== PROFILE SECTION ==================== */
.profile-field {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

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

.profile-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.profile-field p {
    font-size: 15px;
    color: #003366;
    font-weight: 500;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    text-align: center;
}

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

.btn-primary {
    background: #fdb813;
    color: #003366;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(253, 184, 19, 0.3);
}

.btn-ghost {
    background: transparent;
    color: #003366;
    border: 1px solid #d1d5db;
}

.btn-ghost:hover {
    background: #f3f4f6;
}

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

.empty {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    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: #003366;
    margin-bottom: 2px;
}

.pwa-install-text p {
    font-size: 12px;
    color: #6b7280;
    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: #f3f4f6;
    color: #6b7280;
    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: #003366;
}

.push-prompt-text p {
    font-size: 12px;
    color: #6b7280;
    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: 420px;
    max-width: calc(100vw - 16px);
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: calc(100vh - 70px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

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

.notification-clear-all {
    font-size: 13px;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-clear-all:hover {
    background: #e5e7eb;
    color: #003366;
}

.notification-close {
    font-size: 20px;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

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

.notification-empty,
.notification-error {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.notification-error {
    color: #dc2626;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s;
    background: #ffffff;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: #eff6ff;
    border-left: 3px solid #fdb813;
}

.notification-item:last-child {
    border-bottom: none;
}

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

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

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

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

.notification-item-body {
    color: #374151;
    font-size: 14px;
}

.notification-fixture-info {
    margin-bottom: 12px;
    line-height: 1.6;
}

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

.notification-fixture-info .muted {
    color: #6b7280;
    font-size: 13px;
}

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

.notification-actions button {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
}

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

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

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

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

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

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

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

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

.btn-notification-action {
    margin-top: 8px;
    padding: 6px 12px;
    background: #003366;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Mobile adjustments for notification dropdown */
@media (max-width: 768px) {
    .notification-dropdown {
        right: 8px;
        left: 8px;
        width: auto;
        max-width: none;
    }
    
    .notification-dropdown-header {
        padding: 12px 16px;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
}

/* ==================== 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 #fdb813;
    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: #003366;
    margin-bottom: 4px;
}

.push-prompt-text p {
    font-size: 13px;
    color: #6b7280;
    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: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.settings-tab:hover {
    background: rgba(253, 184, 19, 0.1);
    color: #003366;
}

.settings-tab.active {
    background: #fdb813;
    color: #003366;
    font-weight: 600;
}

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

/* ==================== 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: #ffffff;
    color: #003366;
    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: #003366;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-filters .filter-select:focus {
    outline: none;
    border-color: #003366;
    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: #ffffff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.filter-chip.active {
    background: #fdb813;
    color: #003366;
    border-color: #fdb813;
}

.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: #fdb813;
    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: #6b7280;
    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: #9ca3af;
    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: #003366;
}

.fixture-match .vs {
    color: #9ca3af;
    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 #fdb813;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.fixture-child strong {
    color: #fdb813;
    font-weight: 700;
}

.fixture-location,
.fixture-notes {
    margin: 8px 0;
    font-size: 14px;
    color: #6b7280;
}

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

.coach-fixture-card .fixture-location {
    font-size: 13px;
    color: #6b7280;
}

.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: #ffffff;
}

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

.fixture-actions .btn-warning {
    background: #ef4444;
    color: #ffffff;
}

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

.fixture-actions .btn-maybe {
    background: #f59e0b;
    color: #ffffff;
}

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

.fixture-actions .btn-secondary {
    background: #6b7280;
    color: #ffffff;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 16px;
}

/* Coach View Styles */
.coach-fixture-card {
    background: #ffffff;
    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: #ffffff;
    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: #6b7280;
    text-transform: uppercase;
}

.player-fixture-card .fixture-child {
    font-size: 14px;
    color: #003366;
    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: #9ca3af;
    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: #f3f4f6;
    object-fit: cover;
    flex-shrink: 0;
}

.coach-fixture-card .team-name,
.player-fixture-card .team-name {
    font-size: 15px;
    font-weight: 600;
    color: #003366;
    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: #6b7280;
}

/* 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: #f3f4f6;
    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: #003366;
    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: #003366;
}

.page-header .subtitle {
    margin: 0;
    color: #6b7280;
    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 #e5e7eb;
    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 #d1d5db;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.type-chip:hover {
    border-color: #003366;
    background: #f9fafb;
}

.type-chip.active {
    background: #003366;
    color: white;
    border-color: #003366;
}

/* Calendar cards - base styles */
.coach-calendar-card,
.player-calendar-card {
    background: white;
    border: 1px solid #e5e7eb;
    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: #f9fafb;
}

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

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

.event-item {
    border-left: 4px solid #fdb813;
}

/* 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: #6b7280;
    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: #e5e7eb;
    color: #4b5563;
}

/* Item content sections */
.item-child-name {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

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

.training-details,
.event-details {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    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: #6b7280;
    font-size: 13px;
}

.item-notes {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    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 #d1d5db;
    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: #f3f4f6;
}

/* 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: #fdb813;
    color: white;
    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;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-weight: 600;
}

.btn-add-calendar svg {
    color: #fdb813;
}

#calendar-content {
    background: transparent;
}

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

.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 12px;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-tab.active {
    background: #fdb813;
    color: #003366;
    border-color: #fdb813;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(253, 184, 19, 0.4);
}

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

.mobile-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    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: 8px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    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: #f9fafb;
}

.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: #f59e0b;
    color: white;
}

.card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.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: #dc2626;
}

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

.status-pending {
    background: #f3f4f6;
    color: #9ca3af;
}

.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: #dc2626;
}

.count-pending {
    background: #f3f4f6;
    color: #6b7280;
}

/* 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: #dc2626;
}

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

.btn-clear {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: #6b7280;
}

.card-notes {
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
    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: #6b7280;
    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: #9ca3af;
}

.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;
    color: white;
}

.player-compact .btn-availability.btn-unavailable.active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.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 #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    color: #374151; /* Default text color */
}

.btn-edit {
    color: #2563eb !important;
    border-color: #2563eb;
}

.btn-delete {
    color: #dc2626 !important;
    border-color: #dc2626;
}

/* Modal Styles */
.modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: flex-end;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-container {
    position: relative;
    background: white;
    width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 64px);
}

/* 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 #d1d5db;
    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: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.modal-option-btn:active {
    transform: scale(0.98);
    background: #f9fafb;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 15px;
}

/* Loading */
.loading {
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
}

/* 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;
        padding: 10px 24px;
    }

    .compact-card {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 8px;
    }

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

    .modal {
        align-items: center;
        padding: 20px;
    }

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

/* ==================== 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: #ffffff;
    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: #ffffff;
    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: #ffffff;
    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: #003366;
}

.scoreboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.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: #ffffff;
    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: #003366;
}

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

.scoreboard-player-name {
    font-size: 15px;
    font-weight: 600;
    color: #003366;
}

.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: #003366;
    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: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 0;
    }

    .scoreboard-header {
        padding: 16px;
    }

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

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

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

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

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

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

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

    .scoreboard-th-stat,
    .scoreboard-td-stat {
        padding: 10px 4px !important;
    }

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

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

    .scoreboard-td-rank {
        font-size: 16px;
    }

    .scoreboard-td-points {
        font-size: 16px;
    }
}
