@charset "UTF-8";

:root {
    --de-color01: #FF9900;
    --de-color02: #FFE000;
    --de-color03: #FF4800;
    --de-color05: #353b3b;
    --de-color06: #1b1d1d;
}

/* ── Colunas gerais ─────────────────────────────────────────────────────── */
.de-columns {
    display: flex;
    gap: 20px;
    max-width: 900px;
    margin: 20px auto;
    align-items: flex-start;
}

.de-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

@media (max-width: 768px) {
    .de-columns {
        flex-direction: column;
    }
}

.de-panel {
    background: var(--de-color06);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: left;
    box-sizing: border-box;
}

.de-panel h2 {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    color: var(--de-color02);
    text-align: left;
}

.de-panel .de-hint {
    font-size: 0.85em;
    color: #aaa;
    margin: 6px 0 0 0;
}

/* ── Tipo de Display (abas) ─────────────────────────────────────────────── */
.de-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.de-type-card {
    background: var(--de-color05);
    border: 2px solid var(--de-color01);
    border-radius: 8px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s, transform 0.15s;
}

.de-type-card i {
    display: block;
    font-size: 1.6em;
    margin-bottom: 6px;
    color: var(--de-color01);
}

.de-type-card span {
    font-size: 0.95em;
}

.de-type-card:hover {
    transform: translateY(-2px);
}

.de-type-card.selected {
    background: var(--de-color06);
    border-color: var(--de-color03);
}

.de-type-card.selected i {
    color: var(--de-color03);
}

/* ── Campos genéricos ───────────────────────────────────────────────────── */
.de-field {
    margin-bottom: 14px;
}

.de-field:last-child {
    margin-bottom: 0;
}

.de-field label {
    display: block;
    font-size: 0.9em;
    color: #ddd;
    margin-bottom: 6px;
}

.de-field textarea,
.de-field input[type="text"],
.de-field input[type="number"],
.de-field select {
    width: 100%;
    background-color: var(--de-color05);
    color: white;
    border: 2px solid var(--de-color01);
    border-radius: 5px;
    padding: 8px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
}

.de-field textarea {
    min-height: 70px;
    resize: vertical;
    font-family: inherit;
}

.de-field input:focus,
.de-field select:focus,
.de-field textarea:focus {
    border-color: var(--de-color03);
    box-shadow: 0 0 5px var(--de-color03);
}

.de-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.de-row3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* ── Cor (swatch + hex) ─────────────────────────────────────────────────── */
.de-color-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.de-color-swatch {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 2px solid #555;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
}

.de-color-dropdown {
    position: fixed;
    display: none;
    background: #3a3f3f;
    border: 2px solid var(--de-color02);
    border-radius: 8px;
    padding: 12px;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.de-cp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.de-cp-header span {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.de-cp-close {
    background: none;
    border: none;
    color: #999;
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}

.de-cp-sv-box {
    position: relative;
    width: 190px;
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
    cursor: crosshair;
    margin-bottom: 8px;
}

.de-cp-sv-thumb {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
    top: 0; left: 100%;
}

.de-cp-hue-bar {
    position: relative;
    width: 190px;
    height: 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    overflow: hidden;
}

.de-cp-hue-thumb {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.de-cp-bottom-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.de-cp-preview {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.de-cp-hex-input {
    flex: 1;
    min-width: 0;
    padding: 5px 6px;
    font-size: 12px;
    font-family: monospace;
    background: var(--de-color06);
    color: white;
    border: 1px solid var(--de-color01);
    border-radius: 4px;
    outline: none;
    text-transform: uppercase;
}

.de-cp-apply {
    padding: 5px 10px;
    font-size: 11px;
    background: var(--de-color05);
    color: var(--de-color02);
    border: 1px solid var(--de-color01);
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.de-hex-input {
    flex: 1;
    background-color: var(--de-color05);
    color: white;
    border: 2px solid var(--de-color01);
    border-radius: 5px;
    padding: 8px;
    font-family: monospace;
    text-transform: uppercase;
}

/* ── Alinhamento / seletor de 3 ou 4 opções ─────────────────────────────── */
.de-choice-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.de-choice-btn {
    flex: 1;
    min-width: 70px;
    background-color: var(--de-color05);
    color: var(--de-color02);
    border: 2px solid var(--de-color01);
    border-radius: 5px;
    padding: 9px 6px;
    text-align: center;
    cursor: pointer;
    font-size: 0.85em;
}

.de-choice-btn:hover {
    color: var(--de-color01);
}

.de-choice-btn.selected {
    background-color: var(--de-color06);
    color: var(--de-color03);
    border-color: var(--de-color03);
}

/* ── Toggle switch (checkbox) ───────────────────────────────────────────── */
.de-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.de-toggle-row:last-child {
    border-bottom: none;
}

.de-toggle-row span {
    font-size: 0.95em;
    color: #eee;
}

.de-toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.de-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.de-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--de-color05);
    border: 2px solid var(--de-color01);
    border-radius: 24px;
    transition: 0.2s;
}

.de-toggle-slider::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--de-color01);
    border-radius: 50%;
    transition: 0.2s;
}

.de-toggle-switch input:checked + .de-toggle-slider {
    border-color: var(--de-color03);
}

.de-toggle-switch input:checked + .de-toggle-slider::before {
    transform: translateX(18px);
    background-color: var(--de-color03);
}

/* ── Preview ─────────────────────────────────────────────────────────────── */
.de-preview-panel {
    text-align: center;
}

.de-preview-box {
    min-height: 110px;
    border-radius: 8px;
    background: repeating-conic-gradient(#2a2a2a 0% 25%, #333 0% 50%) 0 0 / 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 4px;
}

.de-preview-text {
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    word-break: break-word;
    white-space: pre-wrap;
}

.de-preview-icon {
    font-size: 3em;
    color: var(--de-color01);
}

/* ── Botão de expandir / seção secundária ───────────────────────────────── */
.de-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.de-section-toggle i {
    color: var(--de-color01);
    transition: transform 0.2s;
}

.de-section-toggle.collapsed i {
    transform: rotate(-90deg);
}

.de-collapsible {
    overflow: hidden;
}

.de-collapsible.collapsed {
    display: none;
}

/* ── Ver como (formato do comando) ──────────────────────────────────────── */
.de-viewas-row {
    display: flex;
    gap: 8px;
}

.de-viewas-row .de-choice-btn {
    flex: 1;
}