/* ============================================
   GEOVA — Modern UI Theme (Final Style Sheet)
   ============================================ */

/* GENERAL LAYOUT --------------------------------------------------- */

:root {
    --geovateFade: 1;
}

.full-reset-btn {
    display: block;
    width: 100%;
    background: #1e2a38; /* dark navy */
    color: #ffffff;
    border: none;
    padding: 14px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    outline: none;          /* prevent blue/white outline */
}

.full-reset-btn:hover {
    background: #263447;    /* smooth lighter navy */
    color: #ffffff;         /* stays white, no flash */
}

.full-reset-btn:focus {
    outline: none;          /* also remove focus halo */
    box-shadow: none;
}



.prep-btn {
    display: inline-block;
    background: #8b0000; /* dark red */
    color: #fff;
    padding: 18px 25px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background 0.2s ease;

    /* your requested navy border */
    border: 4px solid #0d1a3a;
}

.prep-btn:hover {
    background: #a30000;
}

/* Global fade uses CSS filter so it stacks with any element opacity */
.map-pin,
.map-note,
.range-ring,
.draw-rect {
    filter: opacity(var(--geovateFade));
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f5f7;
    color: #222;
    overflow: hidden;
}

.wrapper {
    display: flex;
    height: 100vh;
}

/* GEOVATE MAP PREPARER PROMO BOX & BUTTON -------------------------- */

.prep-box {
    background: #f0f2f5;
    border: 1px solid #d7dbe0;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.prep-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2d3d;
    margin-bottom: 6px;
}

.prep-text {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.prep-link {
    display: block;
    width: 100%;
    background: #b32020;
    color: #fff;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    margin-top: 6px;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.prep-link:hover {
    background: #8f1919;
}

.prep-link .prep-top {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.prep-link .prep-bottom {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-top: 3px;
}

.prep-link .prep-small {
    display: block;
    font-size: 11px;
    margin-top: 6px;
    opacity: 0.8;
}

.prep-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #666;
}

/* Fancy GEOVATE reset button with multi-line warning */
.reset-all-btn {
    display: block;
    width: 100%;
    background: #d9534f;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none; /* remove underline */
    cursor: pointer;
    margin: 10px 0 20px 0;
    transition: background 0.2s ease, transform 0.1s ease;
}

.reset-all-btn:hover {
    background: #c9302c;
}

.reset-all-btn:active {
    transform: scale(0.97);
}


/* PANEL BOX -------------------------------------------------------- */

.panel-box {
    background: #f0f2f5;
    border: 1px solid #d7dbe0;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.panel-text {
    font-size: 13px;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.panel-subtitle {
    font-size: 14px;
    font-weight: bold;
    color: #2d3c50;
    margin-bottom: 6px;
}

.marker-box {
    background: #f0f2f5;           /* matches prep-box & panel-box */
    border: 1px solid #d7dbe0;    /* soft GEOVATE border */
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;

    box-shadow: 0 2px 6px rgba(0,0,0,0.06); /* Optional GEOVATE-style soft shadow */
}


/* SIDEBAR ----------------------------------------------------------- */

.sidebar {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    background: linear-gradient(180deg, #e3e7ef, #f6f7fa);
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden; /* remove horizontal scrollbar */
    box-shadow: 3px 0 10px rgba(0,0,0,0.06);
    box-sizing: border-box;
    font-size: 14px;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}
.sidebar::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #c7c9cc;
    border-radius: 8px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a9acb3;
}

.sidebar h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1c2d4a;
}

.section-title {
    margin-top: 18px;
    margin-bottom: 6px;   /* spacing below heading */
    font-size: 13px;
    font-weight: bold;
    color: #2d3c50;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}



.section-title:hover {
    color: #000;
}

/* BUTTONS ----------------------------------------------------------- */

button {
    width: 100%;
    margin: 4px 0;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    background: #ffffff;
    color: #222;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: all 0.18s ease;
}

button:hover {
    transform: translateY(-2px);
    background-color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-row {
    display: flex;
    gap: 8px;
    margin: 6px 0;
}

.btn-row button {
    flex: 1;
}

/* FULL RESET BUTTON (override global button:hover) */
.full-reset-btn {
    display: block;
    width: 100%;
    background: #1e2a38; /* dark navy */
    color: #ffffff;
    border: none;
    padding: 14px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

/* override the global button:hover=white */
button.full-reset-btn:hover {
    background-color: #263447 !important; /* slightly lighter navy */
    color: #ffffff !important;
}


/* SPECIAL BUTTONS --------------------------------------------------- */

.reset-all-btn {
    background: #ff5959;
    color: #fff;
    margin-top: 12px;
}

.reset-all-btn:hover {
    background: #ff7a7a !important;
}

/* MARKER PALETTE ---------------------------------------------------- */

.palette {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.palette-ball {
    width: 26px;
    height: 26px;
    background: #ff5252;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.18s ease;
}

.palette-ball.selected {
    border-color: #2a3c5a;
    transform: scale(1.12);
}

.palette-ball:hover {
    transform: scale(1.18);
}

/* MAP AREA ---------------------------------------------------------- */

.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.map-inner {
    width: 1800px;
    height: 900px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

/* MARKERS ----------------------------------------------------------- */

.map-pin {
    width: 20px;
    height: 20px;
    position: absolute;
    cursor: pointer;
    background: var(--pin-color);
    border-radius: 50%;
    border: 2px solid #111;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.map-pin:hover {
    transform: scale(1.15);
    filter: brightness(1.15);
}

.pin-size-s { width: 10px; height: 10px; }
.pin-size-m { width: 16px; height: 16px; }
.pin-size-l { width: 24px; height: 24px; }

.pin-shape-circle { border-radius: 50%; }
.pin-shape-square { border-radius: 3px; }
.pin-shape-diamond {
    transform: rotate(45deg);
    border-radius: 3px;
}

.pin-border {
    border: 2px solid #000;
}

/* NOTES ------------------------------------------------------------- */

.map-note {
    position: absolute;
    padding: 6px 10px;
    font-size: 13px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #fff;
    white-space: nowrap;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    pointer-events: none;
    transform: translateY(-4px);
    opacity: 0;
    animation: fadeInNote 0.25s ease forwards;
}

@keyframes fadeInNote {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(-4px); }
}

.map-note::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: -5px;
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.55);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* CONTEXT MENU ------------------------------------------------------ */

.ball-menu {
    position: absolute;
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.16);
    z-index: 999;
    width: 170px;
}

.ball-menu button {
    margin: 5px 0;
}

.ball-menu-separator {
    height: 1px;
    background: #ccc;
    margin: 8px 0;
}

/* COLOR GRID -------------------------------------------------------- */

.ball-color-grid {
    display: grid;
    grid-template-columns: repeat(6, 20px);
    gap: 6px;
    margin: 10px 0 14px 0;
}

.ball-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #bbb;
    transition: transform 0.18s ease;
}

.ball-color-swatch:hover {
    transform: scale(1.15);
}

/* ZOOM PANEL -------------------------------------------------------- */

.zoom-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #d2d5df;
}

.zoom-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.zoom-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #eef1f7;
    border-radius: 40px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.zoom-buttons button {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 14px !important;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.zoom-btn {
    font-size: 20px !important;
    font-weight: bold;
}

.zoom-reset {
    font-size: 14px !important;
    font-weight: bold;
}

/* PAN BUTTONS ------------------------------------------------------- */

.pan-buttons {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pan-row {
    display: flex;
    gap: 8px;
    margin: 4px 0;
}

.zoom-level-label {
    font-size: 13px;
    color: #555;
    margin-left: 4px;
}

/* MARKER OPTIONS ---------------------------------------------------- */

.marker-options {
    margin-top: 10px;
    --pin-color: #ff5252;
}

.marker-subtitle {
    margin-top: 8px;
    font-weight: bold;
    font-size: 13px;
    color: #444;
}

.marker-size-row,
.marker-shape-row {
    display: flex;
    gap: 10px;
    margin: 6px 0 10px 0;
    align-items: center;
}

.size-option {
    width: 18px;
    height: 18px;
    background: var(--pin-color);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid #ddd;
    transition: 0.15s;
}

.size-option[data-size="s"] { width: 12px; height: 12px; }
.size-option[data-size="m"] { width: 18px; height: 18px; }
.size-option[data-size="l"] { width: 26px; height: 26px; }

.size-option.active {
    opacity: 1;
    border-color: #444;
}

.shape-option {
    width: 20px;
    height: 20px;
    background: var(--pin-color);
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid #ddd;
    transition: 0.15s;
}

.shape-option.active {
    opacity: 1;
    border-color: #444;
}

.shape-circle { border-radius: 50%; }
.shape-square { border-radius: 3px; }
.shape-diamond {
    transform: rotate(45deg);
    border-radius: 3px;
}

/* -------------------------------------------
   BORDER TOGGLE — Red Background + Options
------------------------------------------- */

.border-toggle { display: flex; align-items: center; gap: 6px; margin-top: 5px; }

/* DRAW TOOL SHAPES ------------------------------------------------- */

.range-ring-preview {
    position: absolute;
    border: 2px dashed rgba(0,0,0,0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 50;
}

.range-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #000;
    background: transparent;
    pointer-events: auto;
    cursor: pointer;
    z-index: 50;
    transition: transform 0.15s ease;
}

.range-ring:hover {
    transform: scale(1.05);
}

.rect-preview {
    position: absolute;
    border: 2px dashed rgba(0,0,0,0.6);
    background: rgba(0,0,0,0.05);
    pointer-events: none;
    z-index: 50;
}

.draw-rect {
    position: absolute;
    border: 2px solid #000;
    background: rgba(0,0,0,0.1);
    pointer-events: auto;
    cursor: pointer;
    z-index: 50;
    transition: transform 0.15s ease;
}

.draw-rect:hover {
    transform: scale(1.02);
}

.shape-selected {
    outline: 3px solid #4a90ff;
    outline-offset: 3px;
}

/* ---------------------------------------------------------------
   GEOVATE Reset Confirmation Modal
--------------------------------------------------------------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.modal-box {
    background: #ffffff;
    width: 340px;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    text-align: center;
    animation: modalFadeIn 0.25s ease;
    border: 1px solid #d7dbe0;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #b32020;
    margin-bottom: 12px;
}

.modal-text {
    font-size: 14px;
    color: #444;
    margin-bottom: 18px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.modal-btn.cancel {
    background: #e0e0e0;
    color: #333;
}

.modal-btn.cancel:hover {
    background: #d4d4d4;
}

.modal-btn.confirm {
    background: #b32020;
    color: #fff;
}

.modal-btn.confirm:hover {
    background: #8f1919;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
