
/* =========================== */
/* Global Compact Styling      */
/* =========================== */

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 20px;
    margin-left: 192px; /* Shift page ~2 inches */
    color: #000;
}

/* =========================== */
/* Header Area                 */
/* =========================== */

header {
    text-align: left;
    margin-bottom: 24px;
}

.logo {
    width: 170px;
    height: auto;
}

.sensor-image {
    width: 95px;
    height: auto;
    margin-left: 16px;
}

.title {
    font-size: 18px;
    margin: 12px 0;
}

/* =========================== */
/* Section Titles              */
/* =========================== */

.section-title {
    font-size: 15px;
    font-weight: bold;
    margin: 16px 0 12px 0;
}

/* =========================== */
/* Section Layout              */
/* =========================== */

.section {
    margin-bottom: 28px;
}

.two-column-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.controls-column {
    flex: 0 0 auto;
}

.defaults-column {
    flex: 0 0 auto;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 16px;
    margin-top: 4px;
    margin-left: 96px;
}

.defaults-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
}

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

.defaults-text {
    margin: 0;
    font-size: 13px;
    font-style: italic;
}

.row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.column {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.inline-label {
    white-space: nowrap;
    font-size: 14px;
}

/* =========================== */
/* Form Controls               */
/* =========================== */

select,
input[type="number"],
input[type="text"],
input[type="checkbox"] {
    font-size: 14px;
}

.input-small {
    width: 80px;
    height: 22px;
}

.input-medium {
    width: 150px;
    height: 22px;
}

.input-wide {
    width: 220px;
    height: 22px;
}

.input-unit {
    width: 60px;
    height: 26px;
}

/* =========================== */
/* Buttons                     */
/* =========================== */

button {
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
}

.help-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    padding: 0;
}

.generate-button {
    width: 170px;
    height: 30px;
    margin-top: 20px;
    font-size: 15px;
}

.action-button {
    margin-top: 12px;
    margin-right: 10px;
}

/* =========================== */
/* Hex Display                 */
/* =========================== */

.inline-title {
    margin: 0;
    font-size: 15px;
}

.hex-display {
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
}

/* =========================== */
/* Modal Dialog Styles         */
/* =========================== */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    width: 340px;
    max-width: 90%;
    text-align: left;
    font-size: 14px;
}

/* =========================== */
/* Back Navigation             */
/* =========================== */

.nav-header {
    margin-top: 32px;     /* space ABOVE Back to Home */
    margin-bottom: 12px;  /* optional space below */
}

.back-button {
    background: #f0f0f0;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

.back-button:hover {
    background: #e0e0e0;
}

