/* Beautiful Toast Notification System */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(400px);
    animation: slideIn 0.4s ease forwards;
    display: flex;
    align-items: stretch;
    min-height: 70px;
}

.toast.hiding {
    animation: slideOut 0.4s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Toast Icon Section */
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    font-size: 28px;
    flex-shrink: 0;
}

/* Toast Content */
.toast-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toast-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a202c;
}

.toast-message {
    font-size: 14px;
    color: #4a5568;
    margin: 0;
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #4a5568;
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 0 0 0 12px;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Success Toast */
.toast.success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.toast.success .toast-progress {
    background: linear-gradient(to right, #10b981, #059669);
}

/* Info Toast */
.toast.info .toast-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.toast.info .toast-progress {
    background: linear-gradient(to right, #3b82f6, #2563eb);
}

/* Warning Toast */
.toast.warning .toast-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.toast.warning .toast-progress {
    background: linear-gradient(to right, #f59e0b, #d97706);
}

/* Error Toast */
.toast.error .toast-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.toast.error .toast-progress {
    background: linear-gradient(to right, #ef4444, #dc2626);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 10px;
    }
    
    .toast-icon {
        width: 50px;
        font-size: 24px;
    }
    
    .toast-content {
        padding: 12px 16px;
    }
    
    .toast-title {
        font-size: 15px;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #2d3748;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .toast-title {
        color: #f7fafc;
    }
    
    .toast-message {
        color: #cbd5e0;
    }
    
    .toast-close {
        color: #718096;
    }
    
    .toast-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
}
