/* Frontend Styles for Seating Plan Manager */

.spm-frontend-container {
    width: 100%;
    margin: 20px 0;
}

.spm-plan-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.spm-plan-image-container {
    flex: 1;
    min-width: 300px;
}

.spm-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.spm-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

#spm_overlay_svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#spm_overlay_svg .table-shape {
    fill: rgba(0, 123, 255, 0.3);
    stroke: #007bff;
    stroke-width: 2;
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s ease;
}

#spm_overlay_svg .table-shape:hover {
    fill: rgba(0, 123, 255, 0.5);
    stroke-width: 3;
}

#spm_overlay_svg .table-shape.highlighted {
    fill: rgba(0, 123, 255, 0.7) !important;
    stroke: #007bff !important;
    stroke-width: 4 !important;
    filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.8));
    animation: pulse 1.5s ease-in-out infinite;
    z-index: 10;
    opacity: 1 !important;
}

#spm_overlay_svg .table-shape.highlighted circle,
#spm_overlay_svg .table-shape.highlighted rect,
#spm_overlay_svg .table-shape.highlighted polygon {
    fill: rgba(0, 123, 255, 0.7) !important;
    stroke: #007bff !important;
    stroke-width: 4 !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

.spm-reservations-sidebar {
    flex: 0 0 350px;
    min-width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 800px;
    overflow-y: auto;
}

.spm-reservations-sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.spm-search-box {
    margin-bottom: 15px;
}

.spm-search-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.spm-reservations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spm-reservation-item {
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spm-reservation-item:hover {
    background: #f0f0f0;
    border-color: #007bff;
    transform: translateX(5px);
}

.spm-reservation-item.active {
    background: #fff3cd;
    border-color: #ffc107;
    border-width: 2px;
}

.spm-reservation-name {
    margin-bottom: 8px;
    font-size: 16px;
}

.spm-reservation-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.spm-table-badge {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
}

.spm-date,
.spm-time {
    color: #666;
}

.spm-guests {
    color: #666;
}

.spm-no-reservations {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .spm-plan-wrapper {
        flex-direction: column;
    }
    
    .spm-reservations-sidebar {
        flex: 1;
        max-height: none;
    }
}

