/* Toast Notification Styles */

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 360px;
    width: calc(100vw - 48px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 18px;
    border-radius: 14px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    pointer-events: all;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-hiding {
    transform: translateX(120%);
    opacity: 0;
}

/* Type colors */
.toast-success { border-left: 3px solid #4ade80; }
.toast-error   { border-left: 3px solid #f87171; }
.toast-warning { border-left: 3px solid #fbbf24; }

.toast-icon {
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-success .toast-icon { color: #4ade80; }
.toast-error   .toast-icon { color: #f87171; }
.toast-warning .toast-icon { color: #fbbf24; }

.toast-msg {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
    margin-top: -1px;
}

.toast-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform linear;
}

.toast-success .toast-progress { background: #4ade80; }
.toast-error   .toast-progress { background: #f87171; }
.toast-warning .toast-progress { background: #fbbf24; }

.toast-progress.toast-progress-run {
    transform: scaleX(0);
}

/* Mobile: bottom of screen above nav */
@media (max-width: 768px) {
    #toast-container {
        bottom: 80px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}
