/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================
   FILE: src/app/globals.css
   PURPOSE:
   Global styling for craneV2a.

   This file handles:
   - full-screen app layout
   - dark industrial toolbar theme
   - MapLibre container sizing
   - Konva overlay container sizing
   - export surface wrapper sizing
   - reusable buttons/inputs
   - floating panels/status bar
   - properties panel
   - equipment upload panel
   - layer panel
   - export panel
   - scale status panel
   - scale ruler
   - building info panel
   - print/export safety defaults
   - MapLibre control overrides

   Current app stack:
   - Next.js
   - TypeScript
   - MapLibre GL JS
   - OpenFreeMap
   - Esri satellite raster
   - Konva / React-Konva
   - html2canvas / jsPDF

   Learning note:
   The map and overlay must always fill the same pixel area.
   If their containers drift apart, crane overlays and dimensions
   will no longer align with the map.

   The export-surface wrapper must also fill the editor area because
   MapLibre needs every parent wrapper to have real width/height.
   ============================================================ */


/* ============================================================
   SECTION: CSS Reset / Base Page Setup
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

html {
    background: #05080a;
}

body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #05080a;
    color: #f5f7fa;
}

/*
  Next.js renders the app inside the body.
  We make sure the whole app can use the full viewport.
*/
body>div {
    width: 100%;
    height: 100%;
}


/* ============================================================
   SECTION: Theme Variables
   ============================================================ */

:root {
    /* Main app colors */
    --app-bg: #05080a;
    --panel-bg: #071017;
    --panel-bg-soft: #0b1720;
    --panel-bg-lighter: #102433;

    /* Borders and accents */
    --border-subtle: rgba(118, 211, 255, 0.22);
    --border-strong: rgba(118, 211, 255, 0.55);
    --accent: #55c8ff;
    --accent-strong: #00a6ff;
    --danger: #ff3b3b;
    --warning: #ffc857;

    /* Text */
    --text-main: #f5f7fa;
    --text-muted: #a9b7c3;
    --text-dim: #6f7d87;

    /* Tool styling */
    --control-height: 30px;
    --control-radius: 5px;
    --toolbar-height: 112px;

    /* Overlay defaults */
    --draw-red: #ff1f1f;
    --draw-blue: #66d9ff;
    --draw-purple: #d44dff;
    --draw-yellow: #f4c542;
}


/* ============================================================
   SECTION: App Shell
   ============================================================ */

.app-shell {
    width: 100vw;
    height: 100vh;
    min-width: 960px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    background: var(--app-bg);
    color: var(--text-main);
    overflow: hidden;
}

/*
  The editor surface contains the export surface, MapLibre map,
  Konva overlay, floating panels, and status bar.
*/
.editor-shell {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #000;
}


/* ============================================================
   SECTION: Export Surface / Map Wrapper
   ============================================================ */

/*
  The export surface wraps the map + Konva overlay so html2canvas
  can capture the visible layout.

  Important:
  MapLibre requires every parent wrapper in the chain to have real
  width/height. Without this, the map can disappear or initialize
  at 0x0 pixels.
*/
.export-surface {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/*
  The map still fills the full editor area, but now its direct parent
  is .export-surface instead of .editor-shell.
*/
.export-surface .map-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/*
  Floating panels inside the export surface.
*/
.export-surface .building-info-panel {
    z-index: 32;
}

.export-surface .scale-status-panel {
    z-index: 31;
}

.export-surface .scale-ruler-panel {
    z-index: 33;
}

.export-surface .draft-controls-panel {
    z-index: 34;
}


/* ============================================================
   SECTION: Toolbar Layout
   ============================================================ */

.top-toolbar {
    position: relative;
    z-index: 50;
    width: 100%;
    min-height: var(--toolbar-height);
    background: #020608;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}

.toolbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    white-space: nowrap;
}

.toolbar-row.wrap {
    flex-wrap: wrap;
}

.toolbar-spacer {
    flex: 1 1 auto;
}

.toolbar-label {
    font-size: 14px;
    line-height: 1;
    color: var(--text-main);
}

.toolbar-label.large {
    font-size: 18px;
    letter-spacing: 0.02em;
    font-weight: 750;
}

.toolbar-label.muted {
    color: var(--text-muted);
}


/* ============================================================
   SECTION: Inputs / Buttons / Selects
   ============================================================ */

.input-dark,
.select-dark,
.button-dark {
    height: var(--control-height);
    border-radius: var(--control-radius);
    font-size: 14px;
    font-family: inherit;
}

.input-dark,
.select-dark {
    background: #020608;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 4px 8px;
    outline: none;
}

.input-dark:focus,
.select-dark:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 2px rgba(85, 200, 255, 0.16);
}

.input-dark::placeholder {
    color: var(--text-dim);
}

.input-address {
    width: 390px;
    max-width: 38vw;
}

.input-small {
    width: 72px;
    text-align: center;
}

.input-medium {
    width: 130px;
}

.select-dark {
    cursor: pointer;
}

.button-dark {
    background: #020608;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 4px 14px;
    cursor: pointer;
    line-height: 1;
    transition:
        background 120ms ease,
        border-color 120ms ease,
        transform 80ms ease;
}

.button-dark:hover {
    background: #0a1720;
    border-color: var(--border-strong);
}

.button-dark:active {
    transform: translateY(1px);
}

.button-dark.active {
    background: #102433;
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(85, 200, 255, 0.18);
}

.button-dark.danger {
    border-color: rgba(255, 59, 59, 0.55);
    color: #ffd6d6;
}

.button-dark.danger:hover {
    background: rgba(255, 59, 59, 0.16);
}

.button-dark.primary {
    border-color: rgba(85, 200, 255, 0.7);
    background: rgba(85, 200, 255, 0.12);
}

.button-dark.primary:hover {
    background: rgba(85, 200, 255, 0.22);
}

.button-dark:disabled,
.input-dark:disabled,
.select-dark:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.button-dark.subtle {
    margin-top: 10px;
    opacity: 0.9;
}


/* ============================================================
   SECTION: Color / Style Controls
   ============================================================ */

.color-chip {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid var(--border-strong);
    display: inline-block;
    vertical-align: middle;
    background: var(--draw-red);
}

.color-chip.blue {
    background: var(--draw-blue);
}

.color-chip.purple {
    background: var(--draw-purple);
}

.color-chip.yellow {
    background: var(--draw-yellow);
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-main);
}

.checkbox-row input {
    width: 16px;
    height: 16px;
}


/* ============================================================
   SECTION: Map / Overlay Containers
   ============================================================ */

/*
  MapLibre mounts inside this container.
*/
.map-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #101820;
}

/*
  MapLibre injects its own canvas. This makes sure it fills the editor.
*/
.maplibregl-canvas {
    outline: none;
}

/*
  Konva sits above the map.

  Learning note:
  The overlay needs pointer events because users draw, click, drag,
  rotate, and scale crane/equipment objects directly on it.
*/
.overlay-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: auto;
}

/*
  When a tool wants the user to pan the map instead of editing overlays,
  React toggles this class.
*/
.overlay-container.pass-through {
    pointer-events: none;
}


/* ============================================================
   SECTION: Shared Floating Panel Styling
   ============================================================ */

.properties-panel,
.equipment-upload-panel,
.layer-panel,
.export-panel {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 40;
    max-height: calc(100% - 84px);
    overflow: auto;
    background: rgba(5, 10, 14, 0.92);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.46);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.properties-panel {
    width: 300px;
    max-height: calc(100% - 28px);
}

.equipment-upload-panel {
    width: 360px;
}

.layer-panel {
    width: 390px;
}

.export-panel {
    width: 380px;
}

.panel-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.panel-section {
    padding: 10px 0;
    border-top: 1px solid rgba(118, 211, 255, 0.14);
}

.panel-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    grid-gap: 8px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.form-row label {
    color: var(--text-muted);
    font-size: 13px;
}

.property-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.property-button-row .button-dark {
    flex: 1 1 auto;
    min-width: 105px;
}


/* ============================================================
   SECTION: Equipment Upload Panel
   ============================================================ */

.equipment-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.equipment-panel-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.equipment-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.equipment-upload-actions .button-dark {
    flex: 1 1 auto;
}

.equipment-asset-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.equipment-asset-card {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    grid-gap: 9px;
    gap: 9px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.equipment-asset-preview-wrap {
    width: 58px;
    height: 48px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-asset-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.equipment-asset-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.equipment-asset-info strong {
    color: var(--text-main);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.equipment-asset-info span {
    color: var(--text-muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   SECTION: Layer Panel
   ============================================================ */

.layer-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.layer-panel-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.layer-summary-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.layer-summary-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(85, 200, 255, 0.12);
    border: 1px solid rgba(85, 200, 255, 0.25);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.layer-group-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.layer-group {
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
}

.layer-group-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
}

.layer-group-title span {
    color: var(--text-muted);
    font-size: 11px;
}

.layer-item-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.layer-item {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    padding: 8px;
    cursor: pointer;
}

.layer-item.selected {
    border-color: rgba(85, 200, 255, 0.85);
    background: rgba(85, 200, 255, 0.12);
}

.layer-item-main {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-gap: 8px;
    gap: 8px;
    align-items: start;
}

.layer-kind-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    border-radius: 999px;
    background: rgba(85, 200, 255, 0.16);
    border: 1px solid rgba(85, 200, 255, 0.35);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 800;
}

.layer-item-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.layer-item-text strong {
    color: var(--text-main);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.layer-item-text span {
    color: var(--text-muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.layer-item-text .layer-zindex {
    color: rgba(255, 255, 255, 0.52);
}

.layer-item-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.layer-mini-button {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 7px;
    cursor: pointer;
}

.layer-mini-button:hover {
    color: var(--text-main);
    border-color: rgba(85, 200, 255, 0.6);
}

.layer-mini-button.active {
    color: var(--text-main);
    background: rgba(85, 200, 255, 0.18);
    border-color: rgba(85, 200, 255, 0.55);
}

.layer-mini-button.danger {
    color: #ff9b9b;
    border-color: rgba(255, 120, 120, 0.35);
}

.layer-mini-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}


/* ============================================================
   SECTION: Export Panel
   ============================================================ */

.export-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.export-panel-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.export-summary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(85, 200, 255, 0.14);
    color: var(--text-main);
    border: 1px solid rgba(85, 200, 255, 0.35);
    font-size: 11px;
    font-weight: 800;
}

.export-main-button {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.export-status-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 8px;
    padding: 8px;
}

.export-status-box strong {
    color: var(--text-main);
}


/* ============================================================
   SECTION: Building Info Panel
   ============================================================ */

.building-info-panel {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 32;
    width: 340px;
    max-height: calc(100% - 86px);
    overflow: auto;
    background: rgba(5, 10, 14, 0.94);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.46);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.building-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.building-info-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.building-info-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-gap: 8px;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 13px;
}

.building-info-label {
    color: var(--text-muted);
}

.building-info-value {
    color: var(--text-main);
    word-break: break-word;
}

.building-info-raw {
    margin-top: 10px;
    max-height: 220px;
    overflow: auto;
    font-size: 11px;
}


/* ============================================================
   SECTION: Scale Status Panel
   ============================================================ */

.scale-status-panel {
    position: absolute;
    left: 14px;
    bottom: 52px;
    z-index: 31;
    width: 330px;
    background: rgba(5, 10, 14, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.scale-status-panel.calibrated {
    border-color: rgba(85, 200, 255, 0.7);
}

.scale-status-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.scale-status-title {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 700;
}

.scale-status-grid {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-gap: 6px 10px;
    gap: 6px 10px;
    margin-top: 10px;
    font-size: 13px;
}

.scale-status-label {
    color: var(--text-muted);
}

.scale-status-value {
    color: var(--text-main);
    font-weight: 700;
}

.scale-status-detail {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.scale-status-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}


/* ============================================================
   SECTION: Scale Formula / Measurement Explanation
   ============================================================ */

.scale-formula-box {
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 12px;
    line-height: 1.35;
}

.measurement-explanation-box {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(85, 200, 255, 0.08);
    border: 1px solid rgba(85, 200, 255, 0.28);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.measurement-explanation-box p {
    margin: 0 0 8px;
}

.measurement-explanation-box ul {
    margin: 0;
    padding-left: 18px;
}

.measurement-explanation-box li {
    margin-bottom: 5px;
}


/* ============================================================
   SECTION: Scale Ruler
   ============================================================ */

.scale-ruler-panel {
    position: absolute;
    left: 14px;
    bottom: 235px;
    z-index: 33;
    width: 220px;
    background: rgba(5, 10, 14, 0.88);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.scale-ruler-label-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.scale-ruler-label {
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
}

.scale-ruler-factor {
    color: var(--text-muted);
    font-size: 11px;
}

.scale-ruler-bar {
    position: relative;
    height: 18px;
    min-width: 60px;
    max-width: 170px;
    margin-bottom: 6px;
}

.scale-ruler-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 2px;
    background: var(--text-main);
}

.scale-ruler-end {
    position: absolute;
    bottom: 3px;
    width: 2px;
    height: 10px;
    background: var(--text-main);
}

.scale-ruler-end.left {
    left: 0;
}

.scale-ruler-end.right {
    right: 0;
}

.scale-ruler-values {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.25;
}

.scale-ruler-values strong {
    color: var(--text-main);
}


/* ============================================================
   SECTION: Draft Controls Panel
   ============================================================ */

.draft-controls-panel {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 34;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 10, 14, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.draft-controls-panel .text-muted {
    font-size: 12px;
}


/* ============================================================
   SECTION: Slider + Number Controls
   ============================================================ */

.slider-number-control {
    display: grid;
    grid-template-columns: 1fr 72px;
    grid-gap: 8px;
    gap: 8px;
    align-items: center;
}

.slider-control {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}


/* ============================================================
   SECTION: Status / Helper Text
   ============================================================ */

.status-bar {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 50;
    max-width: calc(100% - 24px);
    background: rgba(2, 6, 8, 0.82);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    padding: 7px 10px;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}

.status-bar strong {
    color: var(--text-main);
}


/* ============================================================
   SECTION: Debug / Code Blocks
   ============================================================ */

pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 8px;
}


/* ============================================================
   SECTION: Utility Classes
   ============================================================ */

.hidden {
    display: none !important;
}

.no-select {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.full-size {
    width: 100%;
    height: 100%;
}

.text-muted {
    color: var(--text-muted);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}


/* ============================================================
   SECTION: Export / Print Behavior
   ============================================================ */

/*
  The real export path uses html2canvas + jsPDF.
  These print rules are still useful as a fallback while testing.
*/
@media print {
    @page {
        size: landscape;
        margin: 0;
    }

    html,
    body {
        width: 100%;
        height: 100%;
        background: #ffffff;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .top-toolbar,
    .properties-panel,
    .equipment-upload-panel,
    .layer-panel,
    .export-panel,
    .status-bar,
    .maplibregl-ctrl,
    .maplibregl-control-container {
        display: none !important;
    }

    .app-shell,
    .editor-shell,
    .export-surface,
    .map-container,
    .overlay-container {
        width: 100vw !important;
        height: 100vh !important;
    }

    .editor-shell,
    .export-surface {
        position: fixed !important;
        inset: 0 !important;
    }
}


/* ============================================================
   SECTION: MapLibre Overrides
   ============================================================ */

/*
  MapLibre injects its own controls/classes.
  These rules keep controls readable against the dark editor UI.
*/
.maplibregl-ctrl-group {
    background: rgba(5, 10, 14, 0.88) !important;
    border: 1px solid var(--border-subtle) !important;
}

.maplibregl-ctrl-group button {
    filter: invert(1);
}

.maplibregl-ctrl-attrib {
    background: rgba(5, 10, 14, 0.72) !important;
    color: var(--text-muted) !important;
}

.maplibregl-ctrl-attrib a {
    color: var(--accent) !important;
}

.maplibregl-ctrl-scale {
    background: rgba(5, 10, 14, 0.72) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    font-weight: 700;
}


/* ============================================================
   END OF FILE: src/app/globals.css
   ============================================================ */
