/* toast.css - Toast Notifications */

#toast-container {
    position: fixed;
    top: 2rem;
    /* TOP RIGHT as requested */
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    /* Glassmorphism */
    color: #1f2937;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    /* iOS-like smooth corners */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
    /* Deep elegant shadow */
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    max-width: 450px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Apple-like spring */
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 6px solid #cbd5e1;
}

body.dark-mode .toast {
    background: rgba(30, 41, 59, 0.95);
    /* Slate 800 */
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    /* Fly out right */
    opacity: 0;
}

/* Toast Types - Vivid Modern Colors */
.toast-success {
    border-left-color: #22c55e;
    /* Green 500 */
}

.toast-success .toast-icon {
    color: #22c55e;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3));
    /* Glow */
}

.toast-error {
    border-left-color: #ef4444;
    /* Red 500 */
}

.toast-error .toast-icon {
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3));
    /* Glow */
}

.toast-warning {
    border-left-color: #f59e0b;
    /* Amber 500 */
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
    /* Blue 500 */
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s, transform 0.2s;
    border-radius: 4px;
}

.toast-close:hover {
    color: #4b5563;
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .toast-close:hover {
    color: #f3f4f6;
    background-color: rgba(255, 255, 255, 0.1);
}