:root {
    --pitch-green: #2d5a27;
    --pitch-line: rgba(255, 255, 255, 0.6);
    --primary: #3b82f6;
    --secondary: #1e293b;
    --accent: #10b981;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    height: 100vh;
    height: 100dvh;
}

/* Glassmorphism */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Football Pitch */
.pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2d5a27 0%, #1e3d1a 100%);
    border: 4px solid var(--pitch-line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.pitch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pitch-line);
}

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

.pitch-penalty-area {
    position: absolute;
    left: 20%;
    width: 60%;
    height: 15%;
    border: 2px solid var(--pitch-line);
}

.pitch-penalty-area.top { top: 0; border-top: 0; }
.pitch-penalty-area.bottom { bottom: 0; border-bottom: 0; }

.pitch-goal-area {
    position: absolute;
    left: 35%;
    width: 30%;
    height: 5%;
    border: 2px solid var(--pitch-line);
}

.pitch-goal-area.top { top: 0; border-top: 0; }
.pitch-goal-area.bottom { bottom: 0; border-bottom: 0; }

/* Player Marker */
.player-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.player-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    cursor: grab;
}

.player-name-tag {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 1px 4px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 8px;
}

/* Transitions */
.slide-fade-enter { opacity: 0; transform: translateX(20px); }
.slide-fade-exit { opacity: 0; transform: translateX(-20px); }

#slide-viewport {
    height: 100%;
    width: 100%;
    padding: 2rem;
    overflow-y: auto;
    transition: all 0.5s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.5); }

/* Custom Inputs */
input, textarea {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

input:focus, textarea:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

/* Sidebar State */
#sidebar.active {
    transform: translateX(0);
}

/* Presentation Text */
.presentation-text-large {
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 1024px) {
    #slide-viewport {
        padding: 1rem !important;
        overflow-y: auto;
    }
    
    .pitch {
        max-width: 100%;
        max-height: 60vh;
    }

    .player-marker {
        width: 28px;
        height: 28px;
        font-size: 9px;
    }

    .player-name-tag {
        font-size: 7px;
        bottom: -16px;
    }
}
