/* ===== TOAST NOTIFICATIONS ===== */

.toast-container {
    position: fixed;
    top: 70px;
    right: 16px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: toastSlideIn 0.3s ease;
}

.toast-hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.toast-header i {
    margin-right: 8px;
}

.toast-title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f1729;
}

.toast-close {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.toast-close:hover {
    background: #e5e7eb;
    color: #0f1729;
}

.toast-body {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.toast-progress {
    height: 4px;
    background: #e5e7eb;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    animation: countdown 10s linear forwards;
}

@keyframes countdown {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Toast Type Colors */

/* Success */
.toast-success .toast-header {
    background: #f0fdf4;
    border-bottom-color: #bbf7d0;
}

.toast-success .toast-header i {
    color: #22c55e;
}

.toast-progress-success {
    background: #22c55e;
}

/* Error / Danger */
.toast-error .toast-header,
.toast-danger .toast-header {
    background: #fef2f2;
    border-bottom-color: #fecaca;
}

.toast-error .toast-header i,
.toast-danger .toast-header i {
    color: #ef4444;
}

.toast-progress-error,
.toast-progress-danger {
    background: #ef4444;
}

/* Warning */
.toast-warning .toast-header {
    background: #fffbeb;
    border-bottom-color: #fde68a;
}

.toast-warning .toast-header i {
    color: #f59e0b;
}

.toast-progress-warning {
    background: #f59e0b;
}

/* Info */
.toast-info .toast-header {
    background: #eff6ff;
    border-bottom-color: #bfdbfe;
}

.toast-info .toast-header i {
    color: #3b82f6;
}

.toast-progress-info {
    background: #3b82f6;
}

/* Debug */
.toast-debug .toast-header {
    background: #f8fafc;
    border-bottom-color: #e5e7eb;
}

.toast-debug .toast-header i {
    color: #6b7280;
}

.toast-progress-debug {
    background: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
    .toast-container {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}
