/**
 * GPX Elevation Plugin Styles
 * Inspireret af det originale design
 */

.gpx-elevation-container {
    margin: 20px 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gpx-elevation-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.gpx-elevation-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpx-elevation-actions {
    display: flex;
    gap: 8px;
}

.gpx-elevation-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.gpx-elevation-btn.gpx {
    background-color: #ff6600;
    color: white;
}

.gpx-elevation-btn.gpx:hover {
    background-color: #e55a00;
}

.gpx-elevation-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.gpx-elevation-btn.secondary:hover {
    background-color: #5a6268;
}

.gpx-elevation-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    flex-wrap: wrap;
}

.gpx-elevation-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.gpx-elevation-stat-icon {
    font-size: 16px;
}

.gpx-elevation-stat-value {
    font-weight: 600;
    color: #333;
}

.gpx-elevation-badges {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.gpx-elevation-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.gpx-elevation-badge.trail {
    background-color: #333;
    color: white;
}

.gpx-elevation-badge.difficulty {
    background-color: #ff6600;
    color: white;
}

.gpx-elevation-chart {
    margin: 0;
    background-color: #fff;
    border: none;
    border-radius: 0;
    min-height: 200px;
}

.gpx-elevation-error {
    padding: 20px;
    text-align: center;
    color: #d63638;
    background-color: #fcf0f1;
    border: 1px solid #f1aeb5;
    border-radius: 5px;
    margin: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .gpx-elevation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .gpx-elevation-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .gpx-elevation-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .gpx-elevation-badges {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .gpx-elevation-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gpx-elevation-container {
        margin: 10px 0;
    }
    
    .gpx-elevation-header,
    .gpx-elevation-stats {
        padding: 12px 15px;
    }
    
    .gpx-elevation-stats {
        font-size: 13px;
    }
    
    .gpx-elevation-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Admin side styles */
.gpx-elevation-admin {
    max-width: 800px;
}

.gpx-elevation-upload-area {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    background-color: #fafafa;
}

.gpx-elevation-upload-area:hover {
    border-color: #ff6600;
    background-color: #fff5f0;
}

.gpx-elevation-file-list {
    margin-top: 20px;
}

.gpx-elevation-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 5px;
}

.gpx-elevation-file-actions {
    display: flex;
    gap: 10px;
}

.gpx-elevation-shortcode {
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

/* Highcharts overrides for orange theme */
.highcharts-container {
    font-family: inherit;
}

.highcharts-tooltip {
    border-radius: 5px !important;
}

.highcharts-grid-line {
    stroke: #f4f4f4;
}

.highcharts-axis-line {
    stroke: #f4f4f4;
}

.highcharts-tick {
    stroke: #f4f4f4;
}

