/* Fixed height layout for configuration and visualization panes */
.fixed-height-container {
    height: calc(100vh - 250px);
    min-height: 600px;
    max-height: calc(100vh - 150px);
}

.config-pane-scroll {
    overflow-y: auto;
    overflow-x: hidden;
}

.viz-pane-scroll {
    overflow: auto;
}

/* Ensure plot container can scroll */
#plot-container {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    overflow: auto;
}

/* Toast container z-index wrapper */
.toast-container-z-index {
    z-index: 11000;
}

/* --- Refactored Inline Styles --- */

/* Width Utilities */
.w-full {
    width: 100%;
}

.mw-3rem {
    max-width: 3rem;
}

.mw-2rem {
    max-width: 2rem;
}

.w-2rem {
    width: 2rem;
}

.w-20px {
    width: 20px;
}

.w-80px {
    width: 80px;
}

.w-100px {
    width: 100px;
}

/* Height Utilities */
.h-100 {
    height: 100%;
}

.h-2rem {
    height: 2rem;
}

.h-20px {
    height: 20px;
}

.min-h-500 {
    min-height: 500px;
}

.max-h-150-scroll {
    max-height: 150px;
    overflow-y: auto;
}

.max-h-200-scroll {
    max-height: 200px;
    overflow-y: auto;
}

.max-h-500-scroll {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Colors & Backgrounds */
.bg-gray-100-custom {
    background-color: #f8f9fa;
}

.bg-white-custom {
    background-color: #ffffff;
}

.border-dashed-gray {
    border: 2px dashed #d2d6da;
}

.border-light-gray {
    border: 1px solid #ced4da;
}

/* Flexbox & Layout */
.flex-center-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gap-2px {
    gap: 2px;
}

/* Cursors */
.cursor-pointer {
    cursor: pointer;
}

.cursor-grab {
    cursor: grab;
}

/* Element Specific */
.color-picker-input {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #ced4da;
    cursor: pointer;
}

.color-picker-input-lg {
    width: 2rem;
    height: 2rem;
    max-width: 2rem;
    padding: 0.25rem;
}

.checkbox-lg {
    width: 20px;
    height: 20px;
    border: 1px solid #ced4da;
    cursor: pointer;
}

.checkbox-xl {
    width: 1.8rem;
    height: 1.8rem;
}

/* Visibility */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.mw-150px {
    max-width: 150px;
}

.mw-200px {
    max-width: 200px;
}

.mw-600px {
    max-width: 600px;
}

.list-style-none {
    list-style: none;
}

.config-sidebar-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsed-sidebar {
    width: 40px !important;
    min-width: 40px !important;
    overflow: hidden;
    background: #6b6969 !important;
    /* Dark Navy */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

/* Content Visibility Logic */
.collapsed-sidebar .expanded-content {
    display: none !important;
}

.collapsed-content {
    display: none;
}

.collapsed-sidebar .collapsed-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding-top: 20px;
    color: rgb(252, 251, 251);
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: auto;
    margin-bottom: auto;
}

.toggle-arrow {
    background: rgb(252, 251, 251);
    color: #111827;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: absolute;
    bottom: 20px;
    /* Position at bottom or midway */
    left: 50%;
    transform: translateX(-50%);
}

.watermark-wrapper {
    position: relative;
    overflow: hidden;
}

.watermark-layer {
    position: absolute;
    inset: -50%;
    background-image: url("/static/img/faviconBG.png");
    background-repeat: repeat;
    background-size: 300px 300px;
    /* controls spacing */
    opacity: 0.08;
    transform: rotate(-30deg);
    pointer-events: none;
    z-index: 1;
}

.content-layer {
    position: relative;
    z-index: 2;
}

.bg-blue-custom {
    background-color: #c1c1d1 !important;
}

#config-sidebar {
    height: 100vh;
    overflow-y: auto;
}

#plot-container {
    min-height: 500px;
}

/* Fix Soft-UI info card alignment */
/* Feature card alignment */
.info {
    position: relative;
    padding-top: 68px;
    /* ↓ reduced from 90 */
}

/* icon anchor */
.info .icon-shape {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 58px;
    /* slightly smaller visual block */
    width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* title spacing */
.info h5 {
    margin-top: 6px;
    margin-bottom: 8px;
}

/* paragraph spacing */
.info p {
    margin-top: 0;
    line-height: 1.45;
}

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

.font-row label {
    width: 50px;
    font-size: 13px;
}

.font-row input[type="number"] {
    width: 70px;
}

.font-row input[type="color"] {
    width: 34px;
    height: 34px;
    padding: 2px;
    border: none;
}

.section-title {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin: 12px 0;
    letter-spacing: 1px;
}

.color-picker {
    width: 3rem;
    height: unset;
    padding: 0.5rem;
    border: 1px solid #d2d6da;
    background-color: #ffffff;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-block;
    /* important */
    flex: 0 0 auto;
    /* prevents flex stretching */
}

.input-group-text.checkbox-addon {
    padding: 0 8px;
}

.input-group-text.checkbox-addon .form-check-input {
    margin: 0;
    border: none;
    box-shadow: none;
}

/* Ensure checkboxes inside input-groups are visible */
.input-group-text .form-check-input {
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #adb5bd !important;
    margin: 0;
    cursor: pointer;
}

.input-group-sm .color-picker {
    align-self: stretch;
}

.input-group-sm .color-picker {
    align-self: stretch;
}

/* remove the joint radius */
.no-right-radius {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.no-left-radius {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}


.row-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-inline label {
    min-width: 50px;
}

.row-inline input[type="number"] {
    width: 70px;
}

.row-inline input[type="color"] {
    width: 36px;
    height: 36px;
    padding: 2px;
    border: none;
}

.section {
    margin-bottom: 28px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Remove number input spinners (Chrome, Edge, Safari) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spinner (Firefox) */
input[type="number"] {
    -moz-appearance: textfield;
}