/* Body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    box-sizing: border-box;
}

/* Layout container to organize the control panel and preview */
.layout-container {
    display: flex;
    width: 100%;
}

/* Control panel (left side) */
.control-panel {
    width: 250px;
    padding: 20px;
    border-right: 2px solid #ddd;
    background-color: #f9f9f9;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: auto;
}

/* Rectangle preview (right side) */
.rectangle-preview {
    flex-grow: 1;
    padding: 20px;
    background-color: #f0f0f0;
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base rectangle */
.base-rectangle {
    position: absolute;
    background-color: #d3d3d3;
    border: 1px solid #000;
    border-radius: 5px;
    width: 200px;
    height: 50px;
}

/* Thumb rectangle */
.thumb-rectangle {
    position: absolute;
    background-color: #007bff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    top: 15px;
    left: 90px;
}

/* Text preview */
.text-preview {
    position: absolute;
    font-size: 14px;
    color: #000000;
    text-align: center;
    top: -25px; /* Text above the base rectangle */
    width: 100%;
}

/* Draggable tabs for base, thumb, and text configurations */
.draggable-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-link {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    user-select: none;
    position: relative;
}

.tab-link.orange {
    background-color: orange;
}

.tab-link .grip {
    font-size: 12px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hidden class to hide inactive tab content */
.hidden {
    display: none;
}

/* Config group item for each input slider */
.config-group-item {
    margin-bottom: 15px;
}

.config-group-item label {
    display: block;
    margin-bottom: 5px;
}

.config-group-item input[type="range"],
.config-group-item input[type="color"],
.config-group-item select {
    width: 100%;
}

.config-group-item span {
    display: inline-block;
    margin-top: 5px;
}

/* Scrollable control panel */
.control-panel {
    overflow-y: auto;
}

/* Scrollable content */
.tab-content {
    padding-bottom: 30px;
}
