        :root {
            --primary-color: #4361ee;
            --secondary-color: #3f37c9;
            --accent-color: #4895ef;
            --danger-color: #f72585;
            --success-color: #4cc9f0;
            --warning-color: #f8961e;
            --dark-color: #1a1a2e;
            --light-color: #f8f9fa;
            --gray-color: #6c757d;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Roboto', sans-serif;
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        .app-container {
            display: grid;
            grid-template-columns: 250px 1fr;
            min-height: 100vh;
        }
        
        /* Sidebar Styles */
        .sidebar {
            background-color: var(--dark-color);
            color: white;
            padding: 20px 0;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            position: relative;
            z-index: 10;
        }
        
        .logo {
            display: flex;
            align-items: center;
            padding: 0 20px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 20px;
        }
        
        .logo img {
            width: 40px;
            height: 40px;
            margin-right: 10px;
        }
        
        .logo h1 {
            font-size: 1.2rem;
            font-weight: 700;
        }
        
        .nav-menu {
            list-style: none;
        }
        
        .nav-item {
            margin-bottom: 5px;
        }
        
        .nav-link {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: all 0.3s;
            font-size: 0.95rem;
        }
        
        .nav-link:hover, .nav-link.active {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }
        
        .nav-link i {
            margin-right: 10px;
            font-size: 1.1rem;
            width: 20px;
            text-align: center;
        }
        
        /* Main Content Styles */
        .main-content {
            padding: 20px;
            overflow-y: auto;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .header h2 {
            font-size: 1.8rem;
            color: var(--dark-color);
        }
        
        .user-profile {
            display: flex;
            align-items: center;
        }
        
        .user-profile img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        .user-info h4 {
            font-size: 0.9rem;
            margin-bottom: 2px;
        }
        
        .user-info p {
            font-size: 0.8rem;
            color: var(--gray-color);
        }
        
        /* Card Styles */
        .card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .card-header h3 {
            font-size: 1.2rem;
            color: var(--dark-color);
        }
        
        .card-header .btn {
            padding: 5px 15px;
            font-size: 0.8rem;
        }
        
        /* Button Styles */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 0.95rem;
        }
        
        .btn i {
            margin-right: 8px;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: var(--secondary-color);
        }
        
        .btn-success {
            background-color: var(--success-color);
            color: white;
        }
        
        .btn-danger {
            background-color: var(--danger-color);
            color: white;
        }
        
        .btn-warning {
            background-color: var(--warning-color);
            color: white;
        }
        
        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--gray-color);
            color: var(--gray-color);
        }
        
        .btn-outline:hover {
            background-color: #f0f0f0;
        }
        
        .btn-sm {
            padding: 5px 10px;
            font-size: 0.8rem;
        }
        
        /* Stopwatch Styles */
        .stopwatch-display {
            font-size: 3.5rem;
            font-family: 'Roboto Mono', monospace;
            text-align: center;
            margin: 30px 0;
            color: var(--dark-color);
        }
        
        .controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
        }
        
        /* Form Styles */
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: var(--dark-color);
        }
        
        .form-control {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 0.95rem;
            transition: border 0.3s;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--accent-color);
        }
        
        .form-row {
            display: flex;
            gap: 15px;
        }
        
        .form-row .form-group {
            flex: 1;
        }
        
        /* Table Styles */
        .table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }
        
        .table th, .table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        
        .table th {
            background-color: #f8f9fa;
            font-weight: 600;
            color: var(--dark-color);
        }
        
        .table tr:hover {
            background-color: #f8f9fa;
        }
        
        .badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        
        .badge-primary {
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary-color);
        }
        
        .badge-success {
            background-color: rgba(76, 201, 240, 0.1);
            color: var(--success-color);
        }
        
        .badge-danger {
            background-color: rgba(247, 37, 133, 0.1);
            color: var(--danger-color);
        }
        
        .badge-warning {
            background-color: rgba(248, 150, 30, 0.1);
            color: var(--warning-color);
        }
        
        /* Pitch Styles */
        .pitch-container {
            margin-top: 20px;
        }
        
        .pitch {
            position: relative;
            width: 100%;
            height: 500px;
            background-color: #2e8b57;
            border: 2px solid white;
            border-radius: 10px;
            margin-top: 20px;
            background-image: 
                linear-gradient(transparent 49%, white 49%, white 51%, transparent 51%),
                linear-gradient(90deg, transparent 49%, white 49%, white 51%, transparent 51%),
                radial-gradient(circle at 50% 50%, transparent 69%, white 69%, white 70%, transparent 70%);
            background-size: 100% 100%, 100% 100%, 100% 100%;
            overflow: hidden;
        }
        
        .player {
            position: absolute;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: move;
            user-select: none;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: transform 0.2s;
            z-index: 5;
        }
        
        .player:hover {
            transform: scale(1.1);
            z-index: 10;
        }
        
        .player.GK {
            background-color: var(--danger-color);
        }
        
        .player.DF {
            background-color: var(--primary-color);
        }
        
        .player.MF {
            background-color: var(--warning-color);
        }
        
        .player.FW {
            background-color: var(--success-color);
        }
        
        .player.running {
            animation: pulse 1.5s infinite;
        }
        
        .player.enemy {
            background-color: #6c757d;
        }
        
        .ball {
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: white;
            z-index: 15;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        }
        
        .goal {
            position: absolute;
            width: 10px;
            height: 60px;
            background-color: white;
            z-index: 3;
        }
        
        .goal.left {
            left: 0;
            top: calc(50% - 30px);
        }
        
        .goal.right {
            right: 0;
            top: calc(50% - 30px);
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        /* Stats Styles */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .stat-card {
            background-color: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            font-size: 1.5rem;
            color: white;
        }
        
        .stat-icon.primary {
            background-color: var(--primary-color);
        }
        
        .stat-icon.success {
            background-color: var(--success-color);
        }
        
        .stat-icon.warning {
            background-color: var(--warning-color);
        }
        
        .stat-icon.danger {
            background-color: var(--danger-color);
        }
        
        .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 5px;
            color: var(--dark-color);
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: var(--gray-color);
        }
        
        /* Training Styles */
        .training-video {
            width: 100%;
            height: 400px;
            background-color: #eee;
            border-radius: 10px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        
        .training-video iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .exercise-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .exercise-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .exercise-image {
            height: 180px;
            background-color: #eee;
            background-size: cover;
            background-position: center;
        }
        
        .exercise-content {
            padding: 15px;
        }
        
        .exercise-title {
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: var(--dark-color);
        }
        
        .exercise-description {
            font-size: 0.9rem;
            color: var(--gray-color);
            margin-bottom: 15px;
        }
        
        /* Schedule Styles */
        .calendar {
            width: 100%;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background-color: var(--primary-color);
            color: white;
        }
        
        .calendar-nav {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .calendar-nav button {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
        }
        
        .calendar-title {
            font-size: 1.2rem;
            font-weight: 500;
        }
        
        .calendar-grid {
            display: fixed;
            grid-template-columns: repeat(7, 1fr);
            background-color: white;
        }
        
        .calendar-day-header {
            padding: 10px;
            text-align: center;
            font-weight: 600;
            background-color: #f8f9fa;
            border-bottom: 1px solid #eee;
        }
        
        .calendar-day {
            min-height: 100px;
            padding: 5px;
            border: 1px solid #eee;
            background-color: white;
        }
        
        .day-number {
            text-align: right;
            padding: 5px;
            font-size: 0.9rem;
        }
        
        .event {
            font-size: 0.75rem;
            padding: 3px 6px;
            margin: 2px 0;
            border-radius: 4px;
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary-color);
            cursor: pointer;
        }
        
        .event.training {
            background-color: rgba(76, 201, 240, 0.1);
            color: var(--success-color);
        }
        
        .event.match {
            background-color: rgba(247, 37, 133, 0.1);
            color: var(--danger-color);
        }
        
        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 100;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: white;
            border-radius: 10px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            animation: modalFadeIn 0.3s;
        }
        
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .modal-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 1.3rem;
            font-weight: 600;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gray-color);
        }
        
        .modal-body {
            padding: 20px;
        }
        
        /* Multi Stopwatch Styles */
        .multi-stopwatch-container {
            margin-top: 20px;
        }
        
        .stopwatch-item {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            position: relative;
        }
        
        .stopwatch-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .stopwatch-name {
            font-weight: 500;
        }
        
        .stopwatch-display-sm {
            font-size: 1.5rem;
            font-family: 'Roboto Mono', monospace;
            text-align: center;
            margin: 10px 0;
        }
        
        .stopwatch-controls-sm {
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        
        .stopwatch-remove {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            color: var(--danger-color);
            cursor: pointer;
        }
        
        /* Performance Chart Styles */
        .chart-container {
            height: 300px;
            width: 100%;
            margin-top: 20px;
        }

        .ball-trajectory {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    transform-origin: 0 0;
    z-index: 5;
    transition: width 0.1s linear;
}

.goal-celebration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    z-index: 10;
    animation: goalCelebration 2s ease-out;
}

@keyframes goalCelebration {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.player {
    transition: left 0.2s ease-out, top 0.2s ease-out;
}
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            .app-container {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                position: fixed;
                width: 250px;
                height: 100vh;
                left: -250px;
                transition: left 0.3s;
            }
            
            .sidebar.active {
                left: 0;
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .mobile-menu-btn {
                display: block;
            }
        }
        
        /* Utility Classes */
        .text-center {
            text-align: center;
        }
        
        .mb-3 {
            margin-bottom: 15px;
        }
        
        .mt-3 {
            margin-top: 15px;
        }
        
        .d-flex {
            display: flex;
        }
        
        .justify-between {
            justify-content: space-between;
        }
        
        .align-center {
            align-items: center;
        }
        
        .gap-2 {
            gap: 10px;
        }
        
        /* Animation for running player */
        @keyframes runningAnimation {
            0% { transform: translateX(0); }
            50% { transform: translateX(10px); }
            100% { transform: translateX(0); }
        }
        
        .running-path {
            position: absolute;
            height: 2px;
            background-color: rgba(255,255,255,0.5);
            z-index: 1;
        }
        
        /* Player history styles */
        .history-tabs {
            display: flex;
            border-bottom: 1px solid #eee;
            margin-bottom: 20px;
        }
        
        .history-tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            font-weight: 500;
        }
        
        .history-tab.active {
            border-bottom-color: var(--primary-color);
            color: var(--primary-color);
        }
        
        .history-content {
            display: none;
        }
        
        .history-content.active {
            display: block;
        }
        
        /* API key input */
        .api-key-container {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        
        /* Scoreboard */
        .scoreboard {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0,0,0,0.7);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 1.2rem;
            z-index: 20;
        }

        /* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    margin-right: 15px;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 5;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .header h2 {
        font-size: 1.4rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .exercise-list {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .stopwatch-display {
        font-size: 2.5rem;
    }
    
    .controls {
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .table {
        display: block;
        overflow-x: auto;
    }
    
    .calendar-day-header {
        padding: 5px;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        min-height: 80px;
    }
    
    .event {
        font-size: 0.65rem;
    }
    
    .pitch {
        height: 350px;
    }
    
    .player {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .ball {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-profile {
        width: 100%;
        justify-content: flex-end;
    }
    
    .controls {
        gap: 10px;
    }
    
    .stopwatch-display {
        font-size: 2rem;
        margin: 20px 0;
    }
    
    .pitch {
        height: 280px;
    }
    
    .player {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Mobile Navigation Enhancements */
.sidebar {
    overflow-y: auto;
}

/* Touch-friendly elements */
.btn, .nav-link, .player {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent zoom on input focus */
@media (max-width: 992px) {
    input, select, textarea {
        font-size: 16px;
    }
}

/* Hide scrollbar on sidebar for mobile */
.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Larger tap targets for mobile */
.nav-link {
    padding: 15px 20px;
}

/* Adjust modal for mobile */
@media (max-width: 576px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* Scoreboard mobile adjustment */
@media (max-width: 768px) {
    .scoreboard {
        font-size: 1rem;
        padding: 3px 10px;
    }
}