/* RefereeHockey.com Custom Styles */

:root {
    /* USA Hockey-inspired Color Palette */
    --primary-color: #c41e3a;        /* USA Hockey Red */
    --primary-dark: #a01729;         /* Darker red */
    --primary-light: #e85577;        /* Light red */
    --secondary-color: #003366;      /* Navy blue */
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #003366;           /* Navy blue for info */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    /* USA Theme Colors */
    --usa-red: #c41e3a;
    --usa-blue: #003366;
    --usa-white: #ffffff;
    
    /* Deep blue for navbar */
    --deep-blue: #1a365d;
    
    /* Targeted Bootstrap Primary Override for bg-primary class only */
    --bs-primary: #c41e3a;           /* Override Bootstrap primary to red */
    --bs-primary-rgb: 196, 30, 58;   /* RGB values for Bootstrap */
}

/* Custom Background Colors */
.bg-deep-blue {
    background-color: var(--deep-blue) !important;
}

/* Ensure navbar stays dark with proper text colors */
.navbar-dark {
    background-color: var(--deep-blue) !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
}

.btn-group-sm > .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Tables */
.table {
    --bs-table-bg: transparent;
}

.table-hover > tbody > tr:hover > td {
    background-color: rgba(0, 0, 0, 0.075);
}

/* DataTables Custom Styles */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 0.125rem;
    border-radius: 0.375rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color);
    color: white !important;
    border: 1px solid var(--primary-color);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(196, 30, 58, 0.25);
}

.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(196, 30, 58, 0.25);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d1edff;
    color: #0a58ca;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* Navigation */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    color: white !important;
}

/* Footer powered by link styling */
footer .powered-by {
    color: #adb5bd !important; /* Light gray for visibility on dark background */
    opacity: 0.9;
    transition: all 0.3s ease;
}

footer .powered-by:hover {
    opacity: 1;
    color: var(--primary-light) !important;
    text-decoration: underline !important;
}

footer .powered-by i {
    font-size: 0.7em;
    opacity: 0.8;
}

/* Ensure footer text is light colored */
footer .text-muted {
    color: #adb5bd !important;
}

footer .powered-by-text {
    color: #adb5bd !important;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--usa-red) 0%, var(--usa-blue) 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
}

.status-new {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-pending {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-active {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.status-challenge {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.status-inactive {
    background-color: #fafafa;
    color: #616161;
}

/* Progress Bars */
.progress {
    height: 0.75rem;
    border-radius: 0.375rem;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Images */
.img-thumbnail {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--usa-red) 50%, var(--usa-blue) 100%);
    color: white;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-0.25rem);
}

.feature-card .feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: none;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .alert {
        display: none !important;
    }
    
    .container-fluid {
        margin: 0;
        padding: 0;
    }
    
    .col-md-9 {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Footer Styles */
.powered-by-text {
    color: #6c757d;
}

.powered-by {
    color: #adb5bd !important;
    transition: color 0.3s ease;
}

.powered-by:hover {
    color: #ffffff !important;
}

footer .text-muted {
    color: #6c757d !important;
}

footer .text-muted:hover {
    color: #adb5bd !important;
}

footer hr {
    border-color: #495057;
}

/* Sticky Footer Support */
.min-vh-100 {
    min-height: 100vh;
}

.flex-grow-1 {
    flex: 1 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stats-card {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        border: none;
    }
    
    footer .col-md-3,
    footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bs-body-bg: #1a1a1a;
        --bs-body-color: #ffffff;
    }
}