/**
 * Höhenprofil-Modul CSS
 * Styling für 2D und 3D Client
 */

.profile-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
    padding: 10px;
}

/* Steuerung */
.profile-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.profile-controls .btn {
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.profile-controls .btn-primary {
    background: #007bff;
    color: white;
}

.profile-controls .btn-primary:hover {
    background: #0056b3;
}

.profile-controls .btn-secondary {
    background: #6c757d;
    color: white;
}

.profile-controls .btn-secondary:hover {
    background: #545b62;
}

.profile-controls .btn-success {
    background: #28a745;
    color: white;
}

.profile-controls .btn-success:hover:not(:disabled) {
    background: #218838;
}

.profile-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-interval-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: white;
    border-radius: 3px;
    border: 1px solid #ced4da;
}

.profile-interval-group label {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    color: #495057;
}

.profile-interval-group input[type="number"] {
    width: 50px;
    padding: 3px 6px;
    border: 1px solid #ced4da;
    border-radius: 2px;
    font-size: 12px;
}

.profile-interval-group span {
    font-size: 11px;
    color: #6c757d;
}

/* Info-Bereich */
.profile-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 12px;
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.profile-info-item {
    display: flex;
    gap: 6px;
    font-size: 13px;
}

.profile-info-item strong {
    color: #007bff;
}

/* Loading */
.profile-loading {
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #007bff;
}

.profile-loading i {
    margin-right: 8px;
    font-size: 16px;
}

/* Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.profile-stats .stat-item {
    padding: 8px 12px;
    background: white;
    border-left: 3px solid #007bff;
    border-radius: 3px;
    font-size: 13px;
}

.profile-stats .stat-item strong {
    display: block;
    color: #007bff;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Chart Container */
.profile-chart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
}

.profile-chart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.profile-chart-actions .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-chart-container canvas {
    flex: 1;
    max-height: calc(100% - 40px);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-controls .btn,
    .profile-interval-group {
        width: 100%;
        justify-content: center;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-chart-container {
        min-height: 250px;
    }
}
