/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

.toast-icon {
    width: 28px;
    height: 28px;
    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: 14px;
    margin-bottom: 4px;
    color: #2d3748;
}

.toast-message {
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    transition: color 0.2s ease;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #718096;
}

/* Toast Types */
.toast.success .toast-icon {
    background: #d4edda;
    color: #155724;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error .toast-icon {
    background: #f8d7da;
    color: #721c24;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.warning .toast-icon {
    background: #fff3cd;
    color: #856404;
}

.toast.warning {
    border-left: 4px solid #ffc107;
}

.toast.info .toast-icon {
    background: #d1ecf1;
    color: #0c5460;
}

.toast.info {
    border-left: 4px solid #b59c61;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg, #b59c61, #d4af37);
    border-radius: 0 0 12px 12px;
    animation: progress 5s linear forwards;
}

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

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