/* custom-Navigator.css
   Custom styling for the Indoor Navigator prototype.
   Plain class-based rules only (no CSS custom properties / var()). */

body {
    background-color: #eef1f5;
    color: #2b2f36;
    font-family: "Segoe UI", Arial, sans-serif;
    padding-top: 64px;
}

/* ---------- Navbar ---------- */
.nav-brandbar {
    background-color: #1f2a44;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-brandbar .navbar-brand {
    color: #ffffff;
    letter-spacing: 0.3px;
}

.nav-logo-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ff6b4a;
    border-radius: 50%;
    margin-right: 6px;
}

.nav-brandbar .nav-link {
    color: #c7d0e0;
    font-weight: 500;
}

.nav-brandbar .nav-link:hover {
    color: #ffffff;
}

.nav-brandbar .nav-link.active {
    color: #ffffff;
    border-bottom: 2px solid #ff6b4a;
}

/* ---------- Hero ---------- */
.hero {
    background-color: #1f2a44;
    color: #ffffff;
    border-radius: 14px;
    padding: 54px 40px;
    margin-bottom: 36px;
}

.hero h1 {
    font-weight: 700;
}

.hero .lead {
    color: #cdd6e6;
}

/* ---------- Step cards ---------- */
.step-card {
    background-color: #ffffff;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    padding: 26px;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(31, 42, 68, 0.12);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ff6b4a;
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 14px;
}

/* ---------- Panels ---------- */
.panel {
    background-color: #ffffff;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 24px;
}

.panel-title {
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 4px;
}

.panel-hint {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 0;
}

/* ---------- Map workspace ---------- */
.map-stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border: 1px solid #d6dbe4;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    line-height: 0;
}

.map-stage img {
    display: block;
    max-width: 100%;
    height: auto;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-empty {
    border: 2px dashed #c2cad6;
    border-radius: 10px;
    background-color: #f7f9fc;
    color: #7a8494;
    padding: 60px 20px;
    text-align: center;
}

/* ---------- Editor toolbar ---------- */
.tool-btn {
    margin: 0 6px 8px 0;
}

.mode-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: #eef1f5;
    color: #1f2a44;
    font-size: 13px;
    font-weight: 600;
}

.brush-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9aa6bd;
    margin-top: 2px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.legend-path { background-color: #2f80ed; }
.legend-unit { background-color: #ff6b4a; }
.legend-route { background-color: #27ae60; }

/* ---------- SVG element styling ---------- */
.svg-edge {
    stroke: #9fb3d1;
    stroke-width: 4;
    stroke-linecap: round;
}

.svg-route {
    stroke: #27ae60;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.svg-node-path {
    fill: #2f80ed;
    stroke: #ffffff;
    stroke-width: 2;
    cursor: pointer;
}

.svg-node-unit {
    fill: #ff6b4a;
    stroke: #ffffff;
    stroke-width: 2;
    cursor: pointer;
}

.svg-node-selected {
    stroke: #1f2a44;
    stroke-width: 4;
}

.svg-node-start {
    fill: #27ae60;
    stroke: #ffffff;
    stroke-width: 3;
}

.svg-node-end {
    fill: #eb5757;
    stroke: #ffffff;
    stroke-width: 3;
}

.svg-label {
    font-family: Arial, sans-serif;
    font-size: 13px;
    fill: #1f2a44;
    pointer-events: none;
}

/* ---------- Unit list ---------- */
.unit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color: #fbfcfe;
}

.unit-row .unit-name {
    font-weight: 600;
    color: #1f2a44;
}

.unit-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.custom-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #1d6b3a;
    background-color: #d8f3e2;
    border-radius: 10px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ---------- Booth content cards & previews ---------- */
.booth-preview {
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 14px;
    min-height: 240px;
    max-height: 320px;
    overflow: auto;
}

.booth-card {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #2b2f36;
}

.booth-title {
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 4px;
}

.booth-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #ff6b4a;
    background-color: #ffe7e0;
    border-radius: 10px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.booth-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.booth-list {
    font-size: 13px;
    padding-left: 18px;
    margin-bottom: 0;
}

.booth-list li {
    margin-bottom: 2px;
}

/* ---------- Booth popup on the navigate map ---------- */
.booth-popup {
    position: absolute;
    z-index: 20;
    width: 280px;
    max-width: 80%;
    background-color: #ffffff;
    border: 1px solid #d6dbe4;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(31, 42, 68, 0.22);
    padding: 16px 16px 14px;
    line-height: 1.4;
}

.booth-popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #9aa6bd;
    cursor: pointer;
}

.booth-popup-close:hover {
    color: #1f2a44;
}

.booth-popup-body {
    max-height: 240px;
    overflow: auto;
    margin-bottom: 12px;
    margin-top: 4px;
}

.booth-popup-actions {
    display: flex;
    gap: 8px;
}

.booth-popup-actions .btn {
    flex: 1;
}

/* ---------- Status banner ---------- */
.status-line {
    font-weight: 600;
    color: #1f2a44;
}

.route-summary {
    background-color: #eafaf0;
    border: 1px solid #bfe6cd;
    border-radius: 10px;
    padding: 14px 18px;
    color: #1d6b3a;
}

.route-error {
    background-color: #fdecea;
    border: 1px solid #f5c4bd;
    border-radius: 10px;
    padding: 14px 18px;
    color: #b03525;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: #1f2a44;
    color: #c7d0e0;
    padding: 22px 0;
    margin-top: 48px;
}

.footer-brand {
    font-weight: 700;
    color: #ffffff;
}

.footer-muted {
    color: #9aa6bd;
    font-size: 14px;
}
