/*!*****************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./src/index.css ***!
  \*****************************************************************/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body, #editorRoot {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
    font-size: 13px;
    background: #f5f7f9;
    color: #333333;
}

/* ---- Header ---- */
.app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(35deg, #a40000 0%, #cc0000 100%);
    color: #fff;
    padding: 9px 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.header-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.mode-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-label {
    font-size: 12px;
    opacity: 0.9;
}

.mode-btn {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.15s;
}

.mode-btn:hover {
    background: rgba(255,255,255,0.15);
}

.mode-btn.active {
    background: #fff;
    color: #cc0000;
}

.reset-btn {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    transition: background 0.15s;
}

.reset-btn:hover {
    background: rgba(255,255,255,0.15);
}

.header-help-btn {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: background 0.15s;
}

.header-help-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ---- Main layout ---- */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ---- Inputs panel ---- */
.inputs-panel {
    width: 320px;
    min-width: 260px;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #e4e4e4;
    padding: 12px;
    flex-shrink: 0;
}

.field-group {
    margin-bottom: 16px;
}

.group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cc0000;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ececec;
}

.field-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 6px;
}

.field-label {
    flex: 1;
    font-size: 12px;
    color: #555555;
    line-height: 1.3;
}

.field-input {
    width: 80px;
    padding: 3px 6px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 12px;
    text-align: right;
    color: #333333;
    background: #fafafa;
    transition: border-color 0.15s;
}

.field-input:focus {
    outline: none;
    border-color: #cc0000;
    background: #fff;
}

.field-unit {
    font-size: 11px;
    color: #888888;
    width: 20px;
}

/* ---- Right panel (visualizer + lower section) ---- */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ---- 3D Visualizer ---- */
.viz-wrapper {
    position: relative;
    flex: 0 0 65%;
    min-height: 320px;
    background: #111827;
}

.viz-canvas {
    width: 100%;
    height: 100%;
}

.viz-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.viz-tooltip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    background: rgba(20, 24, 32, 0.92);
    border: 1px solid #cc0000;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 11px;
    line-height: 1.4;
    color: #ffffff;
    white-space: pre;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    max-width: 220px;
}

.viz-legend {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.viz-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #e0e0e0;
    white-space: nowrap;
}

.viz-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.viz-reset-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid #007c8c;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.viz-reset-btn:hover {
    background: #007c8c;
    color: #fff;
}

/* ---- Lower section (table + collapsible config) ---- */
.lower-section {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.output-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

.copy-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(35deg, #a40000 0%, #cc0000 100%);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: filter 0.15s;
}

.copy-btn:hover {
    filter: brightness(0.92);
}

/* ---- Output table ---- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.output-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    white-space: nowrap;
}

.output-table th {
    position: sticky;
    top: 0;
    background: linear-gradient(35deg, #a40000 0%, #cc0000 100%);
    color: #fff;
    padding: 6px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.output-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    color: #333333;
}

.output-table tr:nth-child(even) td {
    background: #fafafa;
}

.output-table tr:first-child td {
    background: #fff8e1;
    font-weight: 600;
    color: #5d4037;
}

.output-table td.output-label {
    text-align: left;
    font-style: italic;
    color: #5d4037;
}

/* Seat row colour bands */
.output-table tr:nth-child(n+2):nth-child(-n+4) td  { background: #e3f2fd; }
.output-table tr:nth-child(n+5):nth-child(-n+7) td  { background: #f3e5f5; }
.output-table tr:nth-child(n+8):nth-child(-n+10) td { background: #e8f5e9; }
.output-table tr:nth-child(n+11):nth-child(-n+13) td { background: #fff3e0; }
.output-table tr:nth-child(n+14):nth-child(-n+16) td { background: #fce4ec; }

/* ---- Occupancy box table (Intruder Detection mode) ---- */
.box-table-input {
    width: 64px;
    padding: 2px 5px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 12px;
    text-align: right;
    color: #333333;
    background: #fafafa;
    transition: border-color 0.15s;
}

.box-table-input:focus {
    outline: none;
    border-color: #cc0000;
    background: #fff;
}

/* ---- Collapsible config output ---- */
.config-details {
    flex-shrink: 0;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.config-summary {
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #555555;
    background: #f5f7f9;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.config-summary:hover {
    color: #007c8c;
}

.config-summary::-webkit-details-marker {
    display: none;
}

.config-summary::before {
    content: '▶';
    font-size: 9px;
    color: #cc0000;
    transition: transform 0.15s;
}

details[open] .config-summary::before {
    transform: rotate(90deg);
}

.config-details .output-text {
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11.5px;
    padding: 12px 16px;
    white-space: pre;
    overflow-x: auto;
    line-height: 1.55;
    border-top: 1px solid #333;
}

/* ---- Field Tooltip ---- */
.field-row {
    position: relative;
    flex-wrap: wrap;
}

.field-tooltip {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    background: #1e1e1e;
    color: #e0e0e0;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 4px;
    white-space: normal;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
}

.field-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 16px;
    border: 5px solid transparent;
    border-bottom-color: #1e1e1e;
}

/* ---- CLI Command Paste Section ---- */
.cli-section {
    background: #fff;
    border-bottom: 1px solid #ececec;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.cli-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cc0000;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ececec;
}

.cli-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cli-textarea {
    width: 100%;
    min-height: 90px;
    padding: 8px 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    color: #333333;
    background: #fafafa;
    resize: vertical;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.5;
}

.cli-textarea:focus {
    outline: none;
    border-color: #cc0000;
    background: #fff;
}

.cli-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cli-btn-primary {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(35deg, #a40000 0%, #cc0000 100%);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: filter 0.15s;
}

.cli-btn-primary:hover {
    filter: brightness(0.92);
}

.cli-btn-secondary {
    padding: 6px 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #fff;
    color: #555555;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}

.cli-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #bbbbbb;
}

.cli-status {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.cli-status.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.cli-status.error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

.cli-help {
    margin-top: 8px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    background: #fafafa;
    font-size: 11px;
}

.cli-help summary {
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 600;
    color: #555555;
    user-select: none;
    list-style: none;
}

.cli-help summary::-webkit-details-marker {
    display: none;
}

.cli-help summary::before {
    content: '▶';
    font-size: 9px;
    color: #cc0000;
    margin-right: 6px;
    transition: transform 0.15s;
}

details[open] .cli-help summary::before {
    transform: rotate(90deg);
}

.cli-help-content {
    padding: 0 10px 10px;
    border-top: 1px solid #e4e4e4;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 0 0 4px 4px;
    overflow-x: auto;
}

.cli-help-content pre {
    margin: 0;
    padding: 8px 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.5;
    white-space: pre;
}

/* ---- README Modal ---- */
.readme-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

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

.readme-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.readme-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e4e4;
    background: linear-gradient(35deg, #a40000 0%, #cc0000 100%);
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.readme-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.readme-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.readme-close:hover {
    opacity: 1;
}

.readme-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.readme-section {
    margin-bottom: 20px;
}

.readme-section:last-child {
    margin-bottom: 0;
}

.readme-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #cc0000;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.readme-section p {
    margin: 0 0 8px;
}

.readme-section ul {
    margin: 0;
    padding-left: 20px;
}

.readme-section li {
    margin-bottom: 6px;
}

.readme-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #e4e4e4;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}

.readme-footer label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.readme-got-it {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(35deg, #a40000 0%, #cc0000 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: filter 0.15s;
}

.readme-got-it:hover {
    filter: brightness(0.92);
}

/* ---- Zone Measurements Image Modal ---- */
.image-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 90vw;
    width: auto;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideUp 0.25s ease;
}

.image-modal-content {
    flex: 1;
    overflow: auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}


/*# sourceMappingURL=main.css.map*/