/**
 * Routenplaner – "Route speichern" + Banner für geladene Routen
 * Pfad: pages/route-planner/assets/route-save.css
 * Eingebunden von: pages/route-planner/route-planner.php
 *
 * Eigenes Präfix .rs- , damit nichts mit den bestehenden Planer-Styles kollidiert.
 */

.rs-head {
    margin-bottom: 1rem;
}

.rs-sub {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.rs-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.rs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}

.rs-input {
    flex: 1 1 260px;
    min-width: 0;
    padding: 0.5625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #111827;
    background: #fff;
}

.rs-input:focus {
    outline: none;
    border-color: #2eb873;
    box-shadow: 0 0 0 3px rgba(46, 184, 115, 0.18);
}

.rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.rs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rs-btn-primary {
    background: #2eb873;
    color: #fff;
}

.rs-btn-primary:hover:not(:disabled) {
    background: #249a5f;
}

.rs-btn-ghost {
    background: #fff;
    border-color: #d1d5db;
    color: #374151;
}

.rs-btn-ghost:hover:not(:disabled) {
    background: #f9fafb;
}

.rs-login {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 0.875rem 1rem;
    border: 1px dashed #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    background: #f9fafb;
}

.rs-editing {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.875rem;
}

.rs-message {
    margin-top: 0.875rem;
    padding: 0.6875rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.rs-message-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.rs-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.rs-foot {
    margin-top: 0.875rem;
    font-size: 0.8125rem;
}

.rs-foot a {
    color: #2eb873;
    font-weight: 600;
    text-decoration: none;
}

.rs-foot a:hover {
    text-decoration: underline;
}

/* Banner oberhalb des Formulars, wenn eine gespeicherte Route geladen wird */
.rs-loaded-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.875rem 1.125rem;
    border-radius: 0.625rem;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #14532d;
    font-size: 0.875rem;
}

.rs-loaded-banner.rs-loaded-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.rs-loaded-title {
    font-weight: 700;
}

.rs-loaded-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
