* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-red: #c41e3a;
    --color-red-light: #fde4e4;
    --color-blue: #003d9e;
    --color-blue-light: #e3f2fd;
    --color-blue-dark: #001a4d;
    --color-green: #003d9e;
    --color-gray: #333333;
    --color-gray-light: #f5f5f5;
    --color-border: #cccccc;
    --color-white: #ffffff;
    --color-dark: #000000;
    --color-sgt-blue: #003d9e;
    --color-sgt-black: #000000;
    --color-sgt-gray: #e0e0e0;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #001a4d 100%);
    overflow: hidden;
    color: var(--color-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body, #map {
    height: 100%;
    width: 100%;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 10;
}

.screen.active {
    display: flex;
}

/* ========== LOGIN SCREEN ========== */
#loginScreen {
    background: linear-gradient(135deg, #000000 0%, #001a4d 100%);
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    text-align: center;
    background: transparent;
}

.login-logo {
    width: 160px;
    height: 160px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 20px rgba(0, 61, 158, 0.8));
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.login-container h1 {
    font-size: 2.8rem;
    color: var(--color-sgt-gray);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 61, 158, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.login-container h2 {
    font-size: 1.1rem;
    color: #4a9eff;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 61, 158, 0.6);
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 28px;
    border: 3px solid var(--color-sgt-blue);
    box-shadow: 0 8px 32px rgba(0, 61, 158, 0.5), inset 0 1px 0 rgba(0, 61, 158, 0.3);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

#loginForm input {
    padding: 14px 18px;
    border: 2px solid rgba(0, 61, 158, 0.5);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    font-weight: 600;
    clip-path: polygon(4% 0%, 100% 0%, 100% 70%, 96% 100%, 0% 100%, 0% 30%);
}

#loginForm input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

#loginForm input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(0, 61, 158, 0.3);
    background: rgba(0, 61, 158, 0.2);
}

.error {
    color: #ff6b6b;
    font-weight: 800;
    margin-top: 12px;
    text-shadow: 0 2px 4px rgba(196, 30, 58, 0.5);
    letter-spacing: 0.5px;
}

.small-text {
    color: rgba(224, 224, 224, 0.6);
    font-size: 0.75rem;
    margin-top: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 12px 24px;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    clip-path: polygon(8% 0%, 100% 0%, 100% 70%, 92% 100%, 0% 100%, 0% 30%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-sgt-blue) 0%, #001a4d 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 61, 158, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052cc 0%, var(--color-sgt-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 158, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 61, 158, 0.4);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    border: 2px solid var(--color-sgt-blue);
    box-shadow: 0 2px 8px rgba(0, 61, 158, 0.3), inset 0 1px 0 rgba(0, 61, 158, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 61, 158, 0.3);
    border-color: #4a9eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 158, 0.5);
}

.btn-secondary.active {
    background: linear-gradient(135deg, var(--color-sgt-blue) 0%, #0052cc 100%);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 61, 158, 0.5);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-admin {
    background: linear-gradient(135deg, var(--color-sgt-blue) 0%, #001a4d 100%);
    color: var(--color-white);
    border: 2px solid transparent;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #0052cc 0%, var(--color-sgt-blue) 100%);
    box-shadow: 0 4px 15px rgba(0, 61, 158, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1428 100%);
    color: var(--color-white);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3), inset 0 1px 0 rgba(255, 107, 107, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.5), inset 0 1px 0 rgba(255, 107, 107, 0.3);
}

/* ========== TRACKER SCREEN ========== */
#trackerScreen {
    background: linear-gradient(135deg, #000000 0%, #001a4d 100%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #000000 0%, #001a4d 50%, #003d9e 100%);
    color: var(--color-white);
    box-shadow: 0 2px 20px rgba(0, 61, 158, 0.6), inset 0 -2px 0 rgba(0, 61, 158, 0.5);
    border-bottom: 2px solid var(--color-sgt-blue);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 61, 158, 0.5), transparent);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left h2 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.team-badge {
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.team-badge.red {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1428 100%);
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

.team-badge.blue {
    background: linear-gradient(135deg, var(--color-sgt-blue) 0%, #001a4d 100%);
    border-color: #4a9eff;
    box-shadow: 0 0 10px rgba(0, 61, 158, 0.5);
}

.header-right {
    display: flex;
    gap: 10px;
}

.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

#map {
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* ========== LOGO MENU ========== */
.logo-menu {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
}

.logo-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 3px solid var(--color-sgt-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 61, 158, 0.6), inset 0 1px 0 rgba(0, 61, 158, 0.3);
    transition: all 0.3s ease;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    will-change: transform, box-shadow;
}

.logo-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 25px rgba(0, 61, 158, 0.8), inset 0 1px 0 rgba(74, 158, 255, 0.5);
    border-color: #4a9eff;
}

.logo-btn:active {
    transform: scale(0.95) rotate(-5deg);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.menu-dropdown {
    position: absolute;
    top: 72px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid var(--color-sgt-blue);
    box-shadow: 0 8px 32px rgba(0, 61, 158, 0.5);
    display: none;
    min-width: 240px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.menu-dropdown.active {
    display: block;
}

.menu-section {
    padding: 8px 0;
}

.menu-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-sgt-blue), transparent);
    margin: 4px 0;
}

.menu-item {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--color-sgt-gray);
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.menu-item:hover {
    background: rgba(0, 61, 158, 0.3);
    border-left-color: var(--color-sgt-blue);
    color: #4a9eff;
    padding-left: 24px;
}

.menu-item:active {
    background: rgba(0, 61, 158, 0.5);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.controls {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--color-white);
    border-top: 3px solid var(--color-sgt-blue);
}

.controls > div:first-child {
    display: flex;
    gap: 8px;
}

.controls > div:first-child .btn {
    flex: 1;
}

.status {
    padding: 8px 12px;
    background: var(--color-blue-light);
    color: var(--color-sgt-blue);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.status.success {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid #48bb78;
}

.status.error {
    background: rgba(196, 30, 58, 0.2);
    color: #c41e3a;
    border: 1px solid #c41e3a;
}

.time-info {
    padding: 10px 16px;
    background: linear-gradient(135deg, #000000 0%, #001a4d 100%);
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-sgt-gray);
    border-top: 2px solid var(--color-sgt-blue);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== ADMIN SCREEN ========== */
#adminScreen {
    background: linear-gradient(135deg, #000000 0%, #001a4d 100%);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 61, 158, 0.4);
    border-bottom: 3px solid var(--color-sgt-blue);
}

.admin-header h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 61, 158, 0.8);
    color: var(--color-sgt-gray);
}

.admin-header .btn-small {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.admin-header .btn-small:hover {
    background: var(--color-sgt-blue);
    border-color: var(--color-sgt-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 158, 0.6);
}

.admin-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: transparent;
}

.admin-section {
    background: linear-gradient(135deg, rgba(0, 26, 77, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 61, 158, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-section:hover {
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.5);
    transform: translateY(-2px);
    border-color: #4a9eff;
}

.admin-section h3 {
    margin-bottom: 20px;
    color: #4a9eff;
    font-size: 1.3rem;
    font-weight: 800;
    border-bottom: 3px solid #4a9eff;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-section form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-section input,
.admin-section select {
    padding: 14px 16px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, rgba(0, 26, 77, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%);
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-section input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.admin-section input:focus,
.admin-section select:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.25);
    background: linear-gradient(135deg, rgba(0, 26, 77, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    transform: translateY(-1px);
}

.players-list, .users-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.player-item, .user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0, 26, 77, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    border-left: 5px solid var(--color-sgt-blue);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 61, 158, 0.2);
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.player-item:hover, .user-item:hover {
    background: linear-gradient(135deg, rgba(0, 26, 77, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    box-shadow: 0 6px 16px rgba(74, 158, 255, 0.3);
    transform: translateX(6px);
    border-left-width: 6px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.player-info div {
    line-height: 1.5;
}

.player-info strong {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 700;
}

.player-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.player-team {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    margin-right: 0;
    border: 3px solid;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    letter-spacing: 1px;
}

.player-team.red {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1428 100%);
    border-color: #ff6b6b;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.6), inset 0 1px 0 rgba(255, 107, 107, 0.3);
}

.player-team.blue {
    background: linear-gradient(135deg, var(--color-sgt-blue) 0%, #001a4d 100%);
    border-color: #4a9eff;
    box-shadow: 0 4px 16px rgba(0, 61, 158, 0.6), inset 0 1px 0 rgba(74, 158, 255, 0.3);
}

/* Lists Container - 3 Columns Layout */
.lists-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.list-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.list-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 61, 158, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-left: 5px solid var(--color-sgt-blue);
    clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%);
    box-shadow: 0 4px 12px rgba(0, 61, 158, 0.3);
}

/* Teams List */
.teams-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.5);
    border-left: 5px solid;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.team-item:hover {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    transform: translateX(6px);
    border-left-width: 6px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.team-color-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.team-item:hover .team-color-badge {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.team-info strong {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Color Input Styling */
.admin-section input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(0, 61, 158, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    clip-path: polygon(8% 0%, 100% 0%, 100% 70%, 92% 100%, 0% 100%, 0% 30%);
}

.admin-section input[type="color"]:hover {
    border-color: var(--color-sgt-blue);
    box-shadow: 0 0 20px rgba(0, 61, 158, 0.4);
    transform: translateY(-2px);
}

.admin-section input[type="color"]:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.6);
}

/* Team Change Select */
.team-change-select {
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 61, 158, 0.15);
    color: #ffffff;
    border: 2px solid rgba(0, 61, 158, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.team-change-select:hover {
    background: rgba(0, 61, 158, 0.3);
    border-color: var(--color-sgt-blue);
    box-shadow: 0 0 12px rgba(0, 61, 158, 0.4);
}

.team-change-select:focus {
    border-color: #4a9eff;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.6);
}

.team-change-select option {
    background: #0a0a0a;
    color: #ffffff;
    padding: 8px;
}

.admin-message {
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    margin-top: 20px;
    border-left: 5px solid transparent;
    animation: slideDown 0.3s ease-out;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.admin-message.success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.9) 0%, rgba(56, 161, 105, 0.85) 100%);
    color: #ffffff;
    border-left-color: #22543d;
}

.admin-message.error {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9) 0%, rgba(160, 22, 32, 0.85) 100%);
    color: #ffffff;
    border-left-color: #742a2a;
}

.terrain-info {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(0, 61, 158, 0.12) 0%, rgba(0, 61, 158, 0.06) 100%);
    border: 2px solid var(--color-sgt-blue);
    border-left: 5px solid var(--color-sgt-blue);
    color: var(--color-dark);
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 24px;
    display: none;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 61, 158, 0.1);
}

.terrain-info.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MARKERS & LEAFLET ========== */
.marker-red {
    color: var(--color-red);
}

.marker-blue {
    color: var(--color-blue);
}

.leaflet-popup-content {
    font-size: 0.9rem;
}

.popup-player {
    font-weight: bold;
}

.popup-team {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .login-container h1 {
        font-size: 2rem;
    }

    .header {
        padding: 10px 12px;
    }

    .header-left h2 {
        font-size: 0.95rem;
    }

    .btn {
        padding: 9px 16px;
        font-size: 0.9rem;
    }

    .admin-section {
        padding: 12px;
    }

    .admin-section h3 {
        font-size: 0.95rem;
    }

    .player-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lists-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .list-title {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 400px) {
    .login-container {
        padding: 16px;
    }

    #loginForm {
        max-width: 100%;
    }

    .header-right {
        flex-direction: column;
        gap: 4px;
    }

    .btn-small {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active {
    animation: fadeIn 0.3s ease-out;
}

/* ========== SCROLLBAR ========== */
.admin-container::-webkit-scrollbar {
    width: 10px;
}

.admin-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.admin-container::-webkit-scrollbar-thumb {
    background: rgba(0, 61, 158, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.admin-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-sgt-blue);
}

/* ========== ZONES & GAMES SCREENS ========== */
#zonesScreen,
#gamesScreen {
    background: linear-gradient(135deg, #000000 0%, #001a4d 100%);
}

.zone-item {
    transition: all 0.3s ease;
}

.zone-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0, 61, 158, 0.3);
}

.game-item {
    transition: all 0.3s ease;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 61, 158, 0.4);
}

.teams-selection {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 61, 158, 0.3);
}

.teams-selection label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.teams-selection label:hover {
    background: rgba(0, 61, 158, 0.2) !important;
    transform: translateX(4px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
    .admin-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-header > div {
        width: 100%;
        justify-content: center;
    }
}
