/* Custom Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-width: 380px;
    animation: toastSlideIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
    border-left: 4px solid;
}

.custom-toast.toast-error {
    border-left-color: #ef4444;
}

.custom-toast.toast-success {
    border-left-color: #22c55e;
}

.custom-toast.toast-warning {
    border-left-color: #f59e0b;
}

.custom-toast.toast-info {
    border-left-color: #3b82f6;
}

.custom-toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    font-size: 13px;
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #16a34a;
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
}

.toast-info .toast-icon {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.3;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px -4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0 10px;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}
