/* ============================================
   GEOVATE MAP PREPARER — LIGHT MODE (FINAL)
   Clean rebuild – no preview panel
   ============================================ */

/* RESET -------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f5f7;
    font-family: Arial, sans-serif;
    color: #222;
}

/* PAGE STRUCTURE ---------------------------------------------- */

.page-wrap {
    max-width: 1850px;
    margin: 10px auto 30px auto;
    padding: 0 12px;
}

/* HEADER ------------------------------------------------------- */

.header {
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: #1976d2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.title-block h1 {
    margin: 0;
    font-size: 20px;
}

.title-block p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #555;
}

/* LAYOUT ------------------------------------------------------- */

.main-layout {
    display: flex;
    gap: 20px;
}

/* PANELS ------------------------------------------------------- */

.panel {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* LEFT PANEL --------------------------------------------------- */

.left-panel {
    width: 320px;
    flex: 0 0 320px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* SCROLLBAR ---------------------------------------------------- */

.left-panel::-webkit-scrollbar {
    width: 8px;
}
.left-panel::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 8px;
}
.left-panel::-webkit-scrollbar-thumb {
    background: #c7c9cc;
    border-radius: 8px;
}
.left-panel::-webkit-scrollbar-thumb:hover {
    background: #a9acb3;
}

/* TITLES + HELP TEXT ------------------------------------------ */

.panel-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: bold;
}

.spaced-title {
    margin-top: 16px;
}

.panel-help {
    margin: 0 0 8px;
    font-size: 12px;
    color: #555;
    line-height: 1.35;
}

.panel-help.tiny {
    font-size: 10px;
    color: #777;
}

/* UPLOAD DROPZONE --------------------------------------------- */

.upload-dropzone {
    display: block;
    border: 2px dashed #b0bec5;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 10px;
    cursor: pointer;
    margin-bottom: 12px;
    text-align: center;
    transition: 0.2s;
}

.upload-dropzone:hover {
    background: #eef4ff;
    border-color: #1976d2;
}

.upload-dropzone.drag-over {
    background: #e3f2fd;
    border-color: #1976d2;
}

/* BUTTONS ------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 6px;
    border: none;
    background: #1976d2;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: 0.15s;
    white-space: nowrap;
}

.btn:hover {
    background: #1e88e5;
}

.btn-small {
    padding: 5px 9px;
    font-size: 12px;
}

.btn-icon {
    padding: 4px 7px;
    min-width: 26px;
    font-size: 12px;
}

.full-width {
    width: 100%;
}

.subtle-btn {
    background: #e3e6ea;
    color: #333;
}

.subtle-btn:hover {
    background: #d4d7db;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

/* SPECIAL BUTTON FOR REMOVE IMAGE ----------------------------- */

#removeImageBtn {
    margin-top: 6px;
    background: #eceff1;
    color: #333;
    border: 1px solid #cfd8dc;
}

#removeImageBtn:hover {
    background: #dce1e4;
}

/* SLIDERS ------------------------------------------------------- */

.control-block {
    margin-top: 12px;
}

.control-label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
}

.slider-row {
    display: grid;
    grid-template-columns: 70px 1fr 38px;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

/* BACKGROUND SWATCHES ------------------------------------------ */

.bg-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.bg-swatch {
    width: 22px;
    height: 22px;
    border: 1px solid #cfd8dc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.bg-swatch.selected {
    box-shadow: 0 0 0 2px #1976d2;
}

/* BACKGROUND FILL SWATCH COLORS -------------------------------- */

.bg-white       { background: #ffffff; }
.bg-black       { background: #000000; }
.bg-lightgrey   { background: #f1f3f5; }

.bg-ocean       { background: #0077b6; }
.bg-sky         { background: #4dabf7; }

.bg-soft-yellow { background: #ffe066; }
.bg-light-green { background: #a5d8a2; }
.bg-soft-red    { background: #ff6b6b; }


/* WORKSPACE ----------------------------------------------------- */

.workspace-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
}

.workspace-frame {
    margin-top: 14px;
    padding: 30px;
    background: #e0e3e7;
    border-radius: 12px;
    border: 1px solid #cfd8dc;
}

#workCanvas {
    background: #b0bec5;
    border-radius: 6px;
}

/* TEXT TOOLS -------------------------------------------------- */

.text-tools {
    max-width: 900px;
    width: 100%;
    margin-bottom: 12px;
}

.text-input-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.text-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.text-swatch {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid #cfd8dc;
    cursor: pointer;
}

.text-swatch.selected {
    box-shadow: 0 0 0 2px #1976d2;
}

/* TEXT COLOR SWATCH COLORS -------------------------------------- */

.text-black     { background: #000000; }
.text-white     { background: #ffffff; border: 1px solid #999; }
.text-red       { background: #ff4d4f; }
.text-green     { background: #4caf50; }
.text-blue      { background: #1976d2; }
.text-yellow    { background: #ffc107; }
.text-magenta   { background: #e91e63; }
.text-cyan      { background: #00bcd4; }


/* FOOTER --------------------------------------------------------- */

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 11px;
    color: #666;
}
