/* editor/css/style.css */
body, html { height: 100%; overflow: hidden; background-color: #f0f2f5; font-family: 'Segoe UI', sans-serif; overscroll-behavior: none; }
.main-container { height: 100vh; display: flex; }
.col-left { flex: 1; display: flex; align-items: center; justify-content: center; background-color: #e9ecef; position: relative; padding: 20px; overflow: hidden; }
#visual-wrapper { transition: transform 0.1s ease-out; transform-origin: center center; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.canvas-container-wrapper { background: white; line-height: 0; border-radius: 4px; }
.col-right { width: 380px; background: #fff; border-left: 1px solid #ddd; display: flex; flex-direction: column; z-index: 100; }
.sidebar-header { padding: 15px; border-bottom: 1px solid #eee; background: #fff; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; }
.sidebar-tabs { display: flex; border-bottom: 1px solid #eee; background: #f8f9fa; overflow-x: auto; }
.tab-btn { flex: 1; min-width: 50px; border: none; background: none; padding: 15px 0; font-size: 1.2rem; color: #6c757d; cursor: pointer; transition: all 0.2s; border-bottom: 3px solid transparent; }
.tab-btn:hover { color: #0d6efd; background: #f1f5f9; }
.tab-btn.active { color: #0d6efd; border-bottom-color: #0d6efd; background: #fff; font-weight: bold; }
.tools-scroll-area { flex: 1; overflow-y: auto; padding: 20px; }
.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.btn-upload-modern { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #eef2ff; border: 2px dashed #4f46e5; color: #4f46e5; padding: 12px; font-weight: 700; border-radius: 8px; cursor: pointer; font-size: 0.9rem; }
.assets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.asset-item { aspect-ratio: 1/1; border-radius: 6px; border: 2px solid #eee; background-size: cover; background-position: center; cursor: pointer; transition: transform 0.2s; position: relative; }
.asset-item:hover { transform: scale(1.05); border-color: #0d6efd; }
.sticker-item img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.form-range-modern { height: 4px; width: 100%; display: block; }
.section-label { font-size: 0.75rem; font-weight: 800; color: #adb5bd; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 0.5px; }
.footer-action { padding: 15px; border-top: 1px solid #eee; background: #f8f9fa; }
.btn-save-system { background: #198754; color: #fff; border: none; width: 100%; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; }

/* Loading e Tratamento de Erro */
#loadingOverlay { position: absolute; top:0; left:0; width: 100%; height: 100%; background: rgba(255,255,255,0.98); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align:center; }
#loadingMsg { margin-top: 10px; font-weight: bold; color: #666; }
.text-error { color: #dc3545 !important; font-size: 0.9rem; margin-top:5px; }
.color-picker-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f8f9fa; border-radius: 10px; border: 1px solid #e9ecef; }
.color-input-modern { width: 40px; height: 40px; padding: 3px; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; }

@media (max-width: 992px) {
    .main-container { flex-direction: column; }
    .col-left { height: 45%; flex: none; border-bottom: 1px solid #ddd; z-index: 10; }
    .col-right { width: 100%; height: 55%; }
}