/* Modal và Editor Styles */
.image-editor-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.image-editor-modal.show {
    display: block;
    opacity: 1;
}

.image-editor-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 95%;
    max-width: 900px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
}

.image-editor-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.image-editor-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-editor-preview {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
}

.image-editor-preview img {
    max-width: 100%;
    max-height: 60vh;
}

.image-editor-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.image-editor-tool-group {
    flex: 1;
    min-width: 200px;
}

.image-editor-tool-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.image-editor-tool-group input[type="range"] {
    width: 100%;
}

.image-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.image-editor-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.image-editor-btn:hover {
    background-color: #45a049;
}

.image-editor-btn.cancel {
    background-color: #f44336;
}

.image-editor-btn.cancel:hover {
    background-color: #d32f2f;
}

/* Thêm style cho container */
#compass-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#compass {
    width: 100%;
    max-width: 800px;
    max-height: 600px;
    height: auto;
}

#floorplan-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    max-height: 600px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

#floorplan-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

/* Mobile Upload Options */
.mobile-upload-options {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-upload-options button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

#takePhotoBtn {
    background: #4CAF50;
    color: white;
}

#choosePhotoBtn {
    background: #2196F3;
    color: white;
}

#cancelUploadBtn {
    background: #f44336;
    color: white;
}

@media (max-width: 768px) {
    .image-editor-container {
        flex-direction: column;
    }
    
    .image-editor-tools {
        flex-direction: column;
    }
}
