:root {
    --brand-color: #7c7c48;
    --brand-dark: #5e5e36;
}

/* Base Body Styles */
body { 
    background-color: #0a0a0a; 
    color: #e5e5e5; 
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.bg-brand { background-color: var(--brand-color); }
.text-brand { color: var(--brand-color); }
.border-brand { border-color: var(--brand-color); }

/* Background & Hero */
.hero-gradient {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), #0a0a0a),
                url('https://images.unsplash.com/photo-1590234934063-470a168677c3?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; 
    background-position: center;
}

/* Tactical UI Components */
.card-blur { 
    background: rgba(255, 255, 255, 0.02); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
}

.nav-link { 
    position: relative; 
    transition: all 0.3s ease; 
    cursor: pointer; 
}
.nav-link:hover { color: var(--brand-color); }
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--brand-color); transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Button Tactical Styles */
.btn-primary { 
    background-color: var(--brand-color); 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}
.btn-primary:hover { 
    background-color: var(--brand-dark); 
    box-shadow: 0 0 20px rgba(124, 124, 72, 0.4);
    transform: translateY(-1px);
}

.signin-btn {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    color: white;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.signin-btn:hover { 
    background: white; 
    color: black; 
    border-color: white; 
}

/* Layout Grids */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 1.5rem; 
}
.roster-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 0.75rem; 
}

/* --- TACTICAL MAP UI OVERRIDES (Leaflet.js) --- */
#map { 
    height: 100%; 
    width: 100%; 
    background: #050505; 
}
.leaflet-container { background: #050505 !important; }
.leaflet-bar a { 
    background-color: #1a1a1a !important; 
    color: var(--brand-color) !important; 
    border: 1px solid #333 !important; 
}
.leaflet-popup-content-wrapper { 
    background: #1a1a1a !important; 
    color: white !important; 
    border: 1px solid var(--brand-color); 
    border-radius: 4px; 
}
.leaflet-popup-tip { background: var(--brand-color) !important; }

/* Drawing Toolbar Specifics */
.draw-tool.active-tool {
    background: rgba(124, 124, 72, 0.2);
    color: var(--brand-color);
    box-shadow: inset 0 0 10px rgba(124, 124, 72, 0.2);
}

.draw-tool:hover svg {
    transform: scale(1.1);
    color: var(--brand-color);
}

/* Management Menu (For Squad Leaders) */
.mgmt-menu {
    position: absolute; 
    left: 0; 
    top: calc(100% + 8px); 
    background: #121212; 
    border: 1px solid var(--brand-color);
    border-radius: 6px; 
    z-index: 10000; 
    min-width: 180px; 
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 10px rgba(124, 124, 72, 0.2);
    animation: menu-slide 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes menu-slide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mgmt-menu button { 
    width: 100%; 
    text-align: left; 
    padding: 14px 16px; 
    font-size: 10px; 
    font-weight: 800; 
    text-transform: uppercase; 
    color: #fff; 
    border-bottom: 1px solid rgba(255,255,255,0.03); 
    transition: all 0.2s;
}

.mgmt-menu button:last-child { border-bottom: none; }

.mgmt-menu button:hover { 
    background: var(--brand-color); 
    color: black; 
}

/* Scrollbar Fix */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-color); }

.font-oswald { font-family: 'Oswald', sans-serif; }

/* ADDED: Mobile Menu Animation */
.animate-menu-slide {
    animation: menu-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes menu-slide-in {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}