body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex: 1;
    background-color: #fff;
}

.controls {
    background-color: #313131;
    display: flex;
    flex-direction: column;
    justify-content: left;
    width: 120px;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding-left: 5px;
    font-size: 12px;
    color: #fff;
}

.controls h1 {
    font-size: 14px;
    text-align: left;
    color: #fff;
    margin: 15px 0px 0px 5px;
}

.tab-buttons {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ddd;
}

.tab-buttons button {
    padding: 10px;
    background-color: #f9f9f9;
    border: none;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
}

.tab-buttons button:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    font-size: 12px;
}

.tab-buttons button.active {
    background-color: #e0e0e0;
}

.panel {
    display: none;
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}

.panel.active {
    display: block;
}

input[type="color"], input[type="number"] {
    padding: 6px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    width: 50px;
}

.controls button {
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    border: 0px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.controls button img {
    width: 30px;
}

canvas {
    border: 1px solid #ccc;
    flex: 1;
    cursor: crosshair;
    margin-right: 0px;
}

.dimension-div {
    margin-top: 10px;
}
.dimension-div label {
    margin-left: 5px;
}

.furniture-items {
    margin-bottom: 40px;
}

.furniture-items img {
    width: 50px;
    height: auto;
    margin: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.zoom-controls {
    position: relative;
}

.zoom-controls button {
    width: 30px;
    height: 30px;
    background-color: #fc0909;
    z-index: 999;
}
