﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

    .header h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        font-weight: 300;
    }

    .header p {
        opacity: 0.9;
        font-size: 1.1rem;
    }

.upload-section {
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.upload-area {
    border: 3px dashed #007bff;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .upload-area:hover {
        border-color: #0056b3;
        background: #f8f9ff;
    }

    .upload-area.dragover {
        border-color: #28a745;
        background: #f8fff8;
    }

.upload-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

.upload-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .upload-btn[disabled] {
        background: #c0c0c0;
        cursor: not-allowed;
        pointer-events: none;
    }

    .upload-btn:hover {
        background: #0056b3;
    }

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px;
}

.top-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.route-stats {
    display: flex;
    flex-direction: column-reverse;
    padding: 10px;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-header {
    background: #28a745;
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

#map {
    height: 400px;
    width: 100%;
}

.chart-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chart-header {
    background: #fd7e14;
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.chart-content {
    padding: 0;
    max-height: 300px;
    width: 100%;
}

/*.chart-content canvas {
    padding: 20px;    
    width: 100%;
}
*/
#elevation-chart {
    width: 100%;
    min-width: 300px;
    height: 200px;
    display: block;
}

#effort-chart {
    width: 100%;
    min-width: 300px;
    height: 120px;
    display: block;
}

.weather-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.weather-header {
    background: #17a2b8;
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.weather-controls {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.hours-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .hours-control label {
        font-weight: 500;
        color: #495057;
    }

.control-group select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

    .control-group select:focus {
        outline: none;
        border-color: #17a2b8;
    }

.hours-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

    .hours-input:focus {
        outline: none;
        border-color: #17a2b8;
    }

.weather-item {
    display: flow;
    column-count: 2;
    column-fill: balance;
    padding: 15px 0px 0px;
    border-bottom: 1px solid #ddd;
}

    .weather-item > div {
        break-inside: avoid;
        margin-bottom: 20px;
    }

.weather-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.weather-hour {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s ease;
}

    .weather-hour:hover {
        background: #e9ecef;
    }

.weather-time {
    font-weight: 500;
    color: #495057;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-icon {
    font-size: 1.5rem;
}

.weather-temp {
    font-weight: 500;
    color: #007bff;
}

.weather-desc {
    color: #6c757d;
    font-size: 0.9rem;
}

.placeholder {
    text-align: center;
    color: #6c757d;
    padding: 40px;
    font-style: italic;
}

.status-message {
    padding: 15px;
    margin: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        border-radius: 15px;
    }

    .header {
        padding: 10px;
    }

        .header h1 {
            font-size: 2rem;
        }

    .main-content {
        padding: 10px;
        gap: 10px;
    }
}

.location-button {
    margin-left: -15px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
