* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #ff0000;
    min-height: 100vh;
    color: #333;
    /* Mobile optimizations */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: none;
    margin: 0;
    padding: 8px;
    width: 100%;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 0;
        max-width: none;
        width: 100%;
    }
    
    body {
        font-size: 14px;
        line-height: 1.4;
    }
}

.header {
    text-align: center;
    margin-bottom: 12px;
    color: white;
    padding: 6px;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 6px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    gap: 3px;
}

/* Mobile header and navigation */
@media (max-width: 768px) {
    .header {
        margin-bottom: 15px;
        padding: 5px;
    }
    
    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .tabs {
        flex-direction: column;
        padding: 8px;
        margin-bottom: 15px;
        gap: 8px;
    }
}

.tab-button {
    background: transparent;
    border: 2px solid #4CAF50;
    color: white;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    min-width: 120px;
    text-align: center;
}

/* Mobile tab buttons */
@media (max-width: 768px) {
    .tab-button {
        padding: 10px 16px;
        margin: 0;
        font-size: 0.9rem;
        min-width: 100px;
        width: 100%;
        letter-spacing: 0.5px;
    }
    
    /* Mobile buttons and forms */
    .btn, button {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
        width: 100%;
        margin-bottom: 10px;
        border-radius: 8px;
        touch-action: manipulation;
    }
    
    /* Mobile form inputs */
    input, select, textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
        width: 100%;
        border-radius: 8px;
        border: 1px solid #ddd;
        box-sizing: border-box;
    }
    
    /* Mobile grid layouts */
    .form-grid, .stats-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile text sizing */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    
    /* Mobile spacing */
    .section {
        margin-bottom: 20px;
        padding: 10px;
    }
    
    /* Mobile competition section */
    .competition-section {
        padding: 10px;
        margin: 10px 0;
    }
    
    .competition-section h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    /* Mobile table responsiveness */
    table {
        font-size: 0.8rem;
        width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    /* Mobile modal fixes */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px auto;
        padding: 15px;
    }
}

.tab-button:hover {
    background: rgba(255,255,255,0.2);
    border: 2px solid #66BB6A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76,175,80,0.4);
}

.tab-button.active {
    background: rgba(255,255,255,0.3);
    border: 2px solid #81C784;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76,175,80,0.5);
}

.tab-content {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: #333;
    font-size: 1.8rem;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

.hidden {
    display: none !important;
}

/* Form Styles */
.training-form, .match-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Items List */
.items-list {
    display: grid;
    gap: 15px;
}

.item-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left-color: #764ba2;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-date {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.item-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-aanwezig {
    background: #d4edda;
    color: #155724;
}

.status-afwezig {
    background: #f8d7da;
    color: #721c24;
}

.status-thuis {
    background: #d1ecf1;
    color: #0c5460;
}

.status-uit {
    background: #fff3cd;
    color: #856404;
}

.item-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.item-notes {
    color: #666;
    font-style: italic;
    margin-top: 10px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Session Management Styles */
.session-management {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.management-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.tab-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.session-list {
    max-height: 400px;
    overflow-y: auto;
}

.session-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.session-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.session-info {
    flex: 1;
}

.session-date {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.session-description {
    color: #6c757d;
    font-size: 14px;
}

.session-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #28a745;
    color: white;
}

.edit-btn:hover {
    background: #218838;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

.save-btn {
    background: #007bff;
    color: white;
}

.save-btn:hover {
    background: #0056b3;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #545b62;
}

/* Season Statistics Styles */
.season-stats {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.summary-card .value {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.stats-table-container {
    overflow-x: auto;
    margin-top: 25px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.stats-table tr:hover {
    background: #f8f9fa;
}

.rank-badge {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
}

.rank-badge.gold {
    background: #ffd700;
    color: #333;
}

.rank-badge.silver {
    background: #c0c0c0;
    color: #333;
}

.rank-badge.bronze {
    background: #cd7f32;
    color: white;
}

.absence-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 11px;
}

.absence-badge.excellent {
    background: #d4edda;
    color: #155724;
}

.absence-badge.good {
    background: #fff3cd;
    color: #856404;
}

.absence-badge.poor {
    background: #f8d7da;
    color: #721c24;
}

/* Modal improvements for wider layout */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 85vh;
    overflow-y: auto;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.player-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.player-row:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.player-info {
    display: flex;
    align-items: center;
}

.player-name {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.field-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.field-group label {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Player distance input styling with blue border */
.modal-content .player-distance,
input.player-distance {
    width: 80px;
    padding: 6px 8px;
    border: 2px solid #007bff !important;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    text-align: center;
}

.modal-content .player-distance:focus,
input.player-distance:focus {
    outline: none;
    border-color: #0056b3 !important;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.player-participation {
    width: 110px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.modal-form h3 {
    color: #495057;
    margin: 25px 0 15px 0;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

/* Analytics Styles */
.analytics-upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.upload-card {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-card:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-card h3 {
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.upload-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-input {
    display: none;
}

.data-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-section h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.analytics-table th,
.analytics-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.analytics-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.analytics-table tbody tr:hover {
    background: #f8f9fa;
}

.analytics-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.rank-cell {
    font-weight: bold;
    font-size: 1.1rem;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }
.rank-other { color: #666; }

.player-name {
    font-weight: 600;
    color: #333;
}

.player-you {
    background: linear-gradient(135deg, #667eea20, #764ba220) !important;
    border-left: 4px solid #667eea;
}

.distance-highlight {
    font-weight: bold;
    color: #667eea;
    font-size: 1.05rem;
}

.position-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.participation-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.participation-badge.volledig {
    background: #d4edda;
    color: #155724;
}

.participation-badge.gedeeltelijk {
    background: #fff3cd;
    color: #856404;
}

.positive-diff {
    color: #28a745;
    font-weight: 600;
}

.negative-diff {
    color: #dc3545;
    font-weight: 600;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.upload-date {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.summary-card h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 50px 20px;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.data-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.data-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

/* 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.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h3 {
    color: #333;
    margin-bottom: 5px;
}

.modal-info {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-info-label {
    font-weight: 600;
    color: #333;
}

.modal-info-value {
    color: #666;
}

.modal-notes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 15px;
}

/* Season Statistics Styling */
.season-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.season-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 15px 12px;
    text-align: center;
}

.season-table th i {
    margin-right: 5px;
    opacity: 0.8;
}

.top-performer {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-left: 4px solid #FFD700;
}

.season-total {
    font-size: 1.1em;
    color: #2c3e50;
}

.avg-distance {
    color: #7f8c8d;
    font-size: 0.9em;
}

.sessions-badge {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.you-badge {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Season Statistics Summary Cards - Professional Layout */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 0;
}

.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-width: 0; /* Allow cards to shrink */
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.summary-card h4 {
    margin: 0 0 12px 0;
    font-size: 0.9em;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.summary-card h4 i {
    font-size: 1.1em;
    color: #667eea;
}

.summary-card .summary-value {
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Special highlighting for key metrics */
.summary-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
    border: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.summary-card.highlight::before {
    background: rgba(255, 255, 255, 0.2);
}

.summary-card.highlight h4 {
    color: rgba(255, 255, 255, 0.9);
}

.summary-card.highlight h4 i {
    color: rgba(255, 255, 255, 0.8);
}

.summary-card.highlight .summary-value {
    color: white;
    -webkit-text-fill-color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stats-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .summary-card {
        padding: 14px;
    }
    
    .summary-card .summary-value {
        font-size: 1.9em;
    }
}

@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .summary-card {
        padding: 12px;
    }
    
    .summary-card .summary-value {
        font-size: 1.6em;
    }
    
    .summary-card h4 {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .stats-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-card .summary-value {
        font-size: 2em;
    }
}

.season-footer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #667eea;
}

.season-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
}

.season-footer i {
    color: #667eea;
    margin-right: 8px;
}

.table-title i {
    margin-right: 8px;
    color: #667eea;
}

.upload-date i {
    margin-right: 5px;
    opacity: 0.7;
}

/* Absentee Percentage Styling */
.absentee-percentage {
    text-align: center;
}

.absentee-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.absentee-badge.absentee-low {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.absentee-badge.absentee-medium {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.absentee-badge.absentee-high {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* Danger Section Styling */
.danger-section {
    border: 2px solid #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(192, 57, 43, 0.05) 100%);
}

.danger-section h3 {
    color: #c0392b;
}

.danger-section p {
    color: #e74c3c;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Improved Result Icons Styling */
.result-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.win-icon {
    color: #27ae60;
    text-shadow: 0 1px 3px rgba(39, 174, 96, 0.3);
}

.loss-icon {
    color: #e74c3c;
    text-shadow: 0 1px 3px rgba(231, 76, 60, 0.3);
}

.draw-icon {
    color: #f39c12;
    text-shadow: 0 1px 3px rgba(243, 156, 18, 0.3);
}

.result-text {
    font-weight: 600;
}

.result-text.result-win {
    color: #27ae60;
}

.result-text.result-loss {
    color: #e74c3c;
}

.result-text.result-draw {
    color: #f39c12;
}

.score-display.score-win {
    color: #27ae60;
    font-weight: 700;
}

.score-display.score-loss {
    color: #e74c3c;
    font-weight: 700;
}

.score-display.score-draw {
    color: #f39c12;
    font-weight: 700;
}

/* Manual Data Entry Modal */
#add-data-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

#add-data-modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.player-data-section {
    margin: 20px 0;
}

.player-data-section h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.player-input-row {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
}

.player-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.player-row-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.btn-remove {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.btn-remove:hover {
    background: #c82333;
}

.player-row-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    align-items: end;
}

.player-name-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.player-name-field label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.player-name-field .position-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.field-group select,
.field-group input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
}

.field-group select:focus,
.field-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    padding: 10px 20px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: none;
        width: 100%;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        justify-content: center;
        margin: 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .item-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-upload-section {
        flex-direction: column;
    }
    
    .upload-card {
        width: 100%;
    }
    
    .analytics-table {
        font-size: 12px;
    }
    
    .analytics-table th,
    .analytics-table td {
        padding: 8px 4px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .player-row-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #add-data-modal .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Match Cards with Club Logos */
.match-card {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile cards */
@media (max-width: 768px) {
    .match-card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.match-date {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.match-location {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team.away-team {
    flex-direction: row-reverse;
    text-align: right;
}

.team-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    overflow: hidden;
}

.team-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.team-division {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-score {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.score-home, .score-away {
    display: inline-block;
    min-width: 30px;
}

.score-separator {
    margin: 0 8px;
    color: #999;
}

.match-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-win {
    color: var(--success-color);
}

.result-loss {
    color: var(--danger-color);
}

.result-draw {
    color: #ffc107;
}

.match-notes {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* Responsive Match Cards */
@media (max-width: 768px) {
    .match-teams {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .team.away-team {
        flex-direction: row;
        text-align: left;
    }
    
    .team-logo {
        width: 35px;
        height: 35px;
    }
    
    .team-logo img {
        width: 28px;
        height: 28px;
    }
    
    .score-display {
        font-size: 20px;
    }
    
    .match-card {
        padding: 15px;
    }
}

/* Rating Stars */
.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-number {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* Score Display */
.score-display {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.score-win {
    color: #28a745;
}

.score-loss {
    color: #dc3545;
}

.score-draw {
    color: #ffc107;
}
