/**
 * Football Calendar App - Dark Mode Design
 * Inspired by astro.build with vibrant highlights
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Custom Properties - Dark Theme with Electric Blue Highlights */
:root {
    /* Dark theme colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1f1f2e;
    --bg-card-hover: #252538;
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --text-primary-hover: #ffffff;
    
    /* Border colors */
    --border-primary: #2a2a3e;
    --border-secondary: #363654;
    
    /* Electric Blue highlight colors */
    --accent-electric-blue: #0078ff;
    --accent-bright-blue: #3b82f6;
    --accent-electric-navy: #1e40af;
    --accent-cyber-blue: #00d4ff;
    --accent-royal-blue: #2563eb;
    --accent-neon-blue: #0ea5e9;
    
    /* Gradient backgrounds - Electric Blue Theme */
    --gradient-primary: linear-gradient(135deg, var(--accent-electric-blue), var(--accent-electric-navy));
    --gradient-secondary: linear-gradient(135deg, var(--accent-cyber-blue), var(--accent-royal-blue));
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-electric: linear-gradient(135deg, var(--accent-electric-blue) 0%, var(--accent-neon-blue) 50%, var(--accent-electric-navy) 100%);
    
    /* Shadows - Blue themed */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 32px rgba(0, 120, 255, 0.3);
    --shadow-blue-glow: 0 0 24px rgba(59, 130, 246, 0.4);
}

/* Base styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Global text color fixes for dark theme */
body.dark-theme,
.dark-theme {
    color: var(--text-primary);
}

/* Bootstrap component color overrides */
.dark-theme p,
.dark-theme span,
.dark-theme div,
.dark-theme li,
.dark-theme td,
.dark-theme th,
.dark-theme label,
.dark-theme small,
.dark-theme .text-body,
.dark-theme .text-dark {
    color: var(--text-secondary);
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6,
.dark-theme .h1,
.dark-theme .h2,
.dark-theme .h3,
.dark-theme .h4,
.dark-theme .h5,
.dark-theme .h6 {
    color: var(--text-primary) !important;
}

/* Card text overrides */
.dark-theme .card,
.card {
    color: var(--text-primary) !important;
}

.dark-theme .card-body,
.card-body {
    color: var(--text-primary) !important;
}

.dark-theme .card-header,
.card-header {
    color: var(--text-primary) !important;
}

.dark-theme .card-title,
.card-title {
    color: var(--text-primary) !important;
}

.dark-theme .card-text,
.card-text {
    color: var(--text-secondary) !important;
}

/* Text utility class overrides */
.dark-theme .text-muted {
    color: var(--text-muted) !important;
}

.dark-theme .text-secondary {
    color: var(--text-secondary) !important;
}

/* Privacy and legal page text fixes */
.privacy-content,
.terms-content {
    color: var(--text-primary) !important;
}

.privacy-content p,
.privacy-content li,
.terms-content p,
.terms-content li {
    color: var(--text-secondary) !important;
}

.privacy-content h1,
.privacy-content h2,
.privacy-content h3,
.privacy-content h4,
.privacy-content h5,
.privacy-content h6,
.terms-content h1,
.terms-content h2,
.terms-content h3,
.terms-content h4,
.terms-content h5,
.terms-content h6 {
    color: var(--text-primary);
}

/* Additional Bootstrap component fixes */
.dark-theme .list-group-item {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}

.dark-theme .accordion-button {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.dark-theme .accordion-body {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Form controls */
.dark-theme .form-control,
.dark-theme .form-select {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
}

.dark-theme .form-control:focus,
.dark-theme .form-select:focus {
    background-color: var(--bg-card) !important;
    border-color: var(--accent-electric-blue) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25) !important;
}

.dark-theme .form-label {
    color: var(--text-primary) !important;
}

/* Alert components */
.dark-theme .alert {
    color: var(--text-primary) !important;
}

.dark-theme .alert-info {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: var(--text-primary) !important;
}

.dark-theme .alert-success {
    background-color: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: var(--text-primary) !important;
}

.dark-theme .alert-warning {
    background-color: rgba(250, 204, 21, 0.1) !important;
    border-color: rgba(250, 204, 21, 0.3) !important;
    color: var(--text-primary) !important;
}

.dark-theme .alert-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: var(--text-primary) !important;
}

/* Table components */
.dark-theme .table {
    color: var(--text-primary) !important;
}

.dark-theme .table td,
.dark-theme .table th {
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
}

/* Badge components */
.dark-theme .badge {
    color: var(--text-primary) !important;
}

/* Dropdown components */
.dark-theme .dropdown-menu {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

.dark-theme .dropdown-item {
    color: var(--text-secondary) !important;
}

.dark-theme .dropdown-item:hover {
    background-color: var(--bg-card-hover) !important;
    color: var(--text-primary) !important;
}

main {
    flex: 1;
}

/* Page Content Consistency */
.page-content {
    margin-top: 2rem; /* Consistent top margin for all pages */
    padding-top: 1.5rem; /* Additional padding for breathing room */
}

.auth-page {
    padding-top: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700!important;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 5px;
}

.nav-link:hover {
    color: var(--accent-cyber-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar dropdown improvements */
.navbar .dropdown-toggle {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Uncomment the following lines to completely hide the dropdown caret */
/*
.navbar .dropdown-toggle::after {
    display: none;
}
*/

/* Improve dropdown menu positioning */
.navbar .dropdown-menu {
    margin-top: 0.5rem;
    min-width: 200px;
}

/* Hero Section */
.hero-gradient {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 120, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-align: center;
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-blue-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-blue-glow);
    background: var(--gradient-electric);
    filter: brightness(1.1);
    color: white;
}

.btn-primary.btn-lg {
    background: var(--gradient-electric);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 120, 255, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary.btn-lg:hover {
    background: var(--gradient-electric);
    filter: brightness(1.2) saturate(1.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 120, 255, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--accent-electric-blue);
    color: var(--accent-electric-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-electric-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-glow);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Google Button Styling */
.google-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.25rem !important;
    color: #1a1a1a !important; /* Much darker gray text for Google button */
    font-weight: 500;
    border: 1px solid #dadce0 !important; /* Light border like Google's design */
    background-color: #ffffff !important; /* White background like Google's design */
    transition: all 0.3s ease;
    border-radius: 12px !important;
    margin-bottom: 1rem;
}

.google-btn svg {
    margin-right: 0.5rem;
}

.google-btn:hover {
    background-color: #f8f9fa !important; /* Light gray hover like Google's design */
    border-color: #dadce0 !important;
    color: #1a1a1a !important; /* Keep dark text on hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Google Sign-In Button - Enhanced UX */
.google-signin-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
}

.google-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', 'Google Sans', 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.google-signin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.google-signin-button:hover::before {
    left: 100%;
}

.google-signin-button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.google-signin-button:active {
    background: #f3f4f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.google-signin-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-signin-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
}

.google-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.signin-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.signin-title {
    color: #1f2937 !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.01em;
}

.signin-subtitle {
    color: #6b7280!important;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: -0.005em;
}

/* Enhanced OR Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #4a5568, transparent);
}

.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, #4a5568, transparent);
}

.auth-divider-text {
    padding: 0 1.5rem;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.auth-divider-text::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: var(--bg-card);
    border-radius: 8px;
    z-index: -1;
}

/* Footer improvements */
.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary) !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .footer-links {
        margin-top: 0.5rem;
    }
    
    .footer-links a {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .google-signin-container {
        max-width: 100%;
        margin-bottom: 1.25rem;
    }
    
    .google-signin-button {
        max-width: 100%;
        padding: 12px 16px;
        min-height: 48px;
        font-size: 14px;
    }
    
    .signin-title {
        font-size: 14px;
        line-height: 20px;
    }
    
    .signin-subtitle {
        font-size: 12px;
        line-height: 16px;
    }
    
    .auth-divider {
        margin: 1.25rem 0;
    }
    
    .auth-divider-text {
        padding: 0 1rem;
        font-size: 13px;
    }
}

/* Dark mode override for Google button (keep light theme for authenticity) */
[data-bs-theme="dark"] .google-signin-button,
.google-signin-button {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .google-signin-button:hover,
.google-signin-button:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

[data-bs-theme="dark"] .signin-title,
.signin-title {
    color: #1f2937 !important;
}

[data-bs-theme="dark"] .signin-subtitle,
.signin-subtitle {
    color: #6b7280 !important;
}

/* Fix for illegible text on auth pages */
.auth-page h4 {
    color: var(--text-primary) !important;
    font-weight: 700;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-electric-blue);
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-electric-blue);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    padding: 16px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    color: white;
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Match and League Styles */
.match-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.match-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.match-teams {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.match-date {
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: 500;
}

.match-league {
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 500;
}

/* Team Following Styles */
.team-followed {
    font-weight: bold;
    color: var(--accent-green);
}

.team-star {
    color: var(--accent-yellow);
    margin-left: 8px;
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.5));
}

.team-card.border-primary {
    border: 2px solid var(--accent-blue);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.team-card.border-primary .card-body {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
}

/* League Selection */
.league-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.league-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.league-logo {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    object-fit: contain;
    border-radius: 6px;
}

.league-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.league-country {
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 500;
}

/* Calendar Styles */
.calendar-event {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--bg-card);
    border-left: 4px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.calendar-event:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.calendar-event-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.calendar-event-time {
    font-size: 0.9em;
    color: var(--text-muted);
    font-weight: 500;
}

/* Status Badges */
.badge {
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: var(--accent-green);
    color: white;
}

.badge-warning {
    background: var(--accent-yellow);
    color: var(--bg-primary);
}

.badge-info {
    background: var(--accent-blue);
    color: white;
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Form Controls */
.form-control, .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--accent-electric-blue);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
    color: var(--text-primary);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Auth Form Specific Styles */
.auth-page .form-control {
    background-color: var(--bg-tertiary);
}

.auth-page .card {
    background-color: var(--bg-secondary);
}

.auth-page .card-header {
    background-color: rgba(26, 26, 46, 0.8);
}
#autoSaveStatus {z-index: 9999;}
/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--accent-electric-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinning animation for icons */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glass {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
}

.glow {
    box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Notification Toast System */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10050; /* Higher than Bootstrap modals */
    min-width: 300px;
    max-width: 400px;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-left: 4px solid var(--accent-green);
    border-radius: 0.5rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-size: 0.95rem;
    font-weight: 500;
}

.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-toast.success {
    border-left-color: var(--accent-green);
}

.notification-toast.error {
    border-left-color: var(--accent-neon-blue);
}

.notification-toast.warning {
    border-left-color: var(--accent-yellow);
}

.notification-toast i {
    color: var(--accent-green);
}

.notification-toast.error i {
    color: var(--accent-neon-blue);
}

.notification-toast.warning i {
    color: var(--accent-yellow);
}

/* Ensure notification is always visible above navbar */
@media (max-width: 768px) {
    .notification-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        padding: 14px;
    }
    
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Bootstrap Dark Theme Overrides */
.table-dark {
    --bs-table-bg: var(--bg-card);
    --bs-table-border-color: var(--border-primary);
}

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-divider {
    border-color: var(--border-primary);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-primary);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--text-primary);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--text-primary);
}

.alert-warning {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid var(--accent-yellow);
    color: var(--text-primary);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: var(--text-primary);
}

/* Additional team following styles for existing functionality */
.status-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.status-item {
    text-align: center;
    padding: 1rem;
}

.status-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.competition-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.competition-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-electric-blue);
}

.competition-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.competition-logo {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    border-radius: 8px;
}

.competition-name {
    font-weight: 600;
    color: var(--text-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.team-checkbox-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.team-checkbox-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-electric-blue);
}

.team-checkbox-card.selected {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-electric-blue);
}

.team-checkbox {
    margin-right: 0.5rem;
}

.team-logo-small {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    object-fit: contain;
}

.team-name-small {
    font-size: 0.9rem;
    color: var(--text-primary);
    flex: 1;
}

/* Progress bars */
.progress {
    background: var(--bg-secondary);
    border-radius: 8px;
    height: 8px;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 8px;
}

/* Tables */
.table {
    color: var(--text-primary);
}

.table thead th {
    border-bottom: 2px solid var(--border-primary);
    color: var(--text-primary);
}

.table td, .table th {
    border-top: 1px solid var(--border-primary);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02);
}

/* Stores Management Styles */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.store-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.store-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-electric-blue);
    box-shadow: var(--shadow-blue-glow);
}

.store-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.store-info {
    flex: 1;
}

.store-name {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.store-url {
    margin: 0;
    font-size: 0.875rem;
}

.store-url a {
    color: var(--accent-electric-blue);
    text-decoration: none;
}

.store-url a:hover {
    text-decoration: underline;
}

.store-status {
    flex-shrink: 0;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-success {
    background: rgba(0, 120, 255, 0.1);
    color: var(--accent-electric-blue);
    border: 1px solid var(--accent-electric-blue);
}

.store-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.store-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.store-actions .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-item.text-danger {
    color: #ff3b30;
}

.dropdown-item.text-danger:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.dropdown-divider {
    border-color: var(--border-primary);
}

/* Empty state */
.empty-state {
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Modal styling */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-primary);
}

.modal-title {
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
}

.modal-footer {
    border-top: 1px solid var(--border-primary);
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    opacity: 1;
}

.btn-close:hover {
    color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: 1fr;
    }
    
    .store-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .store-actions {
        justify-content: flex-start;
    }
    
    .store-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}