/* Waitlist Reservation System Styles */

/* Popup Styles */
.waitlist-popup {
    position: absolute;
    z-index: 100;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.1);
    padding: 16px;
    animation: waitlist-popup-in 0.15s ease-out;
}

.waitlist-popup.hidden {
    display: none;
}

@keyframes waitlist-popup-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.waitlist-modal-content {
    animation: waitlist-modal-in 0.2s ease-out;
}

@keyframes waitlist-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Time slot grid */
.waitlist-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Form focus states */
.waitlist-modal-content input:focus,
.waitlist-modal-content select:focus,
.waitlist-modal-content textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading spinner */
.waitlist-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: waitlist-spin 0.8s linear infinite;
}

@keyframes waitlist-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Reservation link styling */
.reservation-link {
    color: var(--color-primary, #3b82f6);
    font-weight: 600;
}

.reservation-link:hover {
    text-decoration: underline;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .waitlist-popup {
        width: calc(100vw - 32px);
        left: 16px !important;
        right: 16px;
    }
    
    .waitlist-modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
}
