:root {
    --bg-color: #121212;
    --text-light: #ffffff;
    --accent-green: #2ecc71;
    --accent-dark: #27ae60;
    --glass-bg: rgba(18, 18, 18, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    overflow: hidden; /* Prevent scrolling on mobile */
}

#app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Map specific styling */
#map {
    flex: 1;
    width: 100%;
    z-index: 1; /* Leaflet needs to be below overlays */
    background-color: #1a1a1a;
}

/* Glassmorphism Header */
.glass-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(168, 255, 120, 0.2);
}

.user-stats {
    display: flex;
    gap: 15px;
}

.stat {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
}

.stat .icon {
    font-size: 1.3rem;
}

/* Floating Action Button */
.action-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.6);
}

.primary-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Micro-animations */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Customize Leaflet UI to fit dark theme */
.leaflet-bar a, .leaflet-bar a:hover {
    background-color: var(--glass-bg) !important;
    color: var(--text-light) !important;
    border-color: var(--glass-border) !important;
    backdrop-filter: blur(8px);
}

.leaflet-control-zoom-in, .leaflet-control-zoom-out {
    color: white !important;
}

/* Player Marker Styles */
.player-marker-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.player-marker-dot {
    width: 16px;
    height: 16px;
    background-color: #2ecc71;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.8);
    position: relative;
}

/* Pulsing effect behind player */
.player-marker-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(46, 204, 113, 0.4);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes ping {
    75%, 100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}
