        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --field-color: #27ae60;
            --line-color: #ffffff;
            --goal-color: #d35400;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f5f5f5;
            color: #333;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            background-color: var(--primary-color);
            color: white;
            padding: 15px 0;
            text-align: center;
            border-radius: 8px 8px 0 0;
            margin-bottom: 20px;
            position: relative;
        }

        h1 {
            font-size: 2rem;
        }

        .match-info {
            position: absolute;
            top: 10px;
            right: 20px;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .score {
            font-size: 1.5rem;
            font-weight: bold;
            background-color: rgba(0, 0, 0, 0.3);
            padding: 5px 15px;
            border-radius: 20px;
        }

        .timer {
            font-size: 1.2rem;
            background-color: rgba(0, 0, 0, 0.3);
            padding: 5px 15px;
            border-radius: 20px;
        }

        .simulator-container {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .field-container {
            flex: 2;
            min-width: 300px;
            position: relative;
        }

        .controls {
            flex: 1;
            min-width: 250px;
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
        }

        .football-field {
            position: relative;
            width: 100%;
            height: 600px;
            background-color: var(--field-color);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            background-image: 
                linear-gradient(transparent 98%, var(--line-color) 98%),
                linear-gradient(90deg, transparent 98%, var(--line-color) 98%),
                linear-gradient(transparent 50%, var(--line-color) 50%),
                radial-gradient(circle at 50% 50%, transparent 69%, var(--line-color) 69.5%, transparent 70%),
                linear-gradient(transparent 30%, var(--line-color) 30%, var(--line-color) 70%, transparent 70%);
            background-size: 
                50px 50px,
                50px 50px,
                100% 100%,
                200px 200px,
                100% 100%;
            background-position: 
                0 0,
                0 0,
                0 0,
                center center,
                0 0;
        }

        .goal {
            position: absolute;
            width: 10px;
            height: 80px;
            background-color: var(--goal-color);
            top: 50%;
            transform: translateY(-50%);
            z-index: 1;
        }

        .goal.left {
            left: 0;
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
        }

        .goal.right {
            right: 0;
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
        }

        .goal-area {
            position: absolute;
            width: 120px;
            height: 200px;
            border: 2px solid var(--line-color);
            top: 50%;
            transform: translateY(-50%);
            z-index: 0;
        }

        .goal-area.left {
            left: 0;
            border-right: none;
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }

        .goal-area.right {
            right: 0;
            border-left: none;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        .player {
            position: absolute;
            width: 40px;
            height: 40px;
            background-color: var(--secondary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            cursor: move;
            user-select: none;
            z-index: 10;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
            transition: transform 0.1s;
        }

        .player:hover {
            transform: scale(1.1);
        }

        .player.opponent {
            background-color: var(--accent-color);
        }

        .player.gk {
            background-color: #f39c12;
        }

        .ball {
            position: absolute;
            width: 20px;
            height: 20px;
            background-color: white;
            border-radius: 50%;
            z-index: 5;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            transition: left 0.3s ease-out, top 0.3s ease-out;
        }

        .control-group {
            margin-bottom: 20px;
        }

        .control-group h3 {
            margin-bottom: 10px;
            color: var(--primary-color);
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }

        select, input, button {
            width: 100%;
            padding: 8px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        button {
            background-color: var(--secondary-color);
            color: white;
            border: none;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #2980b9;
        }

        button.danger {
            background-color: var(--accent-color);
        }

        button.danger:hover {
            background-color: #c0392b;
        }

        button.success {
            background-color: #27ae60;
        }

        button.success:hover {
            background-color: #219955;
        }

        .formation-preview {
            display: flex;
            flex-direction: column;
            gap: 5px;
            margin-top: 10px;
        }

        .formation-row {
            display: flex;
            justify-content: center;
            gap: 5px;
        }

        .formation-player {
            width: 20px;
            height: 20px;
            background-color: var(--secondary-color);
            border-radius: 50%;
        }

        .formation-player.opponent {
            background-color: var(--accent-color);
        }

        .formation-player.gk {
            background-color: #f39c12;
        }

        .player-info {
            position: absolute;
            background-color: white;
            padding: 10px;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            z-index: 20;
            display: none;
            min-width: 150px;
        }

        .player-info h4 {
            margin-bottom: 5px;
            color: var(--primary-color);
        }

        .player-info p {
            margin-bottom: 3px;
            font-size: 0.9rem;
        }

        .close-info {
            position: absolute;
            top: 5px;
            right: 5px;
            cursor: pointer;
            font-size: 0.8rem;
        }

        .stats-panel {
            background-color: white;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .stat-item {
            display: flex;
            justify-content: space-between;
        }

        .stat-value {
            font-weight: bold;
        }

        .match-events {
            margin-top: 10px;
            max-height: 100px;
            overflow-y: auto;
            border: 1px solid #eee;
            padding: 5px;
            border-radius: 4px;
            font-size: 0.8rem;
        }

        .event {
            padding: 3px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .event.goal {
            color: #27ae60;
            font-weight: bold;
        }

        .event.pass {
            color: #3498db;
        }

        .event.tackle {
            color: #e74c3c;
        }

        .tab-container {
            display: flex;
            margin-bottom: 15px;
        }

        .tab {
            padding: 8px 15px;
            background-color: #eee;
            cursor: pointer;
            border-radius: 4px 4px 0 0;
            margin-right: 5px;
        }

        .tab.active {
            background-color: var(--secondary-color);
            color: white;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        @media (max-width: 768px) {
            .simulator-container {
                flex-direction: column;
            }
            
            .match-info {
                position: static;
                justify-content: center;
                margin-top: 10px;
            }
        }