/* style.css */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

nav#top-menu {
    background-color: #2c3e50;
    padding: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nav-btn {
    padding: 10px 20px;
    background-color: #34495e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 2em;
}

.nav-btn.active, .nav-btn:hover {
    background-color: #3498db;
}

main {
    flex-grow: 1;
    position: relative;
}

.app-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.app-view.active {
    display: block;
}

.map-container {
    width: 100%;
    height: 100%;
}

/* Stats View Layout */
/* Replace your existing #view-stats and .stats-header in style.css with this: */
#view-stats {
    display: none; 
    flex-direction: column;
    background: #ecf0f1; /* Dark background */
    color: #333333;      /* Light text */
}
#view-stats.active {
    display: flex;
}

/* --- Premium Stats Header --- */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f6 100%);
    border-bottom: 1px solid #e0e6ed;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* The sleek GPS pill badge */
.gps-badge {
    display: flex;
    align-items: center;
    background: #2c3e50;
    padding: 8px 24px 8px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gps-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.3);
}

/* Circular background for the pin icon */
.gps-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stacked, techy text for the coordinates */
.gps-coordinates {
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', Courier, monospace; /* Gives it a data/sensor vibe */
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

#gps-lat { color: #34db98; } /* Bright mint green */
#gps-lng { color: #3498db; } /* Bright blue */

.top-right { 
    font-size: 5rem; 
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.15)); /* Adds a soft 3D shadow to the weather emoji */
}

.top-left { font-weight: bold; font-size: 2rem; }

.chart-container {
    flex-grow: 1;
    padding: 20px;
    position: relative;
}

/* Custom Map Markers */
.weather-marker {
    font-size: 80px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.recenter-btn {
    position: absolute;
    bottom: 30px; /* Floats near the bottom right */
    right: 20px;
    z-index: 10;  /* Ensures it sits on top of the map */
    background-color: white;
    border: none;
    border-radius: 6px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.recenter-btn:hover {
    background-color: #f1f3f5;
}

.recenter-btn:active {
    transform: scale(0.95); /* Satisfying click effect */
}

/* Ensure the SVG icon fits perfectly and inherits text colors */
.recenter-btn svg {
    width: 20px;
    height: 20px;
    color: #555; /* Sleek dark grey color */
    transition: color 0.2s ease;
}

.recenter-btn:hover svg {
    color: #3498db; /* Changes to blue when you hover over the button! */
}

