.ttt-seatmap .coordinates{
    width: 100% !important;
    min-height: 400px;
}
/* Layout */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    border-radius: 6px;
}

/* Workspace (Khu vực ảnh) */
.workspace {
    flex: 1;
    position: relative;
    overflow: auto;
    background: #cbd5e1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Responsive Map Wrapper */
#mapWrapper {
    position: relative;
    transform-origin: 0 0;
    transition: transform 0.1s ease-out;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: white;
    /*width: 100%;*/
}
#mainImage {
    display: block;
    max-width: none;
    /*width: 100%;*/
}
/* Giữ size gốc để tính tọa độ */

/* SVG Layer - Responsive Tuyệt đối */
#seatOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: all;
}

/* Seat Styles */
.seat-point {
    fill: #f95911;
    stroke: #f95911;
    stroke-width: 2px;
    vector-effect: non-scaling-stroke;
    transition: 0.2s;
}
.seat-point:not(.disabled):hover{
    fill: #cfffbf;
    stroke: #cfffbf;
    cursor: pointer;
}
.seat-point:not(.selected):not(.disabled):hover + .seat-label{
    fill: #f95911;
}
.seat-point.disabled {
    fill: #ff0000;
    stroke: #ff0000;
    stroke-width: 3px;
}
.seat-point.selected {
    fill: #ffff00;
    stroke: #ffff00;
    stroke-width: 3px;
}
.seat-point.selected + .seat-label {
    fill: #f95911;
}
.seat-label {
    fill: #fff;
    font-size: 8px;
    font-weight: bold;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: middle;
    user-select: none;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-left: 1px solid #e2e8f0;
    overflow-y: auto;
    padding: 25px;
}

/* Floating Toolbar */
.floating-tools {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    /*background: rgba(255,255,255,0.9);*/
    /*backdrop-filter: blur(10px);*/
    /*padding: 8px 20px;*/
    border-radius: 50px;
    display: flex;
    /*gap: 12px;*/
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.2);*/
    z-index: 1000;
    align-items: center;
}


/* Drag Selector */
#dragRect {
    fill: rgba(13, 110, 253, 0.1);
    stroke: #0d6efd;
    stroke-dasharray: 4;
    display: none;
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        overflow-y: auto;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-left: none;
    }
    .workspace {
        height: 400px;
        flex: none;
    }
}

.json-box {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: #0f172a;
    color: #10b981;
    border-radius: 8px;
}
/* Style cho Tooltip */
#seatTooltip {
    position: fixed;
    display: none;
    pointer-events: none; /* Tránh cản trở việc click vào ghế */
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 2000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}
#seatTooltip b {
    color: #38bdf8;
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.main-container {
    display: flex;
    min-height: 200px;
    width: 100%;
}
#canvas-area {
    flex: 1;
    position: relative;
    background-color: #cbd3da;
    overflow: hidden;
}
.sidebar {
    width: 350px;
    background: white;
    border-left: 1px solid #ddd;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

/* TOOLTIP HOVER */
#seat-tooltip {
    position: fixed;
    display: none;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.legend {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #ddd;
}
.color-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 5px;
}
.selected-list {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}
.seat-tag {
    display: inline-block;
    background: #198754;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    margin: 2px;
    font-size: 11px;
}
