/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    max-width: min(25rem, 90vw);
    pointer-events: none;
}

.toast-notification {
    background: white;
    border-radius: clamp(0.5rem, 1vw, 0.75rem);
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.25rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    animation: slideInRight 0.3s ease-out;
    border-left: 0.25rem solid var(--primary-blue, #3E74D2);
    min-width: min(18.75rem, 85vw);
    max-width: min(25rem, 90vw);
    pointer-events: auto;
}

.toast-notification.toast-error {
    border-left-color: #DC2626;
    background: #FEF2F2;
}

.toast-notification.toast-success {
    border-left-color: #10B981;
    background: #F0FDF4;
}

.toast-notification.toast-warning {
    border-left-color: #F59E0B;
    background: #FFFBEB;
}

.toast-notification.toast-info {
    border-left-color: #3B82F6;
    background: #EFF6FF;
}

.toast-icon {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    flex-shrink: 0;
    width: clamp(1.5rem, 3vw, 2rem);
    height: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-error .toast-icon {
    color: #DC2626;
}

.toast-success .toast-icon {
    color: #10B981;
}

.toast-warning .toast-icon {
    color: #F59E0B;
}

.toast-info .toast-icon {
    color: #3B82F6;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    color: #1F2937;
    font-weight: 500;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    width: clamp(1.25rem, 2.5vw, 1.5rem);
    height: clamp(1.25rem, 2.5vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background-color: #F3F4F6;
    color: #1F2937;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: clamp(0.5rem, 1vw, 1rem);
        right: clamp(0.5rem, 1vw, 1rem);
        left: clamp(0.5rem, 1vw, 1rem);
        max-width: 100%;
    }
    
    .toast-notification {
        min-width: auto;
        max-width: 100%;
    }
}

