/**
 * Toast Notification Styles
 * Global notification system for errors, warnings, info, and success messages
 */

/* Container - Fixed position at top right */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    pointer-events: none;
    max-width: 90%;
    width: 420px;
}

/* Toast Base Styles */
.toast {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
}

/* Show/Hide Animations */
.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Content Container */
.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
}

/* Message Text */
.toast-message {
    flex: 1;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-primary);
}

/* Close Button */
.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: currentColor;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close i {
    font-size: 20px;
}

.toast-close:hover {
    opacity: 1;
}

/* Progress Bar - Reverse countdown */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
}

/* Toast Type Variants */

/* Error */
.toast-error {
    background: var(--color-toast-error-bg);
}

.toast-error .toast-message,
.toast-error .toast-close {
    color: var(--color-toast-error-text);
}

.toast-error .toast-progress {
    background: var(--color-toast-error-text);
}

/* Warning */
.toast-warning {
    background: var(--color-toast-warning-bg);
}

.toast-warning .toast-message,
.toast-warning .toast-close {
    color: var(--color-toast-warning-text);
}

.toast-warning .toast-progress {
    background: var(--color-toast-warning-text);
}

/* Info */
.toast-info {
    background: var(--color-toast-info-bg);
}

.toast-info .toast-message,
.toast-info .toast-close {
    color: var(--color-toast-info-text);
}

.toast-info .toast-progress {
    background: var(--color-toast-info-text);
}

/* Success */
.toast-success {
    background: var(--color-toast-success-bg);
}

.toast-success .toast-message,
.toast-success .toast-close {
    color: var(--color-toast-success-text);
}

.toast-success .toast-progress {
    background: var(--color-toast-success-text);
}

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

    .toast-content {
        padding: var(--space-md) var(--space-lg);
    }

    .toast-message {
        font-size: var(--font-size-sm);
    }

    .toast-icon {
        font-size: 24px;
    }
}


