/* ============================================================
   BOOKING MODE TOGGLE
   ============================================================ */
.booking-mode-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ============================================================
   FLOORPLAN CONTAINER
   
   Key fix: aspect-ratio must match the admin editor's container.
   Both must use the same ratio so that percentage coordinates
   (stored as % of width/height) land at the same visual position
   in both views. 4/3 matches the admin's floorplan-builder.
   ============================================================ */
.floorplan-area {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Жестко держим пропорцию как в админке */
    margin: 0 auto;
    background: #f1f3f5;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.floorplan-table-client {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-available {
    background: #ffffff;
    border: 2px solid #28a745;
    color: #28a745;
}

.table-available:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.table-booked {
    background: #e9ecef;
    border: 2px solid #adb5bd;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

.table-circle-content {
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.table-id-text {
    font-weight: bold;
    font-size: 14px;
}

.table-cap-text {
    font-size: 10px;
    margin-top: 2px;
}

.client-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #343a40;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideUpToast 0.3s ease-out forwards;
}

.client-toast.fade-out {
    animation: fadeOutToast 0.3s ease-out forwards;
}

@keyframes slideUpToast {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeOutToast {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, 10px); }
}


/* ============================================================
   BOOKING MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}