/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */

.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 255, 203, 0.3);
    border-radius: var(--border-radius-md, 0.75rem);
    padding: 1rem 1.25rem;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.toast.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

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

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    margin: 0;
}

.toast-message {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    font-size: 1.25rem;
    line-height: 1;
}

.toast-close:hover {
    color: #fff;
}

/* Toast Types */
.toast.success {
    border-color: rgba(124, 255, 203, 0.5);
}

.toast.success .toast-icon {
    color: #7cffcb;
}

.toast.error {
    border-color: rgba(255, 107, 107, 0.5);
}

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

.toast.info {
    border-color: rgba(99, 179, 237, 0.5);
}

.toast.info .toast-icon {
    color: #63b3ed;
}

.toast.warning {
    border-color: rgba(255, 193, 7, 0.5);
}

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

/* Mobile adjustments */
@media screen and (max-width: 39.9375rem) {
    .toast-container {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}
