/* ============================================
   EDITOR VETORIAL - VECTORPRO 2026
   ============================================ */

/* Layout do Editor */
.editor-workspace-corel {
    display: grid;
    grid-template-columns: 52px 1fr 320px;
    height: calc(100vh - var(--header-height) - 70px);
    background: #1e1e1e;
    overflow: hidden;
}

/* Área do Canvas */
.canvas-area {
    display: flex;
    flex-direction: column;
    background: #2d2d2d;
    overflow: hidden;
}

/* Réguas estilo Corel */
.ruler-container {
    display: grid;
    grid-template-columns: 24px 1fr;
    grid-template-rows: 24px 1fr;
    background: #3a3a3a;
    border-bottom: 1px solid #1a1a1a;
    border-right: 1px solid #1a1a1a;
}

.ruler-corner {
    background: #3a3a3a;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.ruler-horizontal,
.ruler-vertical {
    background: #3a3a3a;
    position: relative;
    overflow: hidden;
}

.ruler-horizontal {
    height: 24px;
    border-bottom: 1px solid #1a1a1a;
}

.ruler-vertical {
    width: 24px;
    border-right: 1px solid #1a1a1a;
}

/* Canvas Wrapper */
.canvas-wrapper {
    flex: 1;
    position: relative;
    overflow: auto;
    background: #1e1e1e;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mainCanvas {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-radius: 2px;
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Mini Navegador */
.minimap {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 160px;
    background: #2b2b2b;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid #4a4a4a;
    z-index: 20;
}

.minimap-header {
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    border-bottom: 1px solid #4a4a4a;
    color: #ccc;
    background: #232323;
    border-radius: 6px 6px 0 0;
}

.minimap-content {
    padding: 8px;
    background: #1e1e1e;
}

/* Status Bar */
.canvas-statusbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2b2b2b;
    border-top: 1px solid #1a1a1a;
    padding: 4px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    z-index: 15;
}

/* Painéis Direitos */
.panels-right {
    background: #2b2b2b;
    border-left: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #e0e0e0;
}

.panel-tabs {
    display: flex;
    border-bottom: 1px solid #1a1a1a;
    background: #232323;
}

.panel-tab {
    flex: 1;
    padding: 10px 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    color: #aaa;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
}

.panel-tab:hover {
    background: #333;
    color: #fff;
}

.panel-tab.active {
    color: #0a7ac0;
    border-bottom-color: #0a7ac0;
    background: #2b2b2b;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #2b2b2b;
}

/* Propriedades */
.prop-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3a3a3a;
}

.prop-group-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.prop-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.prop-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.prop-field label {
    display: block;
    font-size: 9px;
    color: #888;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.prop-field input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    font-size: 11px;
    background: #1e1e1e;
    color: #e0e0e0;
    transition: all 0.15s ease;
}

.prop-field input:focus {
    outline: none;
    border-color: #0a7ac0;
    background: #232323;
}

/* Camadas */
.layers-list {
    max-height: 400px;
    overflow-y: auto;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    margin-bottom: 2px;
}

.layer-item:hover {
    background: #3a3a3a;
}

.layer-item.active {
    background: #0a7ac0;
    border-color: #005a9e;
}

.layer-visibility,
.layer-lock {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    cursor: pointer;
    border-radius: 3px;
}

.layer-visibility:hover,
.layer-lock:hover {
    background: #4a4a4a;
    color: white;
}

.layer-thumb {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    background: #1e1e1e;
}

/* Cores e Swatches */
.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 10px 0;
}

.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Scrollbar personalizada */
.vp-custom-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.vp-custom-scroll::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.vp-custom-scroll::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.vp-custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}