/* =====================================================
   FIERSCORE CUSTOM STYLES
   Theme: Navy Blue, Gold, White - Clean Minimalist Design
   Performance-Optimized for Data-Heavy Applications
   ===================================================== */

:root {
    /* Primary Colors */
    --navy-primary: #1a2332;
    --navy-dark: #0f1621;
    --navy-light: #2a3b52;
    --gold-primary: #d4af37;
    --gold-light: #e8c968;
    --gold-dark: #b8941f;
    --white: #ffffff;
    --off-white: #f8f9fa;
    
    /* Accent Colors */
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Grays */
    --gray-50: #fafbfc;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    
    /* Shadows - Subtle and performant */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    
    /* Transitions - Short for responsiveness */
    --transition-fast: 0.15s ease;
    --transition: 0.2s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* =====================================================
   GLOBAL STYLES
   ===================================================== */

* {
    /* Optimize rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-100);
    color: var(--navy-primary);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy-primary);
    font-weight: 600;
}

a {
    color: var(--gold-dark);
    text-decoration: none;
}

a:hover {
    color: var(--gold-primary);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border: none;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--navy-primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--navy-dark);
    color: var(--white);
}

.btn-gold {
    background-color: var(--gold-primary);
    color: var(--navy-primary);
    font-weight: 600;
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    color: var(--navy-primary);
}

.btn-outline-gold {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--gold-primary);
    color: var(--navy-primary);
}

.btn-outline-navy {
    border: 2px solid var(--navy-primary);
    color: var(--navy-primary);
    background: transparent;
}

.btn-outline-navy:hover {
    background-color: var(--navy-primary);
    color: var(--white);
}

/* =====================================================
   CARDS
   ===================================================== */

.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.card-header {
    background: var(--navy-primary);
    color: var(--white);
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    border: none;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
}

.card-header h5, .card-header h6 {
    color: var(--white);
    margin: 0;
}

.card-body {
    padding: 1.25rem;
}

/* =====================================================
   NAVIGATION - Dashboard Sidebar
   ===================================================== */

.sidebar {
    background: var(--navy-primary);
    min-height: 100vh;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.625rem 1rem;
    margin: 2px 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sidebar .nav-link.active {
    background: var(--gold-primary);
    color: var(--navy-primary);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Dashboard Sidebar Card Style */
.dashboard-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.user-info-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

/* Dashboard Nav Links */
#dashboard-nav .nav-link {
    color: var(--navy-primary);
    padding: 0.5rem 0.75rem;
    margin: 1px 0;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
}

#dashboard-nav .nav-link:hover {
    background: var(--gray-100);
    border-left-color: var(--gold-primary);
}

#dashboard-nav .nav-link.active {
    background: var(--gold-primary);
    color: var(--navy-primary);
    font-weight: 600;
    border-left-color: var(--gold-dark);
}

/* =====================================================
   FORMS
   ===================================================== */

.form-control, .form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.form-label {
    color: var(--navy-primary);
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

/* =====================================================
   TABLES
   ===================================================== */

.table {
    background: var(--white);
    margin-bottom: 0;
}

.table thead {
    background: var(--navy-primary);
    color: var(--white);
}

.table thead th {
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.table tbody tr {
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.75rem;
}

.badge.bg-gold {
    background-color: var(--gold-primary) !important;
    color: var(--navy-primary);
}

/* =====================================================
   MODALS
   ===================================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.modal-header {
    background: var(--navy-primary);
    color: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: none;
    padding: 1rem 1.25rem;
}

.modal-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 0.875rem 1.25rem;
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-backdrop {
    background: rgba(15, 22, 33, 0.5);
}

/* =====================================================
   HOME PAGE STYLES
   ===================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    padding-top: 6rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy-primary);
    margin: 0 auto 1.25rem;
}

.feature-card h4 {
    color: var(--navy-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Pricing Cards */
.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition);
}

.pricing-card:hover {
    border-color: var(--gold-primary);
}

.pricing-card.featured {
    border-color: var(--gold-primary);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy-primary);
}

.price-currency {
    font-size: 1.25rem;
    vertical-align: super;
}

/* Stats Section */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

/* Section Styles */
.section-divider {
    height: 3px;
    width: 50px;
    background: var(--gold-primary);
    border-radius: 2px;
    margin: 0 auto 0.75rem;
}

.bg-soft-section {
    background: var(--gray-50);
}

/* =====================================================
   NAVBAR
   ===================================================== */

.navbar-custom {
    background: var(--navy-primary);
    padding: 0.625rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    width: 28px;
    height: 28px;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
}

.navbar-custom .nav-link:hover {
    color: var(--gold-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: var(--gold-primary);
}

/* =====================================================
   AUTHENTICATION PAGE
   ===================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
}

.auth-title {
    color: var(--navy-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-gold {
    color: var(--gold-primary) !important;
}

.text-navy {
    color: var(--navy-primary) !important;
}

.bg-gold {
    background-color: var(--gold-primary) !important;
}

.bg-navy {
    background-color: var(--navy-primary) !important;
}

/* =====================================================
   ALERTS
   ===================================================== */

.alert {
    border: none;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-left-color: var(--info);
    color: var(--navy-primary);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success);
    color: var(--navy-primary);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border-left-color: var(--warning);
    color: var(--navy-primary);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger);
    color: var(--navy-primary);
}

/* =====================================================
   FIXTURE CARDS
   ===================================================== */

.fixture-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    transition: box-shadow var(--transition-fast);
}

.fixture-card:hover {
    box-shadow: var(--shadow-sm);
}

.fixture-card.completed {
    border-left-color: var(--success);
}

.fixture-card.cancelled {
    border-left-color: var(--danger);
    opacity: 0.7;
}

/* =====================================================
   OVERVIEW STAT CARDS
   ===================================================== */

.overview-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    height: 100%;
}

.overview-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.875rem;
}

.overview-stat-card .stat-icon.players { background: #e3f2fd; color: #1976d2; }
.overview-stat-card .stat-icon.teams { background: #e8f5e9; color: #388e3c; }
.overview-stat-card .stat-icon.fixtures { background: #fff8e1; color: #f57c00; }
.overview-stat-card .stat-icon.sports { background: #e0f7fa; color: #0097a7; }

.overview-stat-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0.25rem;
}

.overview-stat-card p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.875rem;
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-header-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-primary);
    font-size: 1.1rem;
}

/* =====================================================
   STATUS BANNERS
   ===================================================== */

.school-status-banner {
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.school-status-banner.pending {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: var(--navy-primary);
}

.school-status-banner.active {
    background: #d4edda;
    border: 1px solid #28a745;
    color: var(--navy-primary);
}

/* =====================================================
   WINNER HIGHLIGHT
   ===================================================== */

.winner-highlight {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--gold-primary);
    font-weight: 600;
}

/* =====================================================
   VOLLEYBALL SCORE TABLE
   ===================================================== */

.volleyball-score-table {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* =====================================================
   LOADING SPINNER
   ===================================================== */

.spinner-border-gold {
    border-color: var(--gold-primary);
    border-right-color: transparent;
}

/* =====================================================
   PROGRESS BARS
   ===================================================== */

.progress {
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
}

.progress-bar {
    background: var(--gold-primary);
}

/* =====================================================
   SCROLLBAR
   ===================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* =====================================================
   ANIMATIONS (Minimal)
   ===================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
        padding-top: 5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .overview-stat-card {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .sidebar, .navbar-custom, .btn, .modal {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
