.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

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

.toast.success {
    border-left-color: #38a169;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.toast.error {
    border-left-color: #e53e3e;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.toast.info {
    border-left-color: #667eea;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.toast.warning {
    border-left-color: #feca57;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #38a169;
}

.toast.error .toast-icon {
    color: #e53e3e;
}

.toast.info .toast-icon {
    color: #667eea;
}

.toast.warning .toast-icon {
    color: #feca57;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin: 0;
}

.toast-message {
    font-size: 13px;
    color: #5a6c7d;
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #495057;
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: toast-progress 4s linear forwards;
}

.toast.success::after {
    color: #38a169;
}

.toast.error::after {
    color: #e53e3e;
}

.toast.info::after {
    color: #667eea;
}

.toast.warning::after {
    color: #feca57;
}

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

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