/* Toast Notification System - extracted from toast.js */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 480px;
    padding: 16px 20px;
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.toast__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.toast__content {
    flex: 1;
    min-width: 0;
}

.toast__title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.toast__message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    word-wrap: break-word;
}

.toast__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.toast__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.toast__progress-bar {
    height: 100%;
    width: 100%;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Variants */
.toast--error {
    border-color: rgba(255, 51, 102, 0.4);
}
.toast--error .toast__icon { color: #ff3366; }
.toast--error .toast__progress-bar { background: #ff3366; }

.toast--success {
    border-color: rgba(0, 255, 136, 0.4);
}
.toast--success .toast__icon { color: #00ff88; }
.toast--success .toast__progress-bar { background: #00ff88; }

.toast--warning {
    border-color: rgba(255, 170, 0, 0.4);
}
.toast--warning .toast__icon { color: #ffaa00; }
.toast--warning .toast__progress-bar { background: #ffaa00; }

.toast--info {
    border-color: rgba(0, 212, 255, 0.4);
}
.toast--info .toast__icon { color: #00d4ff; }
.toast--info .toast__progress-bar { background: #00d4ff; }

/* Booking-specific toast (used by per-class showToast methods) */
.booking-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 14px;
    z-index: 10000;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* Inline error/success messages */
.inline-error {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid #ff3366;
    color: #ff3366;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
}

.inline-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
    .toast-container {
        top: auto;
        bottom: 24px;
        left: 16px;
        right: 16px;
    }
    .toast {
        min-width: auto;
        max-width: none;
    }
    .booking-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}
