/* ─── Toast Notifications ────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    min-width: 290px;
    max-width: 380px;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               toastFadeOut 0.4s ease-in 3.5s forwards;
}

.toast-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast.success .toast-icon { background: #ecfdf5; color: #059669; }
.toast.error   .toast-icon { background: #fef2f2; color: #dc2626; }
.toast.warning .toast-icon { background: #fffbeb; color: #d97706; }

.toast-content { flex: 1; }

.toast-title {
    font-weight: 700;
    color: #111827;
    font-size: 0.9rem;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.toast-message {
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 100%;
    background: #f3f4f6;
}
.toast-progress::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 100%;
    width: 100%;
    animation: toastProgress 3.5s linear forwards;
}
.toast.success .toast-progress::before { background: linear-gradient(90deg, #059669, #34d399); }
.toast.error   .toast-progress::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.toast.warning .toast-progress::before { background: linear-gradient(90deg, #d97706, #fbbf24); }

/* Animations */
@keyframes toastSlideIn {
    0%   { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(0);    opacity: 1; }
}
@keyframes toastFadeOut {
    0%   { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}
@keyframes toastProgress {
    0%   { width: 100%; }
    100% { width: 0%; }
}

/* ─── View Sections ──────────────────────────────── */
.view-section { display: none; animation: fadeIn 0.3s ease-out; }
.view-section.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
