/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Let clicks pass through container */
}

.toast {
    pointer-events: auto; /* Re-enable clicks on the toast itself */
    min-width: 280px;
    max-width: 400px;
    background: #ffffff;
    color: #333333;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 6px solid #333;
}

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

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.toast-message {
    flex-grow: 1;
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    margin-top: -2px;
    transition: color 0.2s ease;
}

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

/* Toast Types */
.toast-error {
    border-left-color: #e74c3c;
}
.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-success {
    border-left-color: #2ecc71;
}
.toast-success .toast-icon {
    color: #2ecc71;
}

.toast-info {
    border-left-color: #3498db;
}
.toast-info .toast-icon {
    color: #3498db;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #2a2a2a;
        color: #f0f0f0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }
    .toast-close {
        color: #aaa;
    }
    .toast-close:hover {
        color: #fff;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    #toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    .toast {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}