/* tema-claro-plotara.css | modo claro opcional do Plotara (20/11/2026)
 * O Plotara nasceu escuro (grafite + painéis slate + azul-índigo) e continua começando escuro. Quando o visitante
 * escolhe o claro (botão sol/lua, localStorage 'plotara-tema'), <html> ganha a classe "claro" e esta folha
 * reinterpreta as classes escuras. O desenho em si (a "folha" no canvas) não muda: a cor do papel é escolha do usuário.
 */
html.claro { color-scheme: light; }
html.claro body {
    background-color: #eef2f6 !important; color: #334155 !important;
    background-image: linear-gradient(rgba(15,23,42,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,0.035) 1px, transparent 1px) !important;
}
html.claro ::-webkit-scrollbar-track { background: #eef2f6; }
html.claro ::-webkit-scrollbar-thumb { background: #cbd5e1; border-color: #eef2f6; }
html.claro ::selection { background: #c7d0ff; color: #0f172a; }

/* botão do tema (inserido no cabeçalho por tema_plotara.php) */
.plotara-tema { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid #334155; background: transparent; color: #fcd34d; cursor: pointer; padding: 0; flex-shrink: 0; }
.plotara-tema:hover { border-color: #6982f7; }
.plotara-tema .ico-lua { display: none; }
html.claro .plotara-tema { color: #0f172a; border-color: #cbd5e1; }
html.claro .plotara-tema .ico-sol { display: none; }
html.claro .plotara-tema .ico-lua { display: inline; }

/* superfícies */
html.claro .bg-grafite, html.claro [class*="bg-grafite/"] { background-color: #eef2f6 !important; }
html.claro .bg-painel, html.claro [class*="bg-painel/"], html.claro .plotter-card, html.claro .card-app { background-color: #ffffff !important; }
html.claro .bg-slate-800, html.claro [class*="bg-slate-800/"], html.claro .bg-slate-900, html.claro [class*="bg-slate-900/"], html.claro .bg-slate-950, html.claro [class*="bg-slate-950/"], html.claro .bg-azulProfundo { background-color: #f1f5f9 !important; }
html.claro .bg-slate-700, html.claro [class*="bg-slate-700/"] { background-color: #e2e8f0 !important; }
html.claro .bg-slate-600, html.claro [class*="bg-slate-600/"] { background-color: #cbd5e1 !important; }
html.claro .bg-cyan-900, html.claro [class*="bg-cyan-900/"], html.claro .bg-cyan-950, html.claro [class*="bg-cyan-950/"] { background-color: rgba(39,71,214,.08) !important; }
html.claro .bg-emerald-900, html.claro [class*="bg-emerald-900/"] { background-color: rgba(16,185,129,.1) !important; }
html.claro .bg-purple-900, html.claro [class*="bg-purple-900/"] { background-color: rgba(147,51,234,.08) !important; }
html.claro .bg-red-900, html.claro [class*="bg-red-900/"] { background-color: rgba(239,68,68,.08) !important; }
html.claro [class*="hover:bg-slate-800"]:hover, html.claro [class*="hover:bg-slate-700"]:hover, html.claro [class*="hover:bg-cyan-900"]:hover { background-color: rgba(39,71,214,.08) !important; }

/* texto */
html.claro .text-white, html.claro .text-slate-50, html.claro .text-slate-100, html.claro .text-slate-200 { color: #0f172a !important; }
html.claro .text-slate-300 { color: #334155 !important; }
html.claro .text-slate-400 { color: #475569 !important; }
html.claro .text-slate-500 { color: #64748b !important; }
html.claro .text-slate-600, html.claro .text-slate-700 { color: #94a3b8 !important; }
html.claro .text-cyan-100, html.claro .text-cyan-200, html.claro .text-cyan-300 { color: #1f38ab !important; }
html.claro .text-cyan-400, html.claro .text-cyan-500 { color: #2747d6 !important; }
html.claro .text-indigo-300 { color: #4338ca !important; }
html.claro .text-emerald-400, html.claro .text-emerald-500 { color: #047857 !important; }
html.claro .text-amber-300, html.claro .text-amber-400 { color: #b45309 !important; }
html.claro .text-red-400 { color: #dc2626 !important; }
html.claro [class*="hover:text-white"]:hover, html.claro [class*="hover:text-slate-100"]:hover, html.claro [class*="hover:text-slate-200"]:hover { color: #020617 !important; }
html.claro [class*="hover:text-cyan-"]:hover { color: #1f38ab !important; }
html.claro [class*="placeholder-slate-"]::placeholder { color: #94a3b8 !important; }
/* botões cheios em azul/esmeralda: texto escuro continua legível */
html.claro .bg-cyan-500, html.claro .bg-cyan-400, html.claro .bg-emerald-500, html.claro .bg-emerald-400 { color: #0f172a; }
html.claro .bg-cyan-600 { color: #ffffff; }

/* bordas */
html.claro .border-slate-600, html.claro .border-slate-700, html.claro .border-slate-800, html.claro [class*="border-slate-6"], html.claro [class*="border-slate-7"], html.claro [class*="border-slate-8"] { border-color: rgba(15,23,42,.13) !important; }
html.claro .border-cyan-900, html.claro .border-cyan-800, html.claro .border-cyan-700, html.claro [class*="border-cyan-9"], html.claro [class*="border-cyan-8"] { border-color: rgba(39,71,214,.25) !important; }
html.claro .axis-line { border-bottom-color: #cbd5e1 !important; }
html.claro .genera-slider { background: #cbd5e1 !important; }

/* formulários */
html.claro input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), html.claro textarea, html.claro select { background-color: #ffffff !important; color: #0f172a !important; border-color: #cbd5e1 !important; }

/* marca: o símbolo "negativo" (branco) vira escuro */
html.claro img[src*="negativo"] { filter: invert(1) hue-rotate(180deg); }

/* página inicial (estilos próprios do index.php) */
html.claro .chip { background: #ffffff !important; border-color: #cbd5e1 !important; color: #334155 !important; }
html.claro .chip:hover { color: #0f172a !important; border-color: #6982f7 !important; }
html.claro .chip[aria-pressed="true"] { background: #6982f7 !important; color: #0f172a !important; }
html.claro .nav-cat a { color: #475569 !important; }
html.claro .nav-cat a:hover, html.claro .nav-cat a.ativo { color: #0f172a !important; background: #e2e8f0 !important; }
html.claro .etq { border-color: #cbd5e1 !important; color: #475569 !important; }
html.claro .etq-foto { border-color: #a8b6ff !important; color: #1f38ab !important; }
html.claro .etq-linha-unica { border-color: #c4b5fd !important; color: #6d28d9 !important; }
html.claro .etq-cmyk { border-color: #f0abfc !important; color: #a21caf !important; }
html.claro .etq-laser { border-color: #fcd34d !important; color: #b45309 !important; }
html.claro .btn-info { background: rgba(255,255,255,.85) !important; color: #334155 !important; }

/* área de trabalho dos laboratórios (em volta da folha do desenho) */
html.claro .paper-grid, html.claro #workspace-area {
    background-color: #dfe5ee !important;
    background-image: linear-gradient(rgba(39,71,214,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(39,71,214,0.07) 1px, transparent 1px) !important;
}

/* Coordenadas Sonoras (folha própria com variáveis) */
html.claro { --bg: #eef2f6; --panel: #ffffff; --panel-dark: #f1f5f9; --text: #0f172a; --text-muted: #64748b; --border: #cbd5e1; }
html.claro .sidebar, html.claro .sidebar-right { box-shadow: 0 0 20px rgba(15,23,42,.08) !important; }
html.claro .workspace { background: radial-gradient(circle at center, #e8edf4 0%, #dfe5ee 100%) !important; }
html.claro .master-clock { background: rgba(255,255,255,.92) !important; color: #0f172a !important; }
html.claro .knob { background: linear-gradient(145deg, #ffffff, #e2e8f0) !important; }
html.claro .zoom-controls button { color: #0f172a !important; box-shadow: 0 4px 10px rgba(15,23,42,.12) !important; }
html.claro .zoom-controls button:hover { color: #ffffff !important; }
html.claro .btn-workspace { background: rgba(255,255,255,.92) !important; }
html.claro .btn-workspace:hover { color: #0f172a !important; }
html.claro .btn-workspace.active, html.claro .btn-workspace[aria-expanded="true"] { color: #ffffff !important; }
