/* CONTAINER GERAL */
#jr-neon-simulator { 
    background: #fff; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); 
    margin-top: 20px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    align-items: flex-start;
}
#jr-neon-simulator * { box-sizing: border-box; }

.jr-neon-controls-column { flex: 1; min-width: 300px; }
.jr-neon-preview-column { flex: 1.5; min-width: 300px; display: flex; flex-direction: column; }

/* --- TÍTULOS --- */
#jr-neon-simulator .jr-section-title { 
    padding: 10px 15px !important; 
    font-size: 14px !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1px !important; 
    font-weight: 800 !important; 
    border-radius: 6px !important; 
    margin-bottom: 12px !important; 
    margin-top: 20px !important; 
    display: inline-block !important;
    width: auto !important;
}

/* --- BOTÕES TIPO DE NOME (INTERATIVOS) --- */
.jr-neon-type-selector { display: flex; gap: 10px; margin-bottom: 15px; }

/* ESTADO PADRÃO (DESMARCADO) */
#jr-neon-simulator .jr-radio-box { 
    flex: 1; 
    border-radius: 8px !important; 
    padding: 10px 20px !important; 
    text-align: center !important; 
    cursor: pointer !important; 
    font-family: 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important; 
    font-size: 15px !important;
    
    /* --- CORREÇÃO: Força Preto no Fundo Branco --- */
    background: #fff !important; 
    color: #000 !important;      
    border: 2px solid #eee !important; 
    /* ------------------------------------------- */
    
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- CORREÇÃO CRÍTICA: O Texto dentro deve herdar a cor do pai --- */
#jr-neon-simulator .jr-radio-box span { 
    font-weight: 700 !important; 
    color: inherit !important; /* Isso faz o texto virar branco quando o fundo vira preto */
}

/* ESTADO SELECIONADO (CLICADO) */
#jr-neon-simulator .jr-radio-box:has(input:checked) {
    /* --- CORREÇÃO: Força Branco no Fundo Preto --- */
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    /* ------------------------------------------- */
    transform: scale(1.02); 
}

#jr-neon-simulator .jr-radio-box input { display: none; }
#jr-neon-simulator .jr-radio-box:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-color: #ddd !important; }

/* INPUTS DE TEXTO */
.jr-neon-input { width: 100%; padding: 12px 15px; border: 2px solid #eee; border-radius: 8px; font-size: 16px; margin-bottom: 5px; transition: 0.3s; }
.jr-neon-input:focus { border-color: #ccc; outline: none; }

/* MENSAGEM DE ERRO */
#jr-neon-error-msg {
    color: #dc3232;
    background: #ffe6e6;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dc3232;
    margin-top: 5px;
    font-weight: bold;
    text-align: center;
}

/* BOTÕES DE TAMANHO */
.jr-size-wrapper { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.jr-size-btn { background: #fff; border: 2px solid #eee; border-radius: 8px; padding: 10px 20px; font-size: 15px; font-weight: 700; color: #555; cursor: pointer; transition: all 0.2s ease; text-align: center; min-width: 80px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.jr-size-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-color: #ddd; }
.jr-size-btn.selected { border-width: 2px; transform: scale(1.05); }

/* BOTÕES DE COR */
.jr-colors-wrapper { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.jr-color-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #eee; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.jr-color-btn:hover { transform: scale(1.1); }
.jr-color-btn.selected { transform: scale(1.2); }

/* ÁREA DE PREVIEW */
.jr-neon-preview-area { 
    width: 100%; 
    height: 340px !important; 
    min-height: 340px; 
    background-color: #333; 
    background-size: cover; 
    background-position: center; 
    border-radius: 12px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden; 
    border: 1px solid #ddd; 
}

#jr-neon-text-display { 
    font-family: 'Pacifico', cursive; 
    color: #fff; 
    text-align: center; 
    line-height: 1.1; 
    padding: 10px; 
    text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff; 
    transition: font-size 0.1s; 
    z-index: 10; 
    max-width: 90%; 
    word-wrap: break-word; 
}

/* MEDIDAS */
#jr-neon-size-info { position: absolute; bottom: 15px; background: rgba(0,0,0,0.7); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; border: 1px solid rgba(255,255,255,0.3); }
#jr-measure-container { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); height: 190px; width: 20px; display: none; z-index: 20; }
.measure-line { width: 1px; height: 100%; background: #2980b9; margin: 0 auto; position: relative; }
.measure-line::before, .measure-line::after { content: ''; position: absolute; left: -6px; width: 13px; height: 1px; background: #2980b9; }
.measure-line::before { top: 0; }
.measure-line::after { bottom: 0; }
.measure-arrow-top { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 10px solid #2980b9; }
.measure-arrow-bottom { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 10px solid #2980b9; }
#jr-measure-label { position: absolute; top: 50%; left: -12px; transform: translate(-50%, -50%) rotate(-90deg); color: #2980b9; font-weight: 700; font-size: 16px; white-space: nowrap; text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff; }

.jr-backgrounds-wrapper { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 5px; }
.jr-bg-thumb { width: 50px; height: 50px; border-radius: 6px; background-size: cover; cursor: pointer; border: 2px solid transparent; transition: 0.2s; flex-shrink: 0; }
.jr-bg-thumb:hover { opacity: 0.8; }
.jr-bg-thumb.selected { border-color: #333; }
.jr-price-box { margin-top: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px; text-align: center; border: 1px solid #e9ecef; font-size: 14px; color: #666; }
#jr-neon-final-price { display: block; font-size: 28px; font-weight: 800; color: #222; margin-top: 5px; }

@media (max-width: 768px) { #jr-neon-simulator { flex-direction: column; } .jr-neon-preview-column { order: -1; } }