/* Modern PreciseBet Analytics Styles */

/* Custom Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --spacing: 1.5rem;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Accessibility: Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover, .btn-primary:hover {
        transform: none;
    }
    
    #selectedLeaguesList .badge:hover {
        transform: none;
    }
}

/* Accessibility: Respect transparency preferences */
@media (prefers-reduced-transparency: reduce) {
    .card, .modern-nav, .auth-card, .selected-leagues-container {
        backdrop-filter: none;
        background: rgba(30, 40, 60, 0.98);
    }
}

/* Accessibility: High contrast mode fallbacks */
@media (prefers-contrast: more) {
    .card, .modern-nav, .auth-card, .selected-leagues-container {
        backdrop-filter: blur(5px);
        background: rgba(30, 40, 60, 0.95);
    }
}

@media (forced-colors: active) {
    .card, .modern-nav, .auth-card, .selected-leagues-container {
        backdrop-filter: none;
        background: Canvas;
        border: 1px solid ButtonText;
    }
}

/* Class-based transparency reduction for JS toggle */
.reduced-transparency .card,
.reduced-transparency .modern-nav,
.reduced-transparency .auth-card,
.reduced-transparency .selected-leagues-container {
    backdrop-filter: none;
    background: rgba(30, 40, 60, 0.98);
}

/* Global Styling */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    font-weight: 400;
    overflow-x: hidden;
}

/* Modern Navigation */
.modern-nav {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.brand-modern {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white !important;
    font-weight: 600;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.brand-icon .fa-chart-line {
    color: white;
    font-size: 18px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 1.3rem;
    font-weight: 700;
}

.brand-text small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.modern-nav-link {
    padding: 8px 16px !important;
    border-radius: 8px;
    margin: 0 4px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
}

.modern-nav-link:hover {
    background: rgba(25, 35, 55, 0.95);
    color: white !important;
    transform: translateY(-1px);
}

.modern-nav-link.active {
    background: var(--primary-gradient);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 100px;
    padding-bottom: 2rem;
    min-height: calc(100vh - 100px);
}

/* Modern Footer */
.modern-footer {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-brand {
    font-weight: 600;
    color: white;
}

/* Typography Hierarchy */
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2, .section-title {
    font-size: 1.75rem;
    font-weight: 600;
}

h3, .card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
}

/* Modern Card Styling */
.card {
    background: rgba(30, 40, 60, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: var(--spacing);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    background: rgba(35, 45, 65, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Authentication styles removed - no longer needed */

.divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    background: rgba(13, 17, 23, 0.95);
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.card-title {
    color: white;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

.card-title i {
    margin-right: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Form Styling */
.form-control, .form-select {
    background: rgba(35, 45, 65, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Enhanced Date Input Styling - Make entire field clickable */
input[type="date"].form-control {
    position: relative;
    cursor: pointer;
    padding: 0.75rem 1rem; 
    background: rgba(35, 45, 65, 0.95);
    color: white;
    font-family: inherit;
    min-height: 48px; /* Ensure adequate touch target size */
    width: 100%;
    display: block;
}

/* Make the calendar picker indicator cover the entire input */
input[type="date"].form-control::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: transparent;
    opacity: 0; /* Make it invisible but keep it clickable */
    margin: 0;
    padding: 0;
}

/* Style for better visual feedback */
input[type="date"].form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

input[type="date"].form-control::-webkit-calendar-picker-indicator:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
}

/* Firefox date input styling */
input[type="date"].form-control::-moz-focus-inner {
    border: 0;
}

/* Make the entire field clickable on hover */
input[type="date"].form-control:hover {
    border-color: #667eea;
    background: rgba(30, 40, 60, 0.95);
    cursor: pointer;
}

.form-control:focus, .form-select:focus {
    background: rgba(30, 40, 60, 0.95);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Modern Button Styling */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(25, 35, 55, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    color: white;
}

.btn-outline-success, .btn-outline-warning, .btn-outline-light {
    background: rgba(35, 45, 65, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline-success:hover, .btn-outline-warning:hover, .btn-outline-light:hover {
    background: rgba(25, 35, 55, 0.95);
    color: white;
    transform: translateY(-1px);
}

/* Modern League Selection */
#leagueSelect {
    min-height: 150px;
    max-height: 200px;
    background: rgba(35, 45, 65, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.league-selection-container {
    position: relative;
}

.selected-leagues-container {
    min-height: 50px;
    max-height: 120px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 0.75rem;
    background: rgba(30, 40, 60, 0.95);
    backdrop-filter: blur(10px);
}

.selected-leagues-container:empty::after {
    content: "No leagues selected";
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 0.85rem;
}

#selectedLeaguesList .badge {
    background: var(--primary-gradient);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    margin: 0.25rem;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}


/* Selected League Badge Styling */
.selected-league-badge {
    background: var(--primary-gradient) !important;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.selected-league-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.selected-league-badge .league-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
}

/* Remove League Button */
.remove-league-btn {
    background: rgba(220, 53, 69, 0.2) !important;
    border: 1px solid rgba(220, 53, 69, 0.4) !important;
    color: #dc3545 !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.remove-league-btn:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    transform: scale(1.1);
}

.remove-league-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    background: #dc3545 !important;
    color: white !important;
}

/* Improve badge accessibility and hit areas */
#selectedLeaguesList .badge {
    transition: all 0.2s ease;
    min-height: 2.2rem;
    padding: 0.6rem 0.75rem;
}

#selectedLeaguesList .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Better mobile touch targets */
@media (max-width: 768px) {
    #selectedLeaguesList .badge {
        min-height: 2.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    #selectedLeaguesList .btn-close {
        margin-left: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Modern Badges */
.badge {
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
}

.badge.bg-success {
    background: var(--success-gradient) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.badge.bg-warning {
    background: var(--secondary-gradient) !important;
    color: white !important;
}

/* Modern Match Card Styling */
.match-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.match-card .vs-badge {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-size: 0.9rem;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.team-logo {
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.team-logo:hover {
    transform: scale(1.1);
}

/* Modern Table Styling */
.table {
    background: rgba(30, 40, 60, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    color: white;
}

.table-dark {
    --bs-table-bg: rgba(30, 40, 60, 0.95);
    --bs-table-striped-bg: rgba(35, 45, 65, 0.95);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.table thead th {
    background: rgba(25, 35, 55, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 1rem;
    color: white;
}

.table tbody td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    vertical-align: middle;
}

/* Modern Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border-left: 4px solid;
}

.alert-info {
    background: rgba(79, 172, 254, 0.1);
    border-left-color: #4facfe;
    color: #4facfe;
}

.alert-danger {
    background: rgba(245, 87, 108, 0.1);
    border-left-color: #f5576c;
    color: #f5576c;
}

.alert-success {
    background: rgba(79, 172, 254, 0.1);
    border-left-color: #00f2fe;
    color: #00f2fe;
}

.alert-warning {
    background: rgba(240, 147, 251, 0.1);
    border-left-color: #f093fb;
    color: #f093fb;
}

/* Modern Loading */
#loadingIndicator {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(30, 40, 60, 0.95);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
    border-color: #667eea;
    border-right-color: transparent;
}

/* Modern Selection Controls */
.selection-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.selection-controls .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.selection-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Modern Checkbox Styling */
.match-selector, .history-selector {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(35, 45, 65, 0.95);
    transition: all 0.3s ease;
}

.match-selector:checked, .history-selector:checked {
    background: var(--success-gradient);
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.match-card:has(.match-selector:checked) {
    border-color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
    box-shadow: 0 0 0 1px rgba(79, 172, 254, 0.3);
}

.table tbody tr:has(.history-selector:checked) {
    background: rgba(79, 172, 254, 0.1);
    border-left: 4px solid #4facfe;
}

.form-check {
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

.form-check-input {
    margin-top: 0;
}

/* Modern Export Buttons */
#exportPdfBtn, #exportSelectedHistoryBtn {
    background: var(--success-gradient);
    border: none;
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
}

#exportPdfBtn:hover, #exportSelectedHistoryBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

#exportPdfBtn:disabled, #exportSelectedHistoryBtn:disabled {
    transform: none;
    opacity: 0.6;
}

/* Modern Counter Badges */
#selectionCounter, #historySelectionCounter {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Modern Modal Styling */
.modal-content {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

/* Modern Utilities */
.lead {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.7;
}

.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-info {
    color: #4facfe !important;
}

.text-success {
    color: #00f2fe !important;
}

.text-warning {
    color: #f093fb !important;
}

.text-danger {
    color: #f5576c !important;
}

/* Mobile-First Responsive Design */
@media (max-width: 576px) {
    .main-content {
        padding-top: 80px;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header, .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .brand-text strong {
        font-size: 1.1rem;
    }
    
    .brand-text small {
        display: none;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .team-name {
        font-size: 0.95rem;
    }
    
    .vs-badge {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.8rem !important;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table thead th, .table tbody td {
        padding: 0.5rem;
    }
    
    .selection-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .selection-controls .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 90px;
    }
    
    .row > div {
        margin-bottom: 1rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modern-nav-link span {
        display: none;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .modern-footer .row > div {
        text-align: center;
    }
}

@media (min-width: 992px) {
    .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
}

/* Hero Section Styling */
.hero-card {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-card .card-body {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-card .card-body {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Page Header Styling */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    color: white;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-actions .btn {
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group .form-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.form-group .form-label i {
    color: #667eea;
}

.league-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Analysis Form Enhancements */
.analysis-form {
    background: rgba(30, 40, 60, 0.95);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .page-header .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .league-badges {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Landing Page Styles */
.landing-container {
    min-height: 100vh;
    background: var(--bg-gradient);
    position: relative;
    overflow-x: hidden;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.brand-logo {
    margin-bottom: 2rem;
}

.gradient-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 1rem;
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.brand-name em {
    color: #667eea;
    font-style: italic;
}

.hero-description {
    font-size: 1.25rem;
    color: #adb5bd;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.feature-item i {
    color: #667eea;
    font-size: 1.2rem;
}

.cta-section {
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.auth-note {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.features-section {
    padding: 5rem 0;
    background: rgba(30, 40, 60, 0.95);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #adb5bd;
    margin-bottom: 0;
}

.feature-card {
    background: rgba(25, 35, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    background: rgba(35, 45, 65, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
}

.feature-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 0;
}

.how-it-works-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.06);
}

.step-card {
    background: rgba(25, 35, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    background: rgba(35, 45, 65, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto 1.5rem;
}

.step-card h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-card p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 0;
}

.landing-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.landing-footer p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive Design for Landing Page */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .step-card {
        padding: 1.5rem;
    }
}

/* User Authentication Styles */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-dropdown {
    background: rgba(25, 35, 55, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    min-width: 250px;
}

.user-dropdown .dropdown-header {
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-dropdown .dropdown-item {
    color: #adb5bd;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(25, 35, 55, 0.95);
    color: #ffffff;
}

.user-dropdown .dropdown-item i {
    color: #667eea;
}

/* Feedback Modal Styles */
.rating-stars {
    display: flex;
    gap: 5px;
    font-size: 1.2em;
    margin-top: 5px;
}

.rating-stars i {
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #ffc107;
}

.rating-stars i.active {
    text-shadow: 0 0 3px rgba(255, 193, 7, 0.3);
}

#feedbackModal .modal-content {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#feedbackModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#feedbackModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Feedback button in nav */
.nav-link.btn.btn-link {
    background: none !important;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link.btn.btn-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

