/**
 * styles.css
 * Main stylesheet for the GPX Track Viewer application
 *
 * Organization:
 * 1. Base styles (body, map)
 * 2. UI Controls
 * 3. Progress Display
 * 4. Buttons and Icons
 * 5. Google Maps Integration
 */

/* Base styles */
body,
.file-picker-button,
.clear-button,
.toggle-map-button,
.gmaps-button,
.progress-display {
    font-size: 16px;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

#map {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* UI Controls Container */
.ui-controls-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.ui-controls-container button {
    border: none;
    border-radius: 12px;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    font-size: 20px;
    background-color: #fefefe;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmaps-button {
    background-color: #FFE4E1 !important;
}

.file-picker-button {
    background-color: #E6E6FA !important;
}

.clear-button {
    background-color: #FFE4E4 !important;
}

/* Progress Display */
#gpx-file {
    display: none;
}

#progress-display {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 4px;
}

@keyframes pulsateRed {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.off-track {
    animation: pulsateRed 1.5s infinite;
    background-color: rgba(255, 0, 0, 0.5) !important;
}



#open-maps-btn {
    background-color: #FFE4E1;
}

#open-lodging-btn {
    background-color: #E6E6FA;
}

#open-market-btn {
    background-color: #E0FFE0;
}

#open-camping-btn {
    background-color: #F0FFF0;
}

#open-restaurant-btn {
    background-color: #FFE4E1;
}

#open-hospital-btn {
    background-color: #FFE4E4;
}

/* Google Maps Integration */
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.ui-controls-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.drawer-buttons {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.drawer-buttons.expanded {
    display: flex;
}

button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
}


#location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 1000;
}