/* Complete Enhanced Dashboard CSS - Improved Colors Version */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: #333;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #ffffff;
    min-height: 100vh;
}
.admin-page body,
body.admin,
#admin-wrapper {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    color: #ffffff !important;
}
#Wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}
/* Add to your CSS file */
.admin-link {
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f) !important;
    border-radius: 5px;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: linear-gradient(45deg, #ee5a6f, #ff6b6b) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.admin-link i {
    margin-right: 5px;
}
#Content {
    flex: 1;
    margin-top: 80px;
    padding: 40px 0;
    background: linear-gradient(135deg, #1e2a3a 0%, #2c3e50 50%, #1a252f 100%);
    color: #ffffff;
}


#Footer {
    background-color: #222;
    color: #fff;
    flex-shrink: 0;
    margin-top: auto;
}

/* Enhanced Logo Styling */
.logo {
    display: flex;
    align-items: center;
    max-width: 150px;
    transition: all 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo a:hover {
    transform: translateY(-1px);
}

.logo img {
    width: 80px;
    height: auto;
    background: transparent;
    max-width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 120, 255, 0.15));
}

.logo img:hover {
    filter: drop-shadow(0 3px 12px rgba(0, 120, 255, 0.25)) brightness(1.05);
    transform: scale(1.01);
}

.logo-text {
    margin-left: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #0078ff;
    font-family: 'Roboto Slab', serif;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: #005bb9;
}

.container {
    max-width: 1600px !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 20px;
}

.tier-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
}

.tier-badge.european {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

.tier-badge.tier-1 {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

.tier-badge.tier-2 {
    background: linear-gradient(45deg, #C0C0C0, #A9A9A9);
    color: #000;
}

.tier-badge.tier-3 {
    background: linear-gradient(45deg, #CD7F32, #B8860B);
    color: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Roboto Slab', serif;
    margin-bottom: 20px;
}

h1 {
    font-size: 42px;
    line-height: 52px;
}

h2 {
    font-size: 36px;
    line-height: 46px;
}

h3 {
    font-size: 24px;
    line-height: 34px;
}

h4 {
    font-size: 20px;
    line-height: 28px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: #0078ff;
    transition: color 0.3s ease;
}

a:hover {
    color: #005bb9;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: #222;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0078ff;
}

.section-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.primary-btn {
    background: linear-gradient(135deg, #0078ff 0%, #005bb9 100%);
    color: #fff;
    border: 2px solid #0078ff;
}

.primary-btn:hover {
    background-color: #005bb9;
    border-color: #005bb9;
    color: #fff;
}

.secondary-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    border: 2px solid #6c757d;
}

.secondary-btn:hover {
    background-color: #0078ff;
    color: #fff;
}

/* COMPACT HEADER STYLES */
#Header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(26, 34, 45, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 120, 255, 0.1);
}

.header-wrapper {
    padding: 8px 0;
}

.header-wrapper .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    padding: 0 20px;
}

#menu ul {
    display: flex;
    align-items: center;
    gap: 15px;
}

#menu ul li {
    margin-left: 0;
}

#menu ul li a {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    background: transparent !important;
    border: none !important;
}

#menu ul li a:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

#menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0078ff, #00c6ff);
    transition: width 0.3s ease;
}

#menu ul li a:hover::after,
#menu ul li a.active::after {
    width: 100%;
}

.login-button a, .signup-button a {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.login-button a {
    border: 1px solid rgba(0, 120, 255, 0.4) !important;
    background: transparent !important;
    color: rgba(0, 120, 255, 0.9) !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
}

.login-button a:hover {
    background-color: rgba(0, 120, 255, 0.1) !important;
    border-color: #0078ff !important;
    color: #0078ff !important;
}

.signup-button a {
    background: linear-gradient(135deg, #0078ff 0%, #00c6ff 100%) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 2px 6px rgba(0, 120, 255, 0.3) !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
}

.signup-button a:hover {
    background: linear-gradient(135deg, #005bb9 0%, #0099cc 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 120, 255, 0.4) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* NAVIGATION WITH SELECTIVE PERMANENT HIGHLIGHTS */
#menu ul li a.active {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* PERMANENT HIGHLIGHT: Free button (dashboard link) */
#menu ul li a[href="/dashboard"] {
    background-color: rgba(0, 120, 255, 0.15) !important;
    border: 1px solid rgba(0, 120, 255, 0.3) !important;
    color: #00c6ff !important;
    font-weight: 600 !important;
}

#menu ul li a[href="/dashboard"]:hover {
    background-color: rgba(0, 120, 255, 0.25) !important;
    border-color: rgba(0, 120, 255, 0.5) !important;
    color: #fff !important;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(0, 120, 255, 0.5) !important;
    transform: translateY(-1px) !important;
}

.profile-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078ff 0%, #00c6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
}

.profile-name {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    text-align: left;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-name-display {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    font-style: italic;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    margin-bottom: 0;
}

/* FAQ Section */
#faq {
    background-color: #f5f7fa;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 18px;
}

.toggle-icon {
    font-size: 24px;
    font-weight: 700;
    color: #0078ff;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* CTA Section */
#cta {
    background: linear-gradient(135deg, #0078ff 0%, #00c6ff 100%);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    color: #fff;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

#cta .primary-btn {
    background-color: #fff;
    color: #0078ff;
    border-color: #fff;
}

#cta .primary-btn:hover {
    background-color: transparent;
    color: #fff;
}

#cta .secondary-btn {
    border-color: #fff;
    color: #fff;
}

#cta .secondary-btn:hover {
    background-color: #fff;
    color: #0078ff;
}

/* Additional Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 100%;
    }
}

/* Train ML Model Button Styles */
.train-league-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.train-league-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.train-league-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* League Training Modal Styles */
.league-training-modal-content {
    max-width: 900px;
    background: linear-gradient(135deg, #2c3543 0%, #1e2832 100%);
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.modal-header h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 1rem;
}

.training-config {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.config-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.config-section h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.param-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.param-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.param-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.param-input, .param-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.param-input:focus, .param-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.feature-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.preset-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.feature-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.feature-checkbox label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    cursor: pointer;
}

.training-progress {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.training-progress.active {
    display: block;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
}

.model-results {
    display: none;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.model-results.active {
    display: block;
}

.model-results h4 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.metric {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.result-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.result-detail {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-detail:last-child {
    border-bottom: none;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-actions .btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
}

.train-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
}

.train-btn:hover {
    background: linear-gradient(135deg, #45a049, #3e8e41);
    transform: translateY(-1px);
}

.train-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.train-btn.training {
    background: linear-gradient(135deg, #FFC107, #FF9800);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Prediction Modal Styles */
.prediction-modal-content {
    max-width: 800px;
    background: linear-gradient(135deg, #2c3543 0%, #1e2832 100%);
    color: white;
}

.model-info-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-info-section h4 {
    color: #fff;
    margin-bottom: 15px;
}

.model-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.model-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.model-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.detail-value {
    color: #fff;
    font-weight: 600;
}

.model-actions {
    margin-top: 15px;
}

.prediction-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prediction-form h4 {
    color: #fff;
    margin-bottom: 15px;
}

.predict-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.predict-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-1px);
}

.prediction-results {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.prediction-results h4 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.recent-predictions {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-predictions h4 {
    color: #fff;
    margin-bottom: 15px;
}

.recent-prediction-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #667eea;
}

.recent-prediction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.recent-prediction .teams {
    font-weight: 600;
    color: #fff;
}

.recent-prediction .prediction {
    color: #4CAF50;
    font-weight: 500;
}

.recent-prediction .confidence {
    color: rgba(255, 255, 255, 0.7);
}

.recent-prediction .time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-left: 4px solid #2E7D32;
}

.toast.error {
    background: linear-gradient(135deg, #F44336, #d32f2f);
    border-left: 4px solid #C62828;
}

.toast.warning {
    background: linear-gradient(135deg, #FF9800, #f57c00);
    border-left: 4px solid #E65100;
    color: #212529;
}

.toast.info {
    background: linear-gradient(135deg, #2196F3, #1976d2);
    border-left: 4px solid #1565C0;
}

/* Live Update Indicator */
.live-update-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* No Matches Display */
.no-matches {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin: 40px 0;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.no-matches h3 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-matches p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.no-matches .btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.no-matches .btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Scrollbar Styling for Webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Final Media Query Adjustments */
@media (max-width: 480px) {
    .modal-content {
        margin: 2% auto;
        padding: 20px;
        max-height: 95vh;
    }
    
    .param-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-checkboxes {
        grid-template-columns: 1fr;
        max-height: 150px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .result-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .model-details {
        grid-template-columns: 1fr;
    }
    
    .recent-prediction {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

.dropdown-arrow {
    font-size: 9px;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.team-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 20px 0;
}

.team-info {
    text-align: center;
    flex: 1;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.team-id {
    font-size: 12px;
    color: #888;
    opacity: 0.7;
}

.team-input-group input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
    border-color: #ddd;
}

.team-selection {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.team-input-group {
    flex: 1;
}

.team-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.team-input-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vs-text {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    margin-top: 20px;
}

.profile-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    width: 260px;
    background: #242c38;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.profile-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Header */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078ff 0%, #00c6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.premium {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.status-badge.free {
    background: rgba(108, 117, 125, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Dropdown Items */
.dropdown-items {
    padding: 6px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(3px);
}

.item-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.item-text {
    flex: 1;
    font-weight: 500;
}

.item-badge {
    background: #0078ff;
    color: #fff;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Special Item Styles */
.upgrade-item {
    background: rgba(0, 120, 255, 0.1);
    border: 1px solid rgba(0, 120, 255, 0.3);
}

.upgrade-item:hover {
    background: rgba(0, 120, 255, 0.2);
    border-color: rgba(0, 120, 255, 0.5);
}

.logout-item:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 14px;
}

/* Footer */
.widgets_wrapper {
    padding: 70px 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #0078ff;
}

.footer-column p {
    color: #aaa;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #0078ff;
}

.social-icons img {
    width: 20px;
    height: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #0078ff;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #aaa;
}

.contact-info li img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.newsletter h4 {
    margin-top: 30px;
}

.newsletter form {
    display: flex;
}

.newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter button {
    background-color: #0078ff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #005bb9;
}

.copyright {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
}

.copyright p {
    color: #aaa;
    margin-bottom: 0;
}

/* ========== DASHBOARD SPECIFIC STYLES ========== */

/* Dashboard Header */
.dashboard-header {
    background: rgba(42, 42, 72, 0.9);
    padding: 25px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    margin-bottom: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Date Controls */
.date-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(20, 20, 40, 0.95);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 10px rgba(0, 0, 0, 0.2);
}

.date-controls label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

#date-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

#date-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* League Category Filters */
.league-category-filters {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.league-category-filters h3 {
    color: #fff;
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Enhanced Category Buttons with Better Colors */
.category-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #e8eaed;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.category-btn.active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.top-leagues-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    border-color: #ffd700;
    color: #333;
    font-weight: 600;
}

.international-btn.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
}

.mens-national-btn.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
    color: white;
}

.womens-national-btn.active {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    border-color: #e91e63;
    color: white;
}

.womens-club-btn.active {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    border-color: #9c27b0;
    color: white;
}

.rest-world-btn.active {
    background: linear-gradient(135deg, #6c757d, #495057);
    border-color: #6c757d;
    color: white;
}

/* Loading Indicator */
#loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Leagues Container - WIDER */
#leagues-container {
    padding: 30px 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 50vh;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* League Section */
.league-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    margin-bottom: 35px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.league-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    padding: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.league-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.league-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    border-radius: 2px;
}

.team-logo-fallback {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
    margin-right: 8px;
}

.league-icon img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.league-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.league-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.league-train-btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.league-train-btn:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Matches List */
.matches-list {
    padding: 0;
    width: 100%;
}

/* ========== ENHANCED MATCH ROWS - IMPROVED COLORS ========== */

/* Enhanced Match Row - Better Color Scheme */
.enhanced-match-row {
    display: grid;
    grid-template-columns: 80px 3fr 180px 150px 120px 200px 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    min-height: 70px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.enhanced-match-row:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #4CAF50;
    transform: translateX(2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.enhanced-match-row.live-match {
    border-left-color: #FF6B35;
    background: rgba(255, 107, 53, 0.15);
    animation: livePulse 2s infinite;
    border-color: rgba(255, 107, 53, 0.3);
}

/* Fallback for regular match-row class */
.match-row:not(.enhanced-match-row) {
    display: grid;
    grid-template-columns: 80px 3fr 180px 150px 120px 200px 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    min-height: 70px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-row:not(.enhanced-match-row):hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #4CAF50;
    transform: translateX(2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

@keyframes livePulse {
    0%, 100% { background: rgba(255, 107, 53, 0.15); }
    50% { background: rgba(255, 107, 53, 0.25); }
}

/* Match Time - Enhanced */
.match-time {
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 5px;
    border-radius: 6px;
    min-width: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Match Teams - Wider */
.match-teams {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.team.home {
    justify-content: flex-start;
}

.team.away {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.team span {
    font-size: 14px;
    font-weight: 500;
    color: #FFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.team img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vs {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    flex-shrink: 0;
}

/* Enhanced Match Prediction Styles with Better Colors */
.match-prediction {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
    max-width: 180px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.prediction-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 2px;
}

.prediction-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prediction-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.prediction-outcome {
    font-size: 13px;
    font-weight: 600;
    color: #FFF;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(76, 175, 80, 0.25);
    border: 1px solid rgba(76, 175, 80, 0.5);
    white-space: nowrap;
}

.prediction-result.home-win .prediction-outcome {
    background: rgba(33, 150, 243, 0.25);
    border-color: rgba(33, 150, 243, 0.5);
    color: #42A5F5;
}

.prediction-result.away-win .prediction-outcome {
    background: rgba(255, 152, 0, 0.25);
    border-color: rgba(255, 152, 0, 0.5);
    color: #FFB74D;
}

.prediction-result.draw .prediction-outcome {
    background: rgba(158, 158, 158, 0.25);
    border-color: rgba(158, 158, 158, 0.5);
    color: #BDBDBD;
}

/* Enhanced Prediction Confidence */
.prediction-confidence {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 700;
    background: rgba(76, 175, 80, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.prediction-status {
    font-size: 12px;
    align-self: flex-start;
}

.prediction-status.correct {
    color: #4CAF50;
}

.prediction-status.incorrect {
    color: #F44336;
}

.prediction-status.pending {
    color: rgba(255, 255, 255, 0.6);
}

.no-prediction, .prediction-loading, .prediction-unavailable {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.prediction-loading .prediction-text.loading {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.btn-mini {
    padding: 2px 6px;
    font-size: 9px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mini:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.btn-mini:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-mini.generate-prediction {
    font-size: 11px;
    padding: 6px 10px;
    background: rgba(76, 175, 80, 0.25);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mini.generate-prediction:hover {
    background: rgba(76, 175, 80, 0.35);
    transform: scale(1.05);
}

/* Match Score - Enhanced */
.match-score {
    text-align: center;
    min-width: 120px;
}

.live-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #FFF;
}

.home-score, .away-score {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 24px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.score-separator {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.no-score .vs-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Match Status - Enhanced */
match-status {
    position: relative !important;
    z-index: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1e2a38 0%, #2d3748 100%) !important;
    border: 1px solid #4a5568 !important;
    border-radius: 8px;
    overflow: hidden;
    display: block !important;
    clear: both !important;
    float: none !important;
}

/* Remove any absolute/fixed positioning that causes overlap */
.match-status,
.match-status * {
    position: static !important;
}

.match-status {
    position: relative !important;
}

/* Ensure proper stacking order */
.match-status:nth-child(n) {
    margin-top: 0;
    margin-bottom: 10px;
}

/* If containers are in a flex/grid layout */
.match-status {
    flex-shrink: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Force vertical layout */
.match-status-container,
.matches-container,
.predictions-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.status-info {
    background: transparent !important;
    color: #ffffff !important;
    padding: 12px 15px;
    position: relative;
    z-index: 2;
}

.status-text {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 14px;
    display: block;
}
.minute-text {
    font-size: 12px;
    font-weight: 600;
    color: #FFF;
}

.status-info.live {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1)) !important;
    border-left: 4px solid #22c55e;
}
.status-info.live .status-text {
    color: #4ade80 !important;
}


.status-info.live {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1)) !important;
    border-left: 4px solid #22c55e;
}

.status-info.live .status-text,
.status-info.live .minute-text {
    color: #FF6B35 !important;
    animation: statusPulse 1s infinite alternate;
}

@keyframes statusPulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.status-info.finished {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1)) !important;
    border-left: 4px solid #4CAF50;
}
.status-info.finished .status-text {
    color: #66BB6A !important;
}

.status-info.not-started {
    background: linear-gradient(135deg, rgba(96, 125, 139, 0.2), rgba(96, 125, 139, 0.1)) !important;
    border-left: 4px solid #607D8B;
}

.status-info.not-started .status-text {
    color: #90A4AE !important;
}
.status-info.half-time {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1)) !important;
    border-left: 4px solid #FFC107;
}

.status-info.half-time .status-text {
    color: #FFD54F !important;
}



.live-match {
    animation: livePulse 1s ease-in-out;
    border-left: 3px solid #dc3545;
}

/* Enhanced Match Odds with Better Colors */
.match-odds {
    display: flex;
    gap: 8px;
    justify-content: center;
    min-width: 180px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.odds-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.odds-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.odds-value {
    font-size: 12px;
    font-weight: 600;
    color: #FFF;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.odds-value:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.no-odds span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.odds-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-style: italic;
}

/* Enhanced Match Actions with Better Button Colors */
.match-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 150px;
    width: 100%;
}

.match-actions .btn {
    font-size: 11px;
    padding: 6px 10px;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.season-stats-btn {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.season-stats-btn:hover {
    background: linear-gradient(45deg, #43A047, #5FBF65);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.match-stats-btn {
    background: linear-gradient(45deg, #2196F3, #42A5F5);
    color: white;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.match-stats-btn:hover {
    background: linear-gradient(45deg, #1E88E5, #3F9AE0);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.h2h-btn {
    background: linear-gradient(45deg, #9C27B0, #BA68C8);
    color: white;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.h2h-btn:hover {
    background: linear-gradient(45deg, #8E24AA, #AB47BC);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
}

.predict-match-btn {
    background: linear-gradient(45deg, #FF9800, #FFB74D);
    color: white;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.predict-match-btn:hover {
    background: linear-gradient(45deg, #F57C00, #FFB04C);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.no-stats {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 11px;
    text-align: center;
    padding: 4px;
}

/* Additional Prediction States */
.no-prediction, .prediction-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
}

.prediction-error {
    color: #f44336;
}

.retry-prediction {
    background: rgba(255, 193, 7, 0.2);
    border-color: #FFC107;
}

/* Responsive Design for Enhanced Layout */
@media (max-width: 1400px) {
    .enhanced-match-row,
    .match-row:not(.enhanced-match-row) {
        grid-template-columns: 70px 2.5fr 160px 130px 100px 170px 1fr;
        gap: 15px;
    }
    
    #leagues-container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .enhanced-match-row,
    .match-row:not(.enhanced-match-row) {
        grid-template-columns: 70px 2fr 140px 110px 90px 150px auto;
        gap: 12px;
        padding: 12px 20px;
    }
    
    .match-prediction {
        min-width: 130px;
        max-width: 140px;
    }
    
    .match-odds {
        min-width: 140px;
    }
    
    .category-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .enhanced-match-row,
    .match-row:not(.enhanced-match-row) {
        grid-template-columns: 50px 1fr 130px 80px 120px;
        gap: 10px;
    }
    
    .odds-group {
        min-width: 40px;
    }
    
    .odds-value {
        font-size: 12px;
        padding: 3px 6px;
    }
}

@media (max-width: 900px) {
    .enhanced-match-row,
    .match-row:not(.enhanced-match-row) {
        grid-template-columns: 60px 1fr 120px 90px 80px 130px;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .match-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .match-actions .btn {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    #Content {
        margin-top: 70px;
        padding: 20px 0;
    }
    
    .dashboard-page #Content {
        min-height: auto;
        padding: 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 36px;
        line-height: 46px;
    }
    
    h2 {
        font-size: 30px;
        line-height: 40px;
    }
    
    #menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .dashboard-header {
        padding: 20px 15px;
    }
    
    .dashboard-header h1 {
        font-size: 1.8rem;
    }
    
    .date-controls {
        flex-direction: column;
        gap: 10px;
        padding: 20px 15px;
    }
    
    .category-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .category-btn {
        padding: 12px 16px;
        text-align: center;
        font-size: 13px;
    }
    
    .enhanced-match-row,
    .match-row:not(.enhanced-match-row) {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    .match-teams {
        justify-content: center;
        order: 1;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .team.away {
        flex-direction: row;
    }
    
    .match-prediction {
        align-self: center;
        max-width: none;
        order: 2;
    }
    
    .match-score {
        order: 3;
    }
    
    .match-status {
        order: 4;
    }
    
    .match-odds {
        order: 5;
        justify-content: center;
    }
    
    .match-actions {
        order: 6;
        justify-content: center;
        flex-direction: row;
        margin-top: 10px;
        gap: 8px;
        max-width: none;
    }
    
    .match-actions .season-stats-btn,
    .match-actions .match-stats-btn,
    .match-actions .h2h-btn,
    .match-actions .predict-match-btn {
        width: auto;
        max-width: none;
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
    }
    
    .leagues-container {
        padding: 20px 10px 40px;
    }
    
    .league-header {
        padding: 20px 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .league-header-left {
        justify-content: center;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .enhanced-match-row,
    .match-row:not(.enhanced-match-row) {
        padding: 15px;
    }
    
    .odds-group {
        min-width: 35px;
    }
    
    .odds-label {
        font-size: 10px;
    }
    
    .odds-value {
        font-size: 11px;
        padding: 2px 5px;
    }
}

@media (max-width: 480px) {
    .league-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .league-header-left {
        justify-content: center;
    }
    
    .match-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .match-actions .season-stats-btn,
    .match-actions .match-stats-btn,
    .match-actions .h2h-btn,
    .match-actions .predict-match-btn {
        width: 100%;
        padding: 10px;
        font-size: 12px;
        flex: none;
    }
    
    .match-odds {
        gap: 6px;
    }
    
    .odds-group {
        min-width: 30px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #2c3543 0%, #1e2832 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 1200px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* popup-animations.css or add to your existing CSS */

.modal, .popup {
    animation: fadeIn 0.2s ease-out;
}

.modal.closing, .popup.closing {
    animation: fadeOut 0.2s ease-out;
}

.modal.hidden, .popup.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
.close-modal:hover {
    color: #fff;
}

.modal h2 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

/* Additional Hero Section Styles */
#hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    color: #222;
    margin-bottom: 20px;
}

.hero-content p {
    color: #666;
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

/* Features Section */
#features {
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 60px;
    height: 60px;
}

.feature-card h3 {
    color: #222;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
}

/* Pricing Section */
#pricing {
    background-color: #f5f7fa;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.pricing-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.03);
}

.card-header {
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
}

.premium .card-header {
    background-color: #0078ff;
    color: #fff;
}

.price {
    font-size: 42px;
    font-weight: 700;
    margin-top: 15px;
}

.price span {
    font-size: 18px;
    font-weight: 400;
}

.card-content {
    padding: 30px;
}

.card-content ul {
    margin-bottom: 30px;
}

.card-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.card-content ul li:before {
    content: 'CHECK';
    position: absolute;
    left: 0;
    color: #0078ff;
}

.card-content ul li.not-included {
    color: #999;
}

.card-content ul li.not-included:before {
    content: 'X';
    color: #999;
}

.card-content .btn {
    width: 100%;
}

/* Testimonials Section */
#testimonials {
    background-color: #fff;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
}

.testimonial-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    min-width: 350px;
    flex: 1;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
}

/* ========== MATCH INSIGHTS MODAL STYLES ========== */

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
}

.modal-tabs .tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
    bottom: -2px;
}

.modal-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.modal-tabs .tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom-color: #667eea;
    color: #fff;
    box-shadow: 0 -2px 10px rgba(102, 126, 234, 0.3);
}

/* Stats Filter Buttons */
.stats-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.stats-filter-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
    color: #00ffff;
    transform: translateY(-2px);
}

.stats-filter-btn.active {
    background: linear-gradient(135deg, #00ffff 0%, #0088ff 100%);
    border-color: #00ffff;
    color: #0a0e27;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

/* Match Teams Header (corrected class name) */
.match-teams-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-teams-header .team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.match-teams-header .team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.match-teams-header .team-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
}

.match-teams-header .vs {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 30px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Match Header with Team Logos */
.match-header-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.team-header img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.team-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
}

.vs-divider {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 30px;
}

/* Statistics Comparison Grid - FIXED for actual JS structure */
.match-stats-comparison {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.stat-comparison-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
}

.stat-home,
.stat-away {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-home .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #42A5F5;
    text-align: center;
}

.stat-away .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #FFB74D;
    text-align: center;
}

.stat-bars-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-bar-horizontal {
    display: flex;
    height: 32px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.stat-fill-left {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #1E88E5 0%, #42A5F5 100%);
}

.stat-fill-right {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #FFB74D 0%, #FF9800 100%);
}

.stat-fill-left .bar-label,
.stat-fill-right .bar-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Legacy stat-bar styles (kept for backward compatibility) */
.stat-bar {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-width: 100px;
    max-width: 200px;
}

.stat-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 12px;
}

.stat-fill.home {
    background: linear-gradient(90deg, #42A5F5 0%, #1E88E5 100%);
    float: right;
}

.stat-fill.away {
    background: linear-gradient(90deg, #FFB74D 0%, #FF9800 100%);
    float: left;
}

/* Player Cards Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.team-players {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-players h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.player-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.player-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #667eea;
    transform: translateX(3px);
}

.player-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.player-position {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.player-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.player-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 12px;
}

.player-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.player-stat-value {
    color: #fff;
    font-weight: 700;
}

/* Recommendations Panel */
.recommendations-panel {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.recommendations-panel h4 {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.recommendation-item {
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.recommendation-item.high {
    border-left-color: #22c55e;
}

.recommendation-item.medium {
    border-left-color: #f59e0b;
}

.recommendation-item.low {
    border-left-color: #6b7280;
}

.recommendation-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rec-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rec-badge-inline {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rec-badge-inline.high {
    background: #22c55e;
    color: white;
}

.rec-badge-inline.medium {
    background: #f59e0b;
    color: white;
}

.rec-badge-inline.low {
    background: #6b7280;
    color: white;
}

.rec-confidence-inline {
    font-size: 14px;
    font-weight: 700;
    color: #22c55e;
}

.rec-player-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.rec-team-name {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.rec-bet-type {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.rec-bet-detail {
    font-size: 15px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 8px;
}

.rec-stat-info {
    font-size: 13px;
    color: #d1d5db;
    margin-bottom: 8px;
}

.rec-stat-info strong {
    color: #fff;
}

.rec-reasoning-text {
    font-size: 12px;
    font-style: italic;
    color: #9ca3af;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

/* Betting Tips Section */
.betting-tips {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.tip-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-left-width: 6px;
    transform: translateX(3px);
}

.tip-card.warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.05) 100%);
    border-color: rgba(255, 152, 0, 0.3);
    border-left-color: #FF9800;
}

.tip-card.info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.05) 100%);
    border-color: rgba(33, 150, 243, 0.3);
    border-left-color: #2196F3;
}

/* Prediction Tab Content */
.prediction-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.prediction-summary h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.prediction-probabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.probability-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.probability-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.probability-card.winning {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-color: #4CAF50;
}

.probability-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.probability-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* Loading States */
.loading-stats,
.loading-players {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-tabs .tab-btn {
        flex: 1;
        min-width: 100px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .match-teams-header {
        flex-direction: column;
        gap: 20px;
    }

    .match-teams-header .vs {
        transform: rotate(90deg);
        padding: 20px 0;
    }

    .match-teams-header .team-logo {
        width: 50px;
        height: 50px;
    }

    .players-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-comparison-row {
        grid-template-columns: 70px 1fr 70px;
        gap: 8px;
        padding: 10px;
    }

    .stat-home .stat-value,
    .stat-away .stat-value {
        font-size: 14px;
    }

    .stat-bars-container {
        gap: 2px;
    }

    .stat-bar-horizontal {
        height: 24px;
    }

    .stat-fill-left .bar-label,
    .stat-fill-right .bar-label {
        font-size: 9px;
    }

    .stat-label {
        font-size: 10px;
        padding: 2px 4px;
    }

    /* Legacy styles */
    .stat-bar {
        max-width: 100%;
    }

    .prediction-probabilities {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   CATEGORY SECTIONS - COLLAPSIBLE DROPDOWNS
   ======================================== */

.category-section {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.category-section:hover {
    border-color: rgba(0, 120, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 120, 255, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: linear-gradient(135deg, rgba(0, 120, 255, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
    cursor: pointer;
    border-bottom: 2px solid rgba(0, 120, 255, 0.2);
    transition: all 0.3s ease;
}

.category-header:hover {
    background: linear-gradient(135deg, rgba(0, 120, 255, 0.25) 0%, rgba(156, 39, 176, 0.25) 100%);
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.category-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.collapse-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.category-section.collapsed .collapse-arrow {
    transform: rotate(-90deg);
}

.category-content {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.category-content .league-section {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-content .league-section:last-child {
    margin-bottom: 0;
}

.category-content .league-header h3 {
    font-size: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.category-content .league-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile responsive for categories */
@media (max-width: 768px) {
    .category-header {
        padding: 15px 18px;
    }

    .category-title {
        font-size: 18px;
    }

    .category-icon {
        font-size: 24px;
    }

    .match-count {
        font-size: 12px;
    }
}
