html,
body,
#viewDiv {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

/* ===============================
   Radio control panel
   =============================== */
#controlPanel {
    position: absolute;
    z-index: auto;

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    padding: 10px 18px 12px 12px;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);

    font-family: var(--esri-font-family);
    font-size: 14px;
}

/* Radio list layout */
#controlPanel .radio-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Each radio row */
#controlPanel label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 6px;
    user-select: none;
}

#controlPanel label:last-child {
    margin-bottom: 0;
}

/* ===============================
   Square radio button
   =============================== */
#controlPanel input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;

    width: 14px;
    height: 14px;

    border: 2px solid rgba(85, 85, 85, 0.8);
    border-radius: 0;
    margin-right: 8px;

    position: relative;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.85);

    transform: translateY(-1px);
}

#controlPanel input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    background: #555;
}

/* ===============================
   Radio label text
   =============================== */
#controlPanel .label-text {
    white-space: nowrap;
}

/* ===============================
   Legend
   =============================== */
.esri-legend {
    font-size: 12px;
    line-height: 1.3;
}

.esri-legend.esri-widget {
    padding: 6px 8px;
    max-width: 220px;

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.esri-legend__layer-table {
    width: auto;
}

/* ===============================
   ArcGIS widgets (Search, Zoom)
   =============================== */
.esri-widget {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ===============================
   Footer bar
   =============================== */
#footerBar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    padding: 6px 10px;

    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    font-family: var(--esri-font-family);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.75);

    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08);
}

#footerBar a {
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
}

#footerBar a:hover {
    text-decoration: underline;
}

#footerBar .divider {
    opacity: 0.6;
}

/* Adjust bottom UI offset for footer */
.esri-ui-bottom-right {
    margin-bottom: 15px;
}
