/* Notebook Toast - lightweight notification used across the app for
   "Saved to Deals Notebook" / "Removed from Deals Notebook" feedback. */

.nb-toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

.nb-toast {
    pointer-events: auto;
    background: #1e3a5f;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(13, 33, 55, 0.25), 0 2px 6px rgba(13, 33, 55, 0.15);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    min-width: 280px;
    max-width: 460px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.nb-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.nb-toast-message {
    flex: 1;
    min-width: 0;
}

.nb-toast-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nb-toast-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
}

.nb-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 16px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.nb-toast-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.nb-toast-info { background: #1e3a5f; }
.nb-toast-success { background: #1e3a5f; }
.nb-toast-warn { background: #b45309; }
.nb-toast-error { background: #991b1b; }

@media (max-width: 600px) {
    .nb-toast-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: none;
    }
    .nb-toast {
        min-width: 0;
        width: 100%;
        font-size: 13px;
    }
}
