/* ── NidhiBook Toast Notifications ── */
#nb-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.nb-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--nb-card-bg, #fff);
    color: var(--nb-text-1, #1a1a1a);
    border: 1px solid var(--nb-card-bdr, #e5e7eb);
    border-left: 4px solid var(--nb-accent, #f26522);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    animation: nb-toast-slide-in 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nb-toast.nb-toast-out {
    animation: nb-toast-slide-out 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nb-toast-success { border-left-color: #16a34a; }
.nb-toast-success .nb-toast-icon { color: #16a34a; }

.nb-toast-error { border-left-color: #dc2626; }
.nb-toast-error .nb-toast-icon { color: #dc2626; }

.nb-toast-warning { border-left-color: #f59e0b; }
.nb-toast-warning .nb-toast-icon { color: #f59e0b; }

.nb-toast-info { border-left-color: #0ea5e9; }
.nb-toast-info .nb-toast-icon { color: #0ea5e9; }

.nb-toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.4;
}

.nb-toast-body {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.nb-toast-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

.nb-toast-close {
    background: transparent;
    border: none;
    color: var(--nb-text-3, #9ca3af);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.nb-toast-close:hover { color: var(--nb-text-1, #1a1a1a); }

.nb-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.4;
    animation: nb-toast-progress linear forwards;
}

@keyframes nb-toast-slide-in {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes nb-toast-slide-out {
    from { transform: translateX(0); opacity: 1; max-height: 200px; margin-bottom: 10px; }
    to { transform: translateX(110%); opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
}

@keyframes nb-toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 576px) {
    #nb-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .nb-toast { min-width: 0; max-width: none; }
}
