:root {
    --bg-dark: #07090e;
    --card-bg: rgba(20, 25, 35, 0.6);
    --primary-green: #00ffa3;
    --accent-blue: #00d4ff;
    --text-main: #ffffff;
    --text-dim: #b0b8c1;
    --danger: #ff4d6d;
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 15px rgba(0, 255, 163, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

.manager-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: radial-gradient(circle at top right, #1a2233 0%, #07090e 100%);
    position: relative;
}

.match-page {
    background: url('../img/pitch_bg.png') no-repeat center center fixed;
    background-size: cover;
}

.match-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 1;
}

/* Header Scoreboard Upgrade */
.match-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.match-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.score-area {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.score {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1;
}

.match-time {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

/* Commentary Feed Upgrade */
.commentary-feed {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 5px 100px 5px;
    /* Extra padding for bottom nav */
    z-index: 5;
    position: relative;
}

.event-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    animation: fadeInUp 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-blue);
    border-radius: 4px 0 0 4px;
}

.event-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.event-card.goal {
    border: 1px solid rgba(0, 255, 163, 0.3);
}

.event-card.goal::before {
    background: var(--primary-green);
}

.event-card.goal .event-icon {
    color: var(--primary-green);
    background: rgba(0, 255, 163, 0.1);
}

.event-card.foul {
    border: 1px solid rgba(255, 77, 109, 0.3);
}

.event-card.foul::before {
    background: var(--danger);
}

.event-card.foul .event-icon {
    color: var(--danger);
    background: rgba(255, 77, 109, 0.1);
}

.event-details {
    flex: 1;
}

.event-time {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.event-text {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.highlight-player {
    color: var(--primary-green);
    font-weight: 600;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    background: rgba(20, 25, 35, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    padding: 12px 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 11px;
    font-weight: 600;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}

/* Control Buttons (Used in Profile, Club, etc) */
.strategy-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.btn-control {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-control:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-control:active {
    transform: scale(0.95);
}

.btn-control.active {
    background: var(--accent-blue);
    color: var(--bg-dark);
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

/* --- Login Page Styles --- */
.login-page {
    background: url('../img/Inicio_app.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: rgba(30, 35, 45, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.app-logo {
    margin-bottom: 2rem;
}

.app-logo h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: var(--accent-blue);
}

.app-logo .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-form label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

.login-form input {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.login-form input:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--bg-dark);
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #4de1ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    border-radius: 12px;
}

.login-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.link-secondary {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.link-highlight {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}