/**
 * Toast Notification System
 * Extracted from header.php for maintainability
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #1e293b;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 4px solid #06b6d4;
    position: relative;
}

.toast.show { transform: translateX(0); opacity: 1; }
.toast.hiding { transform: translateX(120%); opacity: 0; }
.toast.success { border-left-color: #10b981; }
.toast.success .toast-icon { background: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.error .toast-icon { background: #ef4444; }
.toast.info { border-left-color: #06b6d4; }
.toast.info .toast-icon { background: #06b6d4; }
.toast.warning { border-left-color: #f59e0b; }
.toast.warning .toast-icon { background: #f59e0b; }

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.toast-message { font-size: 13px; opacity: 0.85; }

.toast-close {
    background: none;
    border: none;
    color: white;
    opacity: 0.5;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: opacity 0.2s;
}
.toast-close:hover { opacity: 1; }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 0 0 0 12px;
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

@media (max-width: 480px) {
    .toast-container { top: 10px; right: 10px; left: 10px; }
    .toast { min-width: auto; max-width: none; }
}
