/* Texture Atlas Editor Styles */

/* Modal Overlay */
.texture-atlas-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.texture-atlas-editor-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Header */
.texture-atlas-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.texture-atlas-editor-title {
    margin: 0;
    color: #333;
}

.texture-atlas-editor-close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
}

.texture-atlas-editor-close-button:hover {
    color: #333;
}

/* Controls Section */
.texture-atlas-editor-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.texture-atlas-editor-button {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.texture-atlas-editor-button:hover {
    opacity: 0.9;
}

.texture-atlas-editor-button-add {
    background: #4CAF50;
    color: white;
}

.texture-atlas-editor-button-remove {
    background: #f44336;
    color: white;
}

.texture-atlas-editor-button-apply {
    background: #2196F3;
    color: white;
    padding: 10px 20px;
}

.texture-atlas-editor-button-cancel {
    background: #666;
    color: white;
    padding: 10px 20px;
}

/* Compositions Container */
.texture-atlas-editor-compositions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.texture-atlas-editor-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Composition Element */
.texture-atlas-editor-composition {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
}

.texture-atlas-editor-composition-front {
    background: #f8f9fa;
}

.texture-atlas-editor-composition-back {
    background: #fff;
}

.texture-atlas-editor-composition-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Preview Canvas */
.texture-atlas-editor-preview {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
}

/* Form Elements */
.texture-atlas-editor-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #555;
}

.texture-atlas-editor-select {
    width: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 10px;
    font-size: 12px;
}

.texture-atlas-editor-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.texture-atlas-editor-color-input {
    width: 100%;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 10px;
    cursor: pointer;
}

.texture-atlas-editor-color-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Footer */
.texture-atlas-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .texture-atlas-editor-compositions-container {
        grid-template-columns: 1fr;
    }
    
    .texture-atlas-editor-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .texture-atlas-editor-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .texture-atlas-editor-button {
        width: 100%;
    }
}
