/* assets/css/style.css */
/* Modern Sports Analytics Platform Styling */

:root {
    --primary-pitch: #1e7e34;
    --primary-pitch-dark: #155724;
    --pitch-line: rgba(255, 255, 255, 0.7);
    --bg-dark-surface: #1e222d;
    --border-dark: #2a2e39;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2b303a;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Sidebar & Transitions */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    transition: all 0.25s ease-in-out;
}

.sidebar-match-card:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #0d6efd !important;
}

/* Team Colour Dot */
.team-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* Live Pulse Animation */
@keyframes pulseGlow {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-pulse {
    animation: pulseGlow 1.5s infinite ease-in-out;
}

/* KPI Summary Cards */
.kpi-card {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background: #ffffff;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.kpi-metric-number {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

/* 2D Tactical Football Pitch (9 Zones) */
/* 2D Tactical Football Pitch (9 Zones) */
.football-pitch {
    background: linear-gradient(to right, #1f7a36 0%, #24883d 50%, #1f7a36 100%);
    border: 2px solid #ffffff;
    border-radius: 8px;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        "D1 M1 A1"
        "D2 M2 A2"
        "D3 M3 A3";
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: background 0.3s ease;
}

.football-pitch.pitch-flipped {
    background: linear-gradient(to left, #1f7a36 0%, #24883d 50%, #1f7a36 100%);
    grid-template-areas:
        "A1 M1 D1"
        "A2 M2 D2"
        "A3 M3 D3";
}

.football-pitch .zone-D1 { grid-area: D1; }
.football-pitch .zone-M1 { grid-area: M1; }
.football-pitch .zone-A1 { grid-area: A1; }
.football-pitch .zone-D2 { grid-area: D2; }
.football-pitch .zone-M2 { grid-area: M2; }
.football-pitch .zone-A2 { grid-area: A2; }
.football-pitch .zone-D3 { grid-area: D3; }
.football-pitch .zone-M3 { grid-area: M3; }
.football-pitch .zone-A3 { grid-area: A3; }

.football-pitch::before,
.football-pitch::after {
    content: '';
    position: absolute;
    top: 30%;
    bottom: 30%;
    width: 6px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    pointer-events: none;
    z-index: 2;
}

.football-pitch::before {
    left: 0;
    border-left: none;
    border-radius: 0 4px 4px 0;
}

.football-pitch::after {
    right: 0;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.pitch-centre-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22%;
    aspect-ratio: 1;
    border: 2px solid var(--pitch-line);
    border-radius: 50%;
    pointer-events: none;
}

.pitch-centre-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--pitch-line);
    pointer-events: none;
}

.pitch-zone {
    border: 1px dashed rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    position: relative;
    padding: 4px;
}

.pitch-zone:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.pitch-zone.active-zone {
    background-color: rgba(13, 110, 253, 0.5) !important;
    border: 2px solid #0d6efd;
}

.pitch-zone-code {
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.pitch-zone-stat {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 2px;
}

/* Audit Log Table */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}
