/**
 * Centralized Toast Notifications - Site-wide
 * Add new types in toast.js config only.
 */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

#toast-container > * {
    pointer-events: auto;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: toastSlideIn 0.35s ease;
    background: #fff;
}

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

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

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

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Type colors - edit here to add new types */
.toast-success {
    border-left: 4px solid #059669;
    background: #ecfdf5;
}

.toast-success .toast-icon { color: #059669; }
.toast-success .toast-content { color: #065f46; }

.toast-error {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
}

.toast-error .toast-icon { color: #dc2626; }
.toast-error .toast-content { color: #991b1b; }

.toast-warning {
    border-left: 4px solid #d97706;
    background: #fffbeb;
}

.toast-warning .toast-icon { color: #d97706; }
.toast-warning .toast-content { color: #92400e; }

.toast-info {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
}

.toast-info .toast-icon { color: #2563eb; }
.toast-info .toast-content { color: #1e40af; }

@media (max-width: 480px) {
    #toast-container {
        left: 16px;
        right: 16px;
        min-width: auto;
    }
    .toast {
        min-width: 0;
    }
}
