:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --secondary-color: #14b8a6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-bg: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Accessibility: High contrast colors for text */
    --text-primary: #1f2937; /* Dark gray with 12.6:1 contrast on white */
    --text-secondary: #374151; /* Medium gray with 10.2:1 contrast on white */
    --text-muted: #4b5563; /* Muted text with 7.5:1 contrast on white */
    --border-color: #d1d5db; /* Border color with sufficient contrast */
}

* {
    transition: all 0.2s ease;
}

body {
    background: #ffffff;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

body > .container,
body > div > .container {
    flex: 1;
}

.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1030;
}

/* Ensure dropdown menus are always on top */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
    margin-top: 0.125rem;
    right: 0;
    left: auto;
}

/* Ensure navbar collapse doesn't interfere with dropdowns */
.navbar-collapse {
    z-index: 1030;
}

/* User group (Language + Login/Logout) */
.nav-user-group {
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding-left: 1rem;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-user-group .btn-group {
    display: flex;
}

.nav-user-group .btn {
    white-space: nowrap;
}

@media (max-width: 991px) {
    .nav-user-group {
        border-left: none;
        border-top: 2px solid rgba(0, 0, 0, 0.1);
        padding-left: 0;
        padding-top: 1rem;
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Make sure cards and other elements don't overlap dropdowns */
.card,
.alert,
.page-header {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.navbar-brand:hover,
.navbar-brand:focus {
    text-decoration: none !important;
}

.brand-icon-wrapper {
    position: relative;
    display: inline-block;
}

.beta-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    display: inline-block;
    background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.35rem 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    animation: pulse-beta 2s ease-in-out infinite, color-wave 3s ease-in-out infinite;
    vertical-align: middle;
    line-height: 1;
    transform: rotate(-5deg);
    font-style: italic;
    z-index: 10;
}

@keyframes pulse-beta {
    0%, 100% {
        transform: rotate(-5deg) scale(1);
    }
    50% {
        transform: rotate(-5deg) scale(1.1);
    }
}

@keyframes color-wave {
    0%, 100% {
        background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%);
    }
    25% {
        background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    }
    50% {
        background: linear-gradient(135deg, #fb923c 0%, var(--warning-color) 100%);
    }
    75% {
        background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    }
}

/* Responsive: Smaller badge on mobile */
@media (max-width: 576px) {
    .beta-badge {
        font-size: 0.55rem;
        padding: 0.3rem 0.45rem;
    }
}

/* Landing Page Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    border-radius: 24px;
    margin-top: 2rem;
}

.hero-section h1 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 3rem 0;
}

.feature-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-icon i {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-screenshot {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.feature-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.league-card {
    transition: all 0.3s ease;
}

.league-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.15);
}

.empty-state-section {
    min-height: 400px;
    display: flex;
    align-items: center;
}

.empty-state i {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-screenshot-placeholder {
        min-height: 120px;
        padding: 2rem 1rem;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    text-decoration: none !important;
}

.nav-link:hover,
.nav-link:focus {
    background-color: var(--light-bg);
    color: var(--primary-color) !important;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    text-decoration: none !important;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.player-card-link {
    transition: all 0.2s ease;
    cursor: pointer;
}

.player-card-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.player-card-link:hover .text-primary {
    color: var(--primary-dark) !important;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* Ensure white text on gradient has sufficient contrast */
.card-header,
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Warning header with dark text for better contrast */
.card-header.bg-warning {
    background-color: var(--warning-color) !important;
    color: #1f2937 !important; /* Dark text for WCAG AA compliance */
}

.card-header.bg-warning h1,
.card-header.bg-warning h2,
.card-header.bg-warning h3,
.card-header.bg-warning h4,
.card-header.bg-warning h5,
.card-header.bg-warning h6 {
    color: #1f2937 !important;
    text-shadow: none;
}

.card-body {
    padding: 1.5rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header p,
.page-header span {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
}

/* Separate button area in header */
.page-header-actions {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.5rem;
    width: 100%;
}

.page-header-actions .btn {
    min-width: 160px;
    flex: 0 1 auto;
    white-space: nowrap;
}

/* Icon-only buttons (without text) */
.page-header-actions .btn-icon-only {
    min-width: auto;
    width: 3rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: 768px) {
    .page-header-actions {
        margin-top: 1rem;
    }
    
    .page-header-actions .btn {
        min-width: 100%;
    }
    
    .page-header-actions .btn-icon-only {
        min-width: 100%;
        width: 100%;
    }
}

.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s;
    border: none;
}

.btn:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: #ffffff;
}

.btn-success:hover,
.btn-success:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: #1f2937; /* Dark text on warning buttons for better contrast */
}

.btn-warning:hover,
.btn-warning:focus {
    color: #1f2937;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: #ffffff;
}

.btn-danger:hover,
.btn-danger:focus {
    color: #ffffff;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%);
    color: #ffffff;
}

.btn-info:hover,
.btn-info:focus {
    color: #ffffff;
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    color: #ffffff;
}

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

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: var(--light-bg);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.badge:not(.badge-key-value) {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
}

.alert {
    border-radius: 12px;
    border: none;
    box-shadow: var(--card-shadow);
}

/* Ensure alert text has sufficient contrast */
.alert-success {
    color: #065f46;
    background-color: #d1fae5;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    color: #991b1b;
    background-color: #fee2e2;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    color: #92400e;
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    color: #0e7490;
    background-color: #cffafe;
    border-left: 4px solid var(--info-color);
}

/* Improve text-muted contrast */
.text-muted {
    color: var(--text-muted) !important;
}

/* Ensure links have good contrast and focus states */
a {
    color: var(--primary-color);
}

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 0.625rem 1rem;
    transition: all 0.2s;
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

.list-group-item {
    border-radius: 10px !important;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    color: var(--text-primary);
}

.list-group-item:hover,
.list-group-item:focus {
    background-color: var(--light-bg);
    transform: translateX(4px);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.stat-card,
.stat-card h1,
.stat-card h2,
.stat-card h3,
.stat-card h4,
.stat-card h5,
.stat-card h6,
.stat-card p,
.stat-card span {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* Improve bg-light contrast */
.bg-light {
    background-color: #f3f4f6 !important;
    color: var(--text-primary);
}

/* Improve badge contrast */
.badge:not(.badge-key-value) {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: #1f2937 !important; /* Dark text on warning badges */
}

.badge.bg-light {
    background-color: #f3f4f4 !important;
    color: var(--text-primary) !important;
}

/* Ensure code blocks have good contrast */
code,
pre {
    background-color: #f3f4f6;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

pre {
    padding: 1rem;
    border-radius: 8px;
}

/* Improve navbar-toggler contrast */
.navbar-toggler {
    border: 2px solid var(--text-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure all body text has sufficient contrast */
body {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

/* Accordion styling for matchday view */
.accordion-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-item {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion-body {
    padding: 1.5rem;
}

/* Print styles for better contrast */
@media print {
    body {
        background: white;
    }
    
    .card-header,
    .page-header,
    .stat-card {
        background: #10b981 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .accordion-button {
        background: #10b981 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Key/Value Badges */
.badge.badge-key-value {
    display: inline-flex !important;
    align-items: center;
    padding: 0 !important;
    border-radius: 0.375rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    line-height: 1.5;
    vertical-align: baseline;
    background: transparent !important;
}

.badge.badge-key-value .badge-key {
    background-color: #047857 !important; /* Dunkleres Grün für besseren Kontrast */
    color: #ffffff !important;
    padding: 0.35em 0.65em;
    font-weight: 600;
    display: inline-block;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.badge.badge-key-value .badge-value {
    background-color: #0f766e !important; /* Dunkleres Türkis für besseren Kontrast */
    color: #ffffff !important;
    padding: 0.35em 0.65em;
    display: inline-block;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* Match Cards on Player Detail Page */
.match-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Modern Homepage Styles - jeton.com inspired */
.hero-section-modern .container,
.unify-section .container,
.all-leagues-section .container,
.features-grid-section .container,
.cta-section-modern .container,
.leagues-section-modern .container {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section-modern {
    background: #ffffff;
    padding: 8rem 0 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle-modern {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual-modern {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon-modern {
    font-size: 15rem;
    color: var(--primary-color);
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-outline-modern {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-success,
.btn-success.btn-lg,
.btn-success-modern {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-success:hover,
.btn-success-modern:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-info,
.btn-info.btn-lg {
    background: var(--info-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
    color: white;
}

.btn-warning,
.btn-warning.btn-lg {
    background: var(--warning-color);
    color: #1f2937;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    color: #1f2937;
}

.btn-danger,
.btn-danger.btn-lg,
.btn-danger-modern {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-danger:hover,
.btn-danger-modern:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    color: white;
}

.btn-icon-only {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-icon-only.btn-lg {
    width: 3.5rem;
    height: 3.5rem;
}

/* Unify Section */
.unify-section {
    background: #ffffff;
    padding: 6rem 0;
}

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

.section-subtitle-modern {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-box-modern {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-box-modern:hover {
    transform: translateY(-5px);
}

.feature-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-icon-modern i {
    color: white;
    font-size: 2rem;
    display: block;
}

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

.feature-text-modern {
    color: var(--text-muted);
    line-height: 1.6;
}

/* All Leagues Section */
.all-leagues-section {
    background: #f8fafc;
    padding: 6rem 0;
}

.bg-light-modern {
    background: #f8fafc;
}

.section-text-modern {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.feature-list-modern {
    list-style: none;
    padding: 0;
}

.feature-list-modern li {
    padding: 0.75rem 0;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.shadow-modern {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Features Grid Section */
.features-grid-section {
    background: #ffffff;
    padding: 6rem 0;
}

.feature-card-modern {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.feature-card-modern .feature-screenshot {
    margin-bottom: 1.5rem;
}

.feature-card-modern .feature-title-modern {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card-modern .feature-text-modern {
    font-size: 0.95rem;
    flex-grow: 1;
}

/* CTA Section */
.cta-section-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0;
}

.cta-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-text-modern {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.cta-section-modern .btn-primary-modern {
    background: white;
    color: var(--primary-color);
}

.cta-section-modern .btn-primary-modern:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
}

.cta-section-modern .btn-outline-modern {
    border-color: white;
    color: white;
}

.cta-section-modern .btn-outline-modern:hover {
    background: white;
    color: var(--primary-color);
}

/* Leagues Section Modern */
.leagues-section-modern {
    background: #ffffff;
    padding: 6rem 0;
}

.league-card-modern {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.league-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.league-card-header-modern {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.league-card-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.league-card-body-modern {
    padding: 1.5rem;
    flex-grow: 1;
}

.league-card-text-modern {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.league-card-footer-modern {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.bg-info-modern {
    background-color: var(--info-color) !important;
}

/* Leagues Overview Page Styles */
.leagues-header-section {
    background: #ffffff;
    padding: 4rem 0 2rem;
}

.leagues-header-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.leagues-search-section {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.leagues-search-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.search-form-modern {
    position: relative;
}

.input-group-modern {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.input-group-modern:focus-within {
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.1);
    border-color: var(--primary-color);
}

.input-group-icon-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.form-control-modern {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

.form-control-modern::placeholder {
    color: var(--text-muted);
}

.btn-clear-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-right: 0.5rem;
}

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

.leagues-list-section {
    background: #ffffff;
    padding: 3rem 0 5rem;
}

.leagues-list-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.pagination-wrapper-modern {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pagination-wrapper-modern .pagination {
    gap: 0.5rem;
}

.pagination-wrapper-modern .page-link {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.pagination-wrapper-modern .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-wrapper-modern .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.leagues-empty-section {
    background: #ffffff;
    padding: 5rem 0;
}

.leagues-empty-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.empty-state-modern {
    padding: 3rem 2rem;
}

.empty-state-icon-modern {
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state-title-modern {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.empty-state-text-modern {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1.125rem;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .hero-icon-modern {
        font-size: 8rem;
    }
    
    .hero-cta-modern {
        flex-direction: column;
    }
    
    .hero-cta-modern .btn {
        width: 100%;
    }
    
    .input-group-modern {
        flex-wrap: wrap;
    }
    
    .input-group-modern .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .empty-state-icon-modern {
        font-size: 3rem;
    }
}

/* Admin Section Styles */
.admin-header-section {
    background: #ffffff;
    padding: 2rem 0 1rem;
}

.admin-header-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-leagues-section {
    background: #ffffff;
    padding: 2rem 0 4rem;
}

.admin-leagues-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.card-modern {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.card-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body-modern {
    padding: 1.5rem;
}

.table-responsive-modern {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead {
    background: #f8fafc;
}

.table-modern th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-modern td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-secondary);
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.btn-sm.btn-primary-modern {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

/* League Show Page Styles */
.admin-league-header-section {
    background: #ffffff;
    padding: 2rem 0 1rem;
}

.admin-league-header-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-league-content-section {
    background: #ffffff;
    padding: 2rem 0 4rem;
}

.admin-league-content-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-actions-menu-positioned {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.admin-actions-menu-positioned .btn {
    min-width: 200px;
}

.admin-actions-dropdown {
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.admin-actions-dropdown .dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
}

.admin-actions-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.admin-actions-dropdown .dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.admin-actions-dropdown .dropdown-item.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.admin-actions-dropdown .dropdown-item i {
    width: 1.25rem;
    text-align: center;
}

.admin-actions-dropdown .dropdown-item.text-danger {
    color: var(--danger-color);
}

.admin-actions-dropdown .dropdown-item.text-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.settings-card-modern {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.settings-card-header-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
}

.settings-card-body-modern {
    padding: 1.5rem;
}

.settings-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.setting-item-modern {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.setting-label-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-value-modern {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.players-card-modern,
.matchdays-card-modern {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.players-card-header-modern,
.matchdays-card-header-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
}

.players-card-body-modern,
.matchdays-card-body-modern {
    padding: 1.5rem;
    flex-grow: 1;
}

.list-group-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item-modern {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.list-group-item-modern:hover {
    background: #f8fafc;
}

.list-group-item-modern:last-child {
    border-bottom: none;
}

.list-group-item-modern .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-actions-modern {
        flex-direction: column;
    }
    
    .admin-actions-modern .btn {
        width: 100%;
    }
    
    .settings-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .table-modern {
        font-size: 0.875rem;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 0.75rem 0.5rem;
    }
}

/* Public League Views Styles */
.public-league-header-section {
    background: #ffffff;
    padding: 4rem 0 2rem;
}

.public-league-header-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.public-league-nav-section {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.public-league-nav-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.public-league-tabs-section {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.public-league-tabs-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.nav-tabs-modern {
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-item {
    margin-bottom: -2px;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.nav-link-modern:hover {
    color: var(--primary-color);
    border-bottom-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.nav-link-modern.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
    font-weight: 600;
}

.nav-link-modern i {
    font-size: 1.125rem;
}

.public-league-players-section {
    background: #ffffff;
    padding: 2rem 0 4rem;
}

.public-league-players-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.public-league-table-section {
    background: #ffffff;
    padding: 2rem 0 4rem;
}

.public-league-table-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.public-league-schedule-section {
    background: #ffffff;
    padding: 2rem 0 4rem;
}

.public-league-schedule-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.league-badges-modern {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.league-settings-modern {
    margin-top: 0.5rem;
}

.player-card-modern {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.player-card-icon-modern {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.player-card-name-modern {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.match-card-modern {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.match-card-modern:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.match-card-modern.match-played {
    background: #f8fafc;
}

.match-card-modern.match-bye {
    border-color: var(--info-color);
    background: #f0f9ff;
}

.match-players-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.match-player-modern {
    flex: 1;
    text-align: center;
}

.match-vs-modern {
    flex: 0 0 auto;
    text-align: center;
}

.match-score-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.match-stats-modern {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.match-status-modern {
    margin-top: 1rem;
}

.match-bye-content-modern {
    padding: 1rem;
}

.public-error-section {
    background: #ffffff;
    padding: 4rem 0;
}

.public-error-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.public-player-content-section {
    background: #ffffff;
    padding: 2rem 0 4rem;
}

.public-player-content-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Public Views */
@media (max-width: 768px) {
    .match-players-modern {
        flex-direction: column;
    }
    
    .match-vs-modern {
        order: -1;
    }
    
    .player-card-icon-modern {
        font-size: 3rem;
    }
}

/* Admin Form Styles */
.admin-form-header-section {
    background: #ffffff;
    padding: 2rem 0 1rem;
}

.admin-form-header-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-form-section {
    background: #ffffff;
    padding: 2rem 0 4rem;
}

.admin-form-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.league-form-modern {
    max-width: 100%;
}

.form-section-modern {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.form-section-modern:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-section-info {
    border-left-color: var(--info-color);
}

.form-section-primary {
    border-left-color: var(--primary-color);
}

.form-section-success {
    border-left-color: var(--success-color);
}

.form-section-warning {
    border-left-color: var(--warning-color);
}

.form-section-danger {
    border-left-color: var(--danger-color);
}

.delete-confirm-question-modern {
    padding: 1.5rem;
    background: #fef2f2;
    border-left: 4px solid var(--danger-color);
    border-radius: 0.5rem;
    font-size: 1.125rem;
}

.form-section-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

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

.form-control-modern,
.form-select-modern,
.form-control,
.form-select,
textarea.form-control-modern,
textarea.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

textarea.form-control-modern,
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-control-modern:focus,
.form-select-modern:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.15);
    outline: none;
}

.form-control-modern:disabled,
.form-control:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.form-text-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-actions-modern {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group .form-control,
.form-group .form-select {
    width: 100%;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.is-invalid {
    border-color: var(--danger-color);
}

.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.15);
}

/* Responsive Forms */
@media (max-width: 768px) {
    .form-actions-modern {
        flex-direction: column;
    }
    
    .form-actions-modern .btn {
        width: 100%;
    }
}

/* Matchday Show Styles */
.admin-matchday-header-section {
    background: #ffffff;
    padding: 2rem 0 1rem;
}

.admin-matchday-header-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-matchday-content-section {
    background: #ffffff;
    padding: 2rem 0 4rem;
}

.admin-matchday-content-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.accordion-matchday-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item-matchday-modern {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item-matchday-modern:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.accordion-header-matchday-modern {
    margin-bottom: 0;
}

.accordion-button-matchday-modern {
    width: 100%;
    padding: 1.5rem;
    background: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-primary);
}

.accordion-button-matchday-modern:not(.collapsed) {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.accordion-button-matchday-modern:hover {
    background: #f8fafc;
}

.accordion-button-matchday-modern:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.accordion-icon-modern {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion-button-matchday-modern:not(.collapsed) .accordion-icon-modern {
    transform: rotate(180deg);
}

.badge-status-modern {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

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

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

.accordion-body-matchday-modern {
    padding: 2rem;
    background: #ffffff;
}

.match-result-form-modern {
    padding-top: 1rem;
}

.player-form-section-modern {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    height: 100%;
}

.player-form-section-home {
    border-left: 4px solid var(--primary-color);
}

.player-form-section-away {
    border-left: 4px solid var(--success-color);
}

.player-form-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.badge-player-modern {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border-radius: 0.375rem;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern .row {
    margin-left: 0;
    margin-right: 0;
}

.form-group-modern .row.g-3 > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.form-control-modern.w-100 {
    width: 100% !important;
}

.form-subsection-title-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.match-form-actions-modern {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* Upload Page Styles */
.admin-upload-header-section {
    background: #ffffff;
    padding: 2rem 0 1rem;
}

.admin-upload-header-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-upload-info-section {
    padding: 1.5rem 0;
}

.admin-upload-info-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.match-info-item-modern {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.admin-upload-content-section {
    background: #ffffff;
    padding: 2rem 0 4rem;
}

.admin-upload-content-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.upload-description-modern {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.json-format-box-modern {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    background: #ffffff;
    transition: all 0.3s ease;
}

.json-format-box-modern:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.json-format-standard {
    border-left-color: var(--primary-color);
}

.json-format-player-names {
    border-left-color: var(--success-color);
}

.json-format-title-modern {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.json-format-title-modern i {
    font-size: 1.25rem;
}

.json-code-modern {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}

.json-code-modern code {
    color: var(--text-primary);
    background: transparent;
    padding: 0;
}

.upload-form-modern {
    padding-top: 1rem;
}

.upload-option-modern {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.upload-option-modern:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.upload-option-file {
    border-left: 4px solid var(--primary-color);
}

.upload-option-text {
    border-left: 4px solid var(--info-color);
}

.upload-option-header-modern {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.upload-option-header-modern i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.upload-option-text .upload-option-header-modern i {
    color: var(--info-color);
}

.upload-option-body-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upload-option-body-modern textarea {
    flex: 1;
    min-height: 200px;
    resize: vertical;
}


.upload-form-actions-modern {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.upload-form-actions-modern .btn {
    flex: 1;
}

/* Responsive Matchday */
@media (max-width: 768px) {
    .player-form-section-modern {
        margin-bottom: 1.5rem;
    }
    
    .match-form-actions-modern {
        text-align: center;
    }
    
    .upload-option-modern {
        margin-bottom: 1.5rem;
    }
    
    .upload-form-actions-modern {
        flex-direction: column;
    }
    
    .upload-form-actions-modern .btn {
        width: 100%;
    }
}

/* Footer Styles */
.footer-modern {
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-copyright {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

@media (max-width: 767px) {
    .footer-modern {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

/* Klaro Cookie Consent Styling - Angepasst an modernes Design */
.cn-body {
    font-family: var(--font-family-base) !important;
}

.cn-container {
    border-radius: 0.75rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.cn-header {
    background: var(--primary-color) !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1.5rem !important;
}

.cn-header h1,
.cn-header h2 {
    color: white !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.cn-description {
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
}

.cn-body .cm-btn {
    border-radius: 0.5rem !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.cn-body .cm-btn.cm-btn-success,
.cn-body .cm-btn.cm-btn-accept {
    background: var(--primary-color) !important;
    color: white !important;
}

.cn-body .cm-btn.cm-btn-success:hover,
.cn-body .cm-btn.cm-btn-accept:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3) !important;
}

.cn-body .cm-btn.cm-btn-danger,
.cn-body .cm-btn.cm-btn-decline {
    background: #ef4444 !important;
    color: white !important;
}

.cn-body .cm-btn.cm-btn-danger:hover,
.cn-body .cm-btn.cm-btn-decline:hover {
    background: #dc2626 !important;
    transform: translateY(-2px) !important;
}

.cn-body .cm-btn.cm-btn-info {
    background: #6b7280 !important;
    color: white !important;
}

.cn-body .cm-btn.cm-btn-info:hover {
    background: #4b5563 !important;
    transform: translateY(-2px) !important;
}

.cn-service {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    background: white !important;
}

.cn-service-title {
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem !important;
}

.cn-service-description {
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

.cn-service-toggle {
    width: 3rem !important;
    height: 1.5rem !important;
}

.cn-service-toggle input:checked + .slider {
    background-color: var(--primary-color) !important;
}

.cn-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 1.5rem !important;
    background: #f8fafc !important;
}

.cn-footer .cm-btn {
    margin: 0 0.5rem !important;
}

/* Klaro Notice (Bottom Banner) - Full Width */
.cn-notice {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: white !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 9999 !important;
}

.cn-notice > div {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.cn-notice .cn-description,
.cn-notice p {
    color: var(--text-secondary) !important;
    margin: 0 !important;
    flex: 1 !important;
    min-width: 250px !important;
}

.cn-notice .cm-btn {
    margin: 0 !important;
}

.cn-notice .cm-buttons,
.cn-notice .cm-buttons-wrapper {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cn-container {
        margin: 1rem !important;
        border-radius: 0.5rem !important;
    }
    
    .cn-notice > div {
        padding: 1rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .cn-notice .cn-description,
    .cn-notice p {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .cn-notice .cm-buttons,
    .cn-notice .cm-buttons-wrapper {
        width: 100% !important;
        flex-direction: column !important;
    }

    .cn-footer .cm-btn {
        display: block !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }

    .cn-notice .cm-btn {
        width: 100% !important;
        margin: 0.25rem 0 !important;
    }
}

/* Padding für Body wenn Banner sichtbar ist */
body.cn-notice-visible {
    padding-bottom: 100px !important;
}

@media (max-width: 768px) {
    body.cn-notice-visible {
        padding-bottom: 150px !important;
    }
}

/* Sign-Up Page Styles - Neu aufgebaut */
.signup-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.signup-feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.signup-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-radius: 0.75rem;
    flex-shrink: 0;
    border: 2px solid rgba(16, 185, 129, 0.25);
}

.signup-feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.signup-feature-content {
    flex: 1;
}

.signup-feature-title {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.signup-feature-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.signup-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .signup-feature-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .signup-feature-icon {
        width: 3rem;
        height: 3rem;
        min-width: 3rem;
        min-height: 3rem;
    }
    
    .signup-feature-icon i {
        font-size: 1.5rem;
    }
    
    .signup-actions {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* Language Selector - Schmaler ohne Rahmen */
.btn-language-selector {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-language-selector:hover,
.btn-language-selector:focus {
    background: transparent;
    color: var(--primary-color);
    border: none;
    box-shadow: none;
}

.btn-language-selector:active {
    background: transparent;
    border: none;
    box-shadow: none;
}

.btn-language-selector i {
    font-size: 0.875rem;
}
