/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3b82f6;
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 320px;
    max-width: 450px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

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

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

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

.toast-content {
    flex: 1;
    color: #2d3748;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
}

/* Toast Types */
.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast.info .toast-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 0 0 12px 12px;
    transition: width linear;
}

.toast.success .toast-progress {
    background: rgba(16, 185, 129, 0.3);
}

.toast.error .toast-progress {
    background: rgba(239, 68, 68, 0.3);
}

.toast.warning .toast-progress {
    background: rgba(245, 158, 11, 0.3);
}

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

/* Animation keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.animate-in {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.animate-out {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}