/**
 * Modern Toast Notification Styles
 * Non-blocking, auto-dismissing notifications
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: relative;
}

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

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

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #1f2937;
    font-weight: 500;
}

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

.toast-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1));
    transition: width linear;
}

/* Toast type variants */
.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, #10b981, rgba(16, 185, 129, 0.3));
}

.toast-error,
.toast-danger {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-progress,
.toast-danger .toast-progress {
    background: linear-gradient(90deg, #ef4444, rgba(239, 68, 68, 0.3));
}

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

.toast-warning .toast-progress {
    background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, 0.3));
}

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

.toast-info .toast-progress {
    background: linear-gradient(90deg, #3b82f6, rgba(59, 130, 246, 0.3));
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .toast {
        transform: translateY(-100px);
    }

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

    .toast.hide {
        transform: translateY(-100px);
    }
}

/* Animation for multiple toasts */
.toast-container .toast:nth-child(n+4) {
    opacity: 0.8;
}

.toast-container .toast:nth-child(n+5) {
    opacity: 0.6;
}

