        body { font-family: Arial, sans-serif; margin: 0; background-color: #f5f5f5; }
        .container { background: white; padding: 20px; min-height: 100vh; }
        .tab-navigation { display: none !important; /* Hidden - using side menu now */ }
        .tab-button { background: none; border: none; padding: 15px 30px; font-size: 1.1rem; font-weight: 600; color: #7f8c8d; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
        .tab-button:hover { color: #2c3e50; background-color: #f8f9fa; }
        .tab-button.active { color: #3498db; border-bottom-color: #3498db; background-color: white; }
        .tab-content { display: none; }
        .tab-content.active { display: block; }
        .btn { padding: 10px 20px; margin: 5px; background: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
        .btn:hover { background: #2980b9; }
        .btn-secondary { background: #95a5a6; }
        .btn-secondary:hover { background: #7f8c8d; }
        .btn-danger { background: #e74c3c; }
        .btn-danger:hover { background: #c0392b; }
        .btn-warning { background: #f39c12; }
        .btn-warning:hover { background: #e67e22; }
        .btn-info { background: #17a2b8; }
        .btn-info:hover { background: #138496; }
        .status { margin: 10px 0; padding: 10px; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 4px; }
        .table { width: 100%; border-collapse: collapse; margin-top: 20px; }
        .table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
        .table th { background-color: #f8f9fa; font-weight: 600; }
        .table tr:hover { background-color: #f5f5f5; }
        
        /* Dashboard Styles */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .dashboard-card {
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        
        .stat-item {
            text-align: center;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        
        .stat-number {
            display: block;
            font-size: 2rem;
            font-weight: bold;
            color: #007bff;
        }
        
        .stat-label {
            display: block;
            font-size: 0.9rem;
            color: #6c757d;
            margin-top: 5px;
        }
        
        .activity-list {
            max-height: 300px;
            overflow-y: auto;
        }
        
        .activity-item {
            padding: 12px 0;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .activity-item:last-child {
            border-bottom: none;
        }
        
        .activity-match {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .activity-match .team {
            font-weight: 500;
            color: #333;
        }
        
        .activity-match .score {
            font-weight: bold;
            color: #007bff;
            padding: 2px 8px;
            background: #f0f8ff;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        .activity-date {
            font-size: 0.85rem;
            color: #6c757d;
        }
        
        .no-data, .error {
            text-align: center;
            color: #6c757d;
            font-style: italic;
            padding: 20px;
        }
        
        .error {
            color: #dc3545;
        }
        
        .leaders-list {
            max-height: 300px;
            overflow-y: auto;
        }
        
        .leader-item {
            display: flex;
            align-items: flex-start;
            padding: 12px 0;
            border-bottom: 1px solid #eee;
        }
        
        .leader-item:last-child {
            border-bottom: none;
        }
        
        .leader-rank {
            font-size: 1.2rem;
            margin-right: 12px;
            min-width: 30px;
            text-align: center;
            padding-top: 2px;
        }
        
        .leader-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .leader-main {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .leader-name {
            font-weight: 500;
            color: #333;
            font-size: 0.95rem;
        }
        
        .leader-points {
            font-weight: bold;
            color: #007bff;
            background: #f0f8ff;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.85rem;
        }
        
        .leader-team {
            font-size: 0.85rem;
            color: #6c757d;
            padding-left: 2px;
        }
        
        .leader-team .team-label {
            font-weight: 500;
            color: #495057;
        }
        
        .leader-team .team-name {
            color: #007bff;
            font-weight: 500;
        }
        
        /* At-risk styling for players with lowest points */
        .leader-item.at-risk {
            background: #fff3cd;
            border-left: 4px solid #ffc107;
            padding-left: 8px;
            margin-left: -8px;
        }
        
        .leader-item.at-risk .leader-name {
            color: #856404;
            font-weight: 600;
        }
        
        .leader-item.at-risk .leader-points {
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffc107;
        }
        
        .leaders-footer {
            text-align: center;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #eee;
            color: #6c757d;
        }
        
        /* Profile Styles */
        .profile-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .profile-card {
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .profile-info {
            margin-top: 15px;
        }
        
        .info-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .info-item:last-child {
            border-bottom: none;
        }
        
        .info-item label {
            font-weight: 600;
            color: #495057;
        }
        
        .profile-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 15px;
        }
        
        /* Standings table specific styling */
        #standings-table th:last-child, #standings-table td:last-child { 
            width: 120px; 
            min-width: 120px; 
            max-width: 120px; 
        }
        .empty-state { text-align: center; color: #7f8c8d; font-style: italic; padding: 40px; }
        .action-btn { padding: 5px 10px; margin: 2px; background: #3498db; color: white; border: none; border-radius: 3px; cursor: pointer; font-size: 12px; }
        .action-btn:hover { background: #2980b9; }
        .action-btn.danger { background: #e74c3c; }
        .action-btn.danger:hover { background: #c0392b; }
        
        /* Fixture styling */
        .fixtures-list { margin-top: 20px; }
        .fixture-item { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            padding: 15px; 
            margin: 10px 0; 
            background: #f8f9fa; 
            border: 1px solid #dee2e6; 
            border-radius: 8px; 
        }
        .fixture-teams { font-weight: 600; font-size: 1.1rem; }
        .vs { color: #6c757d; font-weight: 400; }
        
        /* Fixture Manager styling */
        .fixture-manager-content { margin-top: 20px; }
        .unallocated-section, .allocated-section { margin-bottom: 30px; }
        .unallocated-fixtures, .gameweek-fixtures { margin-top: 15px; }
        
        /* Unallocated fixtures header and filter */
        .unallocated-header { 
            margin-bottom: 15px; 
        }
        
        /* Team logo filter buttons */
        .team-filter-buttons {
            margin-bottom: 20px;
        }
        .filter-label {
            font-weight: 500;
            color: #495057;
            margin-bottom: 10px;
            font-size: 14px;
        }
        .team-logos-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            padding: 8px; /* Add padding to prevent badge clipping */
        }
        .team-logo-button {
            width: 40px;
            height: 40px;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            background: white;
            position: relative;
            overflow: visible; /* Changed from hidden to visible for badges */
        }
        .team-logo-button:hover {
            border-color: #007bff;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
        }
        .team-logo-button.active {
            border-color: #007bff;
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
            transform: translateY(-1px) scale(1.05);
        }
        .team-logo-button.active .team-logo {
            filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
        }
        .team-logo {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }
        .all-teams-text {
            font-size: 10px;
            font-weight: bold;
            color: #495057;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        .team-logo-button.active .all-teams-text {
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        .fixture-count-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            background: #dc3545;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 10px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            z-index: 10;
        }
        .team-logo-button.active .fixture-count-badge {
            background: #28a745;
        }
        
        /* Responsive design for team logos */
        @media (max-width: 768px) {
            .team-logos-grid {
                gap: 6px;
                padding: 6px;
            }
            .team-logo-button {
                width: 36px;
                height: 36px;
            }
            .team-logo {
                width: 24px;
                height: 24px;
            }
            .all-teams-text {
                font-size: 9px;
            }
            .fixture-count-badge {
                width: 16px;
                height: 16px;
                font-size: 9px;
                top: -5px;
                right: -5px;
            }
        }
        
        /* Standings coloring */
        .champions-league { background-color: #e8f5e8 !important; border-left: 4px solid #28a745; }
        .europa-league { background-color: #fff3cd !important; border-left: 4px solid #ffc107; }
        .conference-league { background-color: #d1ecf1 !important; border-left: 4px solid #17a2b8; }
        .relegation { background-color: #f8d7da !important; border-left: 4px solid #dc3545; }
        
        /* Team icons in fixtures */
        .team-icon { width: 20px; height: 20px; margin-right: 5px; vertical-align: middle; }
        
        /* Scrollable unallocated pool */
        .unallocated-pool { 
            max-height: 300px; 
            overflow-y: auto; 
            border: 1px solid #dee2e6; 
            border-radius: 4px; 
            padding: 10px; 
        }
        
        /* Gameweek management */
        .gameweek-manager { margin-top: 20px; }
        .gameweek-header { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            margin-bottom: 10px; 
        }
        .fixture-chip { 
            background: #007bff; 
            color: white; 
            padding: 4px 8px; 
            border-radius: 12px; 
            font-size: 12px; 
            display: flex; 
            align-items: center; 
            gap: 5px; 
        }
        .fixture-chip .remove { cursor: pointer; margin-left: 5px; }
        .month-header { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            padding: 20px 25px; 
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            color: white;
            cursor: pointer; 
            transition: all 0.3s ease;
        }
        .month-header:hover {
            background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
            transform: translateY(-1px);
        }
        .month-header h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
        .toggle-icon { font-size: 12px; transition: transform 0.2s; }
        .fixture-count { 
            background: #007bff; 
            color: white; 
            padding: 2px 8px; 
            border-radius: 12px; 
            font-size: 12px; 
        }
        .month-content { 
            margin-top: 10px; 
            padding-left: 20px; 
        }
        .month-content.collapsed { display: none; }
        .gameweek-header { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            padding: 8px 12px; 
            background: #e9ecef; 
            cursor: pointer; 
            transition: background-color 0.2s;
        }
        .gameweek-header:hover { background: #dee2e6; }
        .gameweek-header h4 { 
            margin: 0; 
            display: flex; 
            align-items: center; 
            gap: 8px; 
            font-size: 14px; 
        }
        .gameweek-info { 
            display: flex; 
            flex-direction: column; 
            align-items: flex-end; 
            gap: 2px; 
        }
        .gameweek-content { 
            padding: 20px; 
            background: #ffffff;
        }
        .gameweek-content.collapsed { display: none; }
        
        /* Enhanced fixture items - Premium Design */
        .fixtures-container { 
            margin-top: 20px; 
            background: #f8f9fa;
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        }
        
        .fixtures-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 25px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 16px;
            color: white;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }
        
        .fixtures-header h3 {
            margin: 0;
            font-size: 1.6rem;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .fixtures-stats {
            display: flex;
            gap: 25px;
            font-size: 0.95rem;
            opacity: 0.95;
            font-weight: 500;
        }
        
        .fixture-item { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            padding: 20px 24px; 
            margin: 12px 0; 
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border: 1px solid #e9ecef; 
            border-radius: 12px; 
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            position: relative;
            overflow: hidden;
            min-height: 100px;
            flex-wrap: wrap;
            gap: 16px;
            backdrop-filter: blur(10px);
        }
        
        .fixture-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        }
        
        .fixture-item:hover { 
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }
        
        .fixture-teams { 
            display: flex; 
            align-items: center; 
            gap: 20px; 
            font-weight: 700; 
            font-size: 1.1rem;
            color: #2c3e50;
            flex: 1;
            min-width: 0;
        }
        
        .fixture-team {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1;
        }
        
        .fixture-team span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 120px;
            font-size: 0.95rem;
            font-weight: 700;
            color: #2c3e50;
            text-align: center;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        .fixture-team-logo {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: contain;
            background: white;
            padding: 4px;
            box-shadow: 0 3px 12px rgba(0,0,0,0.12);
            border: 2px solid #f8f9fa;
            transition: all 0.3s ease;
        }
        
        .fixture-team-logo:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 18px rgba(0,0,0,0.2);
        }
        
        /* Team icon in standings table */
        .team-icon {
            width: 24px;
            height: 24px;
            margin-right: 8px;
            vertical-align: middle;
            border-radius: 4px;
        }
        
        .fixture-vs {
            font-size: 1.1rem;
            font-weight: 600;
            color: #6c757d;
            margin: 0 10px;
            white-space: nowrap;
        }
        
        .fixture-score {
            font-size: 1.3rem;
            font-weight: 700;
            color: #2c3e50;
            margin: 0 15px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
            white-space: nowrap;
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            padding: 10px 16px;
            border-radius: 20px;
            border: 2px solid #2196f3;
            box-shadow: 0 3px 10px rgba(33, 150, 243, 0.25);
            min-width: 80px;
            text-align: center;
        }
        
        .fixture-status {
            position: absolute;
            top: 12px;
            right: 12px;
            padding: 6px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            white-space: nowrap;
            cursor: help;
            z-index: 10;
        }
        
        .fixture-status.scheduled {
            background: #f8f9fa;
            color: #6c757d;
            border: 1px solid #dee2e6;
        }
        
        .fixture-status.completed {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .fixture-status.cancelled {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .fixture-status.postponed {
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffe69c;
        }
        
        .fixture-status:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        /* Edit Fixture Modal Styles */
        .modal {
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background-color: #fefefe;
            margin: auto;
            padding: 0;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            animation: modalSlideIn 0.3s ease;
        }
        
        @keyframes modalSlideIn {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .modal-header {
            padding: 20px 25px;
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            color: white;
            border-radius: 12px 12px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h3 {
            margin: 0;
            font-size: 1.3rem;
            font-weight: 600;
        }
        
        .close {
            color: white;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
        }
        
        .close:hover {
            opacity: 0.7;
        }
        
        .modal-body {
            padding: 25px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #495057;
        }
        
        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }
        
        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
        }
        
        .form-group input[readonly] {
            background-color: #f8f9fa;
            color: #6c757d;
        }
        
        .score-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        
        .modal-footer {
            padding: 20px 25px;
            background-color: #f8f9fa;
            border-radius: 0 0 12px 12px;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }
        
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn-secondary {
            background-color: #6c757d;
            color: white;
        }
        
        .btn-secondary:hover {
            background-color: #5a6268;
        }
        
        .btn-primary {
            background-color: #007bff;
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #0056b3;
        }
        
        .fixture-actions { 
            display: none; 
            gap: 10px; 
            align-items: center;
            flex-shrink: 0;
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.95);
            padding: 8px 12px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            backdrop-filter: blur(10px);
        }
        
        .fixture-item.active .fixture-actions {
            display: flex;
        }
        
        .fixture-item.active {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-color: #007bff;
            box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        }
        
        .fixture-actions button { 
            padding: 10px 14px; 
            border: none; 
            border-radius: 10px; 
            cursor: pointer; 
            font-size: 13px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(0,0,0,0.12);
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Responsive design for smaller screens */
        @media (max-width: 768px) {
            .fixture-item {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
                padding: 18px 20px;
                min-height: 120px;
            }
            
            .fixture-teams {
                justify-content: center;
                gap: 15px;
            }
            
            .fixture-team span {
                max-width: 100px;
                font-size: 0.85rem;
                font-weight: 600;
            }
            
            .fixture-score {
                font-size: 1.2rem;
                padding: 8px 14px;
            }
            
            .fixture-team-logo {
                width: 38px;
                height: 38px;
            }
            
            .fixture-actions {
                gap: 8px;
                position: static;
                transform: none;
                background: rgba(255, 255, 255, 0.9);
                margin-top: 10px;
                padding: 6px 10px;
                border-radius: 6px;
            }
            
            .fixture-actions button {
                padding: 8px 12px;
                font-size: 12px;
                min-width: 40px;
            }
            
            .gameweek-sections {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .modal-content {
                width: 95%;
                margin: 10px;
            }
            
            .score-inputs {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            
            .modal-footer {
                flex-direction: column;
                gap: 10px;
            }
            
            .btn {
                width: 100%;
            }
        }
        
        /* Gameweek info styling */
        .gameweek-info { display: flex; flex-direction: column; gap: 5px; }
        .start-date { font-size: 12px; color: #6c757d; }
        
        /* Compact fixture chips grid */
        .fixture-chips-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
            gap: 8px; 
            margin-top: 10px; 
        }
        .fixture-chip.compact { 
            padding: 8px 12px; 
            font-size: 13px; 
            min-height: auto; 
        }
        .gameweek-number { 
            font-weight: bold; 
            font-size: 14px; 
            margin-bottom: 5px; 
        }
        .gameweek-date { 
            font-size: 11px; 
            color: #6c757d; 
        }
        
        /* Gameweek rectangles in modal */
        .gameweek-rectangles-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
            gap: 10px; 
            margin-top: 10px; 
            max-height: 400px; 
            overflow-y: auto; 
        }
        .gameweek-rectangle { 
            background: #f8f9fa; 
            border: 2px solid #dee2e6; 
            border-radius: 8px; 
            padding: 15px; 
            cursor: pointer; 
            transition: all 0.2s; 
            text-align: center;
        }
        .gameweek-rectangle:hover { 
            background: #e9ecef; 
            border-color: #adb5bd; 
        }
        .gameweek-rectangle.has-date { 
            background: #d4edda; 
            border-color: #c3e6cb; 
        }
        .gameweek-rectangle.selected { 
            background: #007bff; 
            color: white; 
            border-color: #0056b3; 
        }
        .gameweek-rectangle .gameweek-number { 
            font-weight: bold; 
            font-size: 16px; 
            margin-bottom: 8px; 
        }
        .gameweek-rectangle .fixture-count { 
            font-size: 12px; 
            margin-bottom: 4px; 
        }
        .gameweek-rectangle .start-date { 
            font-size: 11px; 
            opacity: 0.8; 
        }
        
        /* Rectangular gameweek items */
        .gameweek-rectangles { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
            gap: 15px; 
            margin-top: 20px; 
        }
        .gameweek-rectangle-item { 
            background: #f8f9fa; 
            border: 1px solid #dee2e6; 
            border-radius: 8px; 
            overflow: hidden; 
            transition: all 0.2s;
        }
        .gameweek-rectangle-item.has-date { 
            background: #d4edda; 
            border-color: #c3e6cb; 
        }
        .gameweek-rectangle-header { 
            background: #e9ecef; 
            padding: 12px 15px; 
            border-bottom: 1px solid #dee2e6; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
        }
        .gameweek-title h4 { 
            margin: 0; 
            font-size: 16px; 
            color: #495057; 
        }
        .gameweek-info { 
            display: flex; 
            flex-direction: column; 
            gap: 4px; 
            margin-top: 4px; 
        }
        .gameweek-title .fixture-count { 
            background: #007bff; 
            color: white; 
            padding: 2px 6px; 
            border-radius: 10px; 
            font-size: 11px; 
            display: inline-block; 
            width: fit-content; 
        }
        .gameweek-date-display { 
            font-size: 12px; 
            color: #6c757d; 
            font-weight: 500; 
        }
        .gameweek-controls { 
            display: flex; 
            align-items: center; 
            gap: 8px; 
        }
        .gameweek-games-list { 
            padding: 10px 15px; 
            min-height: 60px; 
            max-height: 200px; 
            overflow-y: auto; 
        }
        .gameweek-fixture-chip { 
            background: white; 
            border: 1px solid #dee2e6; 
            border-radius: 4px; 
            padding: 6px 10px; 
            margin: 4px 0; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            font-size: 13px; 
        }
        .gameweek-fixture-chip:hover { 
            background: #f8f9fa; 
        }
        .empty-gameweek { 
            color: #6c757d; 
            font-style: italic; 
            text-align: center; 
            padding: 20px; 
        }
        
        /* Enhanced loading states */
        .btn:disabled { opacity: 0.6; cursor: not-allowed; }
        .btn.loading { position: relative; color: transparent; }
        .btn.loading::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border: 2px solid transparent; border-top: 2px solid currentColor; border-radius: 50%; animation: spin 1s linear infinite; }
        
        /* Enhanced form validation */
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
        .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #3498db; box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2); }
        
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
        
        /* Reorder functionality */
        .reorder-players-list { max-height: 400px; overflow-y: auto; }
        .reorder-player-item {
            display: flex;
            align-items: center;
            padding: 12px;
            margin: 8px 0;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            cursor: move;
            transition: all 0.2s ease;
        }
        .reorder-player-item:hover {
            background: #e9ecef;
            border-color: #3498db;
        }
        .reorder-player-number {
            width: 30px;
            height: 30px;
            background: #3498db;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 12px;
        }
        .reorder-player-info {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .reorder-player-name {
            font-weight: 600;
            font-size: 1.1rem;
        }
        .reorder-player-points {
            color: #6c757d;
            font-size: 0.9rem;
        }
        .reorder-player-handle {
            color: #6c757d;
            font-size: 1.2rem;
            cursor: grab;
        }
        .reorder-player-handle:active {
            cursor: grabbing;
        }
        .reorder-info {
            background: #e3f2fd;
            padding: 12px;
            border-radius: 6px;
            margin-bottom: 16px;
            color: #1976d2;
        }
        
        /* No teams available message */
        .no-teams-available {
            text-align: center;
            padding: 40px 20px;
            color: #6c757d;
        }
        .no-teams-available p {
            margin: 10px 0;
            font-size: 1.1rem;
        }
        
        /* Status badges */
        .status-badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            display: inline-block;
        }
        .status-badge.pending { background: #fff3cd; color: #856404; }
        .status-badge.in_progress { background: #d4edda; color: #155724; }
        .status-badge.completed { background: #d1ecf1; color: #0c5460; }
        .status-badge.active { background: #d4edda; color: #155724; }
        .status-badge.inactive { background: #f8d7da; color: #721c24; }
        
        /* Guardian-inspired Fixtures Layout */
        .fixtures-container {
            background: #fff;
            border-radius: 8px;
            padding: 20px;
        }
        
        .fixtures-month-section {
            margin-bottom: 40px;
            border-bottom: 1px solid #e9ecef;
            padding-bottom: 20px;
        }
        
        .fixtures-month-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        
        .fixtures-postponed-tbc-section .fixtures-month-header {
            cursor: default;
        }
        
        .fixtures-past-results-divider {
            margin-top: 32px;
            margin-bottom: 16px;
            padding-top: 24px;
            border-top: 2px solid #dee2e6;
        }
        
        .fixtures-past-results-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #6c757d;
            margin: 0;
        }
        
        .fixtures-month-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding: 12px 16px;
            background: #f8f9fa;
            border-radius: 6px;
            border-left: 4px solid #007bff;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        
        .fixtures-month-header:hover {
            background: #e9ecef;
        }
        
        .fixtures-month-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .fixtures-month-toggle-icon {
            font-size: 0.875rem;
            transition: transform 0.2s ease;
        }
        
        .fixtures-month-toggle-icon.collapsed {
            transform: rotate(-90deg);
        }
        
        .fixtures-month-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #212529;
            margin: 0;
        }
        
        .fixtures-gameweek-section {
            margin-bottom: 25px;
        }
        
        .fixtures-gameweek-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
            padding: 8px 12px;
            background: #f1f3f4;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        
        .fixtures-gameweek-header:hover {
            background: #e5e7eb;
        }
        
        .fixtures-gameweek-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .fixtures-gameweek-toggle-icon {
            font-size: 0.75rem;
            transition: transform 0.2s ease;
        }
        
        .fixtures-gameweek-toggle-icon.collapsed {
            transform: rotate(-90deg);
        }
        
        .fixtures-gameweek-title {
            font-size: 1rem;
            font-weight: 600;
            color: #495057;
            margin: 0;
        }
        
        .fixtures-gameweek-date {
            font-size: 0.875rem;
            color: #6c757d;
        }
        
        .fixtures-month-content {
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .fixtures-month-content.collapsed {
            max-height: 0;
            margin-bottom: 0;
            opacity: 0;
        }
        
        .fixtures-gameweek-content {
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .fixtures-gameweek-content.collapsed {
            max-height: 0;
            margin-bottom: 0;
            opacity: 0;
        }
        
        .fixtures-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 12px;
            margin-bottom: 15px;
        }
        
        .fixture-card {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
            min-height: 80px;
        }
        
        .fixture-card:hover {
            border-color: #007bff;
            box-shadow: 0 2px 8px rgba(0,123,255,0.15);
            transform: translateY(-1px);
        }
        
        .fixture-status-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
        }
        
        .fixture-status-badge.scheduled {
            background: #6c757d;
            color: white;
        }
        
        .fixture-status-badge.completed {
            background: #28a745;
            color: white;
        }
        
        .fixture-status-badge.cancelled {
            background: #dc3545;
            color: white;
        }
        
        .fixture-status-badge.postponed {
            background: #ff9800;
            color: white;
        }
        
        .fixture-status-badge.live {
            background: #ffc107;
            color: #212529;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        .fixture-teams {
            display: flex;
            align-items: center;
            flex: 1;
            gap: 12px;
            min-width: 0; /* Allow flex items to shrink */
        }
        
        .fixture-team {
            display: flex;
            align-items: center;
            gap: 6px;
            flex: 1;
            min-width: 0; /* Allow text to truncate */
        }
        
        .fixture-team.home {
            justify-content: flex-end;
            flex-direction: row;
        }
        
        .fixture-team.away {
            justify-content: flex-start;
            flex-direction: row-reverse;
        }
        
        .fixture-team-logo {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }
        
        .fixture-team-name {
            font-size: 0.875rem;
            font-weight: 500;
            color: #212529;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 120px;
            flex-shrink: 1;
        }
        
        .fixture-score-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 50px;
            max-width: 60px;
            padding: 0 6px;
            flex-shrink: 0;
        }
        
        .fixture-score {
            font-size: 0.875rem;
            font-weight: 600;
            color: #212529;
        }
        
        .fixture-vs {
            font-size: 0.75rem;
            color: #6c757d;
            font-weight: 400;
        }
        
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .fixtures-grid {
                grid-template-columns: 1fr;
            }
            
            .fixture-team-name {
                max-width: 100px;
            }
            
            .fixtures-month-header {
                padding: 10px 12px;
            }
            
            .fixtures-month-title {
                font-size: 1.1rem;
            }
        }
