﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background-color: #f0f0f0;
    overflow-x: hidden;
}
/* طراحی کلی */
#container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.side-panel {
    width: 100%;
    background: #fff;
    padding: 10px;
    overflow-y: auto;
    /*border: 1px solid #ccc;*/
    border: 0px solid #ccc;
}

.middle-panel {
    flex: 1;
    position: relative;
    background-color: #e8e8e8;
    margin: 10px;
    border: 2px dashed #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#upload-section {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#upload-input {
    display: inline-block;
}

#room-image {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
}

#main-canvas {
    width: 100%;
    height: 100%;
    position: relative;
}

.object-control-panel-box {
    position: absolute;
    top: -60px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    display: none;
    padding: 5px 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 50px;
}

.control-panel-box {
    position: absolute;
    top: -60px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    display: none;
    padding: 5px 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 50px;
}

.control-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    outline: none;
}

.panel-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
}

#trash-area {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: 100px;
    background: #ff4d4d;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
}

#undo-btn {
    position: fixed;
    bottom: 10px;
    right: 120px;
    padding: 8px 12px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}
/* آبجکت‌ها */
.object-item {
    width: 100%;
    margin-bottom: 10px;
    cursor: grab;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .object-item img {
        max-width: 100px;
        max-height: 100px;
    }

.draggable {
    position: absolute;
    cursor: grab;
    transition: transform 0.2s;
}

.dragging {
    opacity: 0.7;
    cursor: grabbing;
}
