/* ==================== TOAST NOTIFICATIONS COMPONENT ==================== */
.toast-container {
    position: fixed;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-container.top-right {
    top: 20px;
    right: 20px;
}

.toast-container.top-left {
    top: 20px;
    left: 20px;
}

.toast-container.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.toast-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.toast-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.toast-container.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.toast {
    background: var(--color-white, #ffffff);
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg, 0 10px 25px -5px rgba(0,0,0,0.1));
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease forwards;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-left-color: var(--color-success, #10b981);
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.toast.error {
    border-left-color: var(--color-error, #ef4444);
    background: linear-gradient(135deg, #ffffff, #fef2f2);
}

.toast.warning {
    border-left-color: var(--color-warning, #f59e0b);
    background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.toast.info {
    border-left-color: var(--color-info, #3b82f6);
    background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--color-success); }
.toast.error .toast-icon { color: var(--color-error); }
.toast.warning .toast-icon { color: var(--color-warning); }
.toast.info .toast-icon { color: var(--color-info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-gray-800, #1e293b);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8rem;
    color: var(--color-gray-600, #475569);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--color-gray-400, #94a3b8);
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--color-gray-100, #f1f5f9);
    color: var(--color-error, #ef4444);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0,0,0,0.1);
    width: 100%;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    background: var(--color-primary, #f2a83a);
    animation: toastProgress linear forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .toast {
        min-width: 260px;
        max-width: 320px;
        padding: 12px 16px;
    }
    
    .toast-container {
        left: 16px;
        right: 16px;
    }
    
    .toast-container.top-center,
    .toast-container.bottom-center {
        left: 16px;
        right: 16px;
        transform: none;
    }
}