/* ========================================
   Toast Notification System
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 1rem 1.25rem;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: all;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    border-radius: 0 0 12px 12px;
    animation: toast-progress 3s linear forwards;
}

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

/* Toast Types */
.toast.success {
    border-left-color: var(--success-color);
}

.toast.success .toast-icon {
    background: rgba(45, 106, 79, 0.1);
    color: var(--success-color);
}

.toast.success .toast-progress {
    background: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.error .toast-icon {
    background: rgba(193, 18, 31, 0.1);
    color: var(--danger-color);
}

.toast.error .toast-progress {
    background: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--secondary-color);
}

.toast.warning .toast-icon {
    background: rgba(201, 169, 97, 0.1);
    color: var(--secondary-color);
}

.toast.warning .toast-progress {
    background: var(--secondary-color);
}

.toast.info {
    border-left-color: var(--primary-color);
}

.toast.info .toast-icon {
    background: rgba(160, 21, 62, 0.1);
    color: var(--primary-color);
}

.toast.info .toast-progress {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

