* { margin: 0; padding: 0; box-sizing: border-box; }

/*
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}
 */

canvas {
    transition: none !important;
    image-rendering: crisp-edges;
    display: block;
    user-select: none;
    touch-action: none;
}

.hall-container {
    position: relative;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    width: 100%;
    height: 100%;
}

.demo-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hall-wrapper {
    flex: 1;
    min-width: 400px;
    height: 650px;
    position: relative;
}

/*
.sidebar {
    width: 300px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    font-size: 12px;
    max-height: 650px;
    overflow-y: auto;
}
*/

.tariff-panel {
    width: 350px;
    display: flex;
    flex-direction: column;
    max-height: 650px;
    overflow-y: auto;
}

@media (max-width: 1200px) {
    .demo-layout { flex-direction: column; }
    .sidebar { width: 100%; max-height: none; }
    .tariff-panel { width: 100%; }
    .hall-wrapper { min-width: 100%; }
}

/* ANIMATIONS */
@keyframes fadeOut {
    from { opacity: 1; pointer-events: auto; }
    to { opacity: 0; pointer-events: none; }
}

@keyframes hall-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.hall-loading-screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
    border-radius: inherit;
    animation: fadeOut 0.3s ease-out forwards;
}

.hall-tooltip {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 160px;
    max-width: 220px;
    word-wrap: break-word;
    animation: tooltipFadeIn 0.2s ease-out;
}

.hall-price-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    max-height: 100px;
    overflow-y: auto;
    background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0.1));
    scrollbar-width: thin;
    scrollbar-color: #ddd #f9f9f9;
}

.hall-price-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
    font-size: 12px;
}

.hall-price-chip:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.1);
}

.hall-price-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hall-price-chip-price {
    font-weight: 500;
    color: #333;
}

.hall-price-chip-count {
    font-size: 10px;
    color: #999;
}

.hall-price-chip.selected {
    color: white;
}

.hall-price-chip.selected .hall-price-chip-price {
    color: white;
}

.hall-price-chip.selected .hall-price-chip-count {
    color: rgba(255, 255, 255, 0.8);
}

.hall-canvas-controls {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    background: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hall-canvas-control-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.hall-canvas-control-btn:hover {
    background: #f0f0f0;
    border-color: #0066cc;
}

.hall-canvas-control-btn:active {
    transform: scale(0.98);
}

.seat-tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    font-weight: 500;
}