/* ===== Global Toast Notification System ===== */
/* Included via every_page.css for site-wide availability */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100% - 40px);
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    animation: toast-slide-in 0.35s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.toast.removing {
    opacity: 0;
    transform: translateX(120%);
}

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin-top: 1px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.toast-close:hover {
    color: #fff;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 10px 10px;
    animation: toast-progress linear forwards;
}

/* Toast Types */
.toast--success { background: rgba(34, 197, 94, 0.92); border-left: 4px solid #16a34a; }
.toast--success .toast-progress { background: rgba(255, 255, 255, 0.4); }

.toast--error { background: rgba(239, 68, 68, 0.92); border-left: 4px solid #dc2626; }
.toast--error .toast-progress { background: rgba(255, 255, 255, 0.4); }

.toast--warning { background: rgba(245, 158, 11, 0.92); border-left: 4px solid #d97706; }
.toast--warning .toast-progress { background: rgba(255, 255, 255, 0.4); }

.toast--info { background: rgba(59, 130, 246, 0.92); border-left: 4px solid #2563eb; }
.toast--info .toast-progress { background: rgba(255, 255, 255, 0.4); }

/* Animations */
@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: 100%;
        width: auto;
    }
}
