/* tema-claro-zen.css | modo claro opcional do ZenArt (20/11/2026) — a mesma folha vai em loja/assets/css
 * O ZenArt nasceu escuro (grafite + esmeralda + ciano) e continua começando escuro. Quando o visitante escolhe o
 * claro (botão sol/lua, localStorage 'zenart-tema'), <html> ganha a classe "claro" e esta folha reinterpreta as
 * classes escuras: fundo papel #f1f5f9, painéis brancos, texto grafite, esmeralda e ciano mais fundos para contraste.
 */
html.claro { color-scheme: light; }
html.claro body { background-color: #f1f5f9 !important; color: #0f172a !important; }
html.claro .pixel-grid { background-image: radial-gradient(rgba(15, 23, 42, 0.12) 1px, transparent 1px) !important; }

/* botão do tema: sol no escuro, lua no claro */
.zen-tema .fa-moon { display: none; }
html.claro .zen-tema .fa-sun { display: none; }
html.claro .zen-tema .fa-moon { display: inline; }
html.claro .zen-tema { color: #0f172a !important; border-color: rgba(15,23,42,.18) !important; }

/* superfícies */
html.claro .bg-grafite, html.claro [class~="bg-grafite/90"], html.claro [class~="bg-grafite/80"], html.claro [class~="bg-grafite/50"] { background-color: rgba(241,245,249,.94) !important; }
html.claro .bg-painel, html.claro [class~="bg-painel/80"], html.claro [class~="bg-painel/50"], html.claro [class~="bg-painel/30"] { background-color: #ffffff !important; }
html.claro .bg-slate-800, html.claro .bg-slate-900, html.claro [class~="bg-slate-700/50"], html.claro .bg-slate-700 { background-color: #e2e8f0 !important; }
html.claro [class~="bg-azulProfundo/50"], html.claro [class*="bg-[#050a14]"], html.claro [class*="bg-[#0f172a]"], html.claro [class*="bg-[#1f1a10]"] { background-color: #e8eef5 !important; }
html.claro [class~="bg-red-900/20"] { background-color: rgba(239,68,68,.08) !important; }
html.claro [class~="hover:bg-slate-700"]:hover, html.claro .hover\:bg-painel:hover, html.claro [class~="hover:bg-emerald/10"]:hover { background-color: rgba(15,23,42,.06) !important; }

/* texto */
html.claro .text-white, html.claro .text-gray-200, html.claro .text-gray-100 { color: #0f172a !important; }
html.claro .text-gray-300 { color: #334155 !important; }
html.claro .text-gray-400 { color: #475569 !important; }
html.claro .text-gray-500 { color: #64748b !important; }
html.claro .text-gray-600, html.claro .text-gray-700, html.claro .text-slate-600, html.claro .text-slate-700 { color: #94a3b8 !important; }
html.claro [class~="text-white/30"] { color: rgba(15,23,42,.35) !important; }
html.claro [class~="text-white/[0.03]"], html.claro [class~="text-white/[0.02]"] { color: rgba(15,23,42,.04) !important; }
html.claro [class~="hover:text-white"]:hover, html.claro [class~="group-hover:text-white"]:is(.group:hover *) { color: #020617 !important; }
html.claro .text-emerald, html.claro .text-emerald-400, html.claro .text-emerald-500 { color: #047857 !important; }
html.claro [class~="text-emerald/50"], html.claro [class~="text-emerald/30"], html.claro [class~="text-emerald-600/70"] { color: rgba(4,120,87,.7) !important; }
html.claro [class~="hover:text-emerald"]:hover, html.claro [class~="hover:text-emerald-400"]:hover { color: #065f46 !important; }
html.claro .text-ciano, html.claro [class~="text-ciano/70"], html.claro .text-cyan-500, html.claro .text-cyan-400 { color: #0e7490 !important; }
html.claro [class~="hover:text-cyan-400"]:hover { color: #155e75 !important; }
html.claro [class~="text-amber-400/70"], html.claro .text-amber-400, html.claro .text-amber-300 { color: #b45309 !important; }
html.claro .text-red-400 { color: #dc2626 !important; }
/* botões cheios (esmeralda, ciano, âmbar) continuam com texto escuro */
html.claro .bg-emerald, html.claro .bg-ciano, html.claro .bg-amber-400 { color: #0f172a; }
html.claro .bg-emerald .text-grafite, html.claro .text-grafite { color: #0f172a !important; }

/* bordas */
html.claro .border-slate-700, html.claro [class~="border-slate-700/50"], html.claro .border-slate-800, html.claro [class~="border-white/5"], html.claro [class~="border-white/10"], html.claro [class~="border-white/20"] { border-color: rgba(15,23,42,.12) !important; }
html.claro [class~="border-emerald/30"], html.claro [class~="border-emerald/20"] { border-color: rgba(4,120,87,.3) !important; }

/* imagens e logo (o logo é invertido no escuro) */
html.claro img.invert[src*="logo.gif"] { filter: none !important; }
html.claro .img-zen { filter: grayscale(1) contrast(1.05) !important; }
html.claro .group:hover .img-zen { filter: grayscale(0) !important; }

/* carregadores e formulários */
html.claro #sodeleve-loader, html.claro #loader-loja { background-color: #f1f5f9 !important; }
html.claro input, html.claro textarea, html.claro select { background-color: #ffffff !important; color: #0f172a !important; border-color: rgba(15,23,42,.18) !important; }
html.claro ::selection { background: #10b981; color: #0f172a; }

/* seletor de língua escuro (sdl_seletor_lang com $escuro) */
html.claro [role="group"][translate="no"] { border-color: rgba(15,23,42,.18) !important; }
html.claro [role="group"][translate="no"] a:not([aria-current]) { color: #64748b !important; }
html.claro [class~="bg-azulProfundo/80"] { background-color: rgba(6,182,212,.08) !important; } html.claro [class*="bg-[#1f1a10]"] { background-color: rgba(245,158,11,.08) !important; } html.claro [class~="border-ciano/40"] { border-color: rgba(14,116,144,.45) !important; } html.claro [class~="border-amber-500/40"] { border-color: rgba(180,83,9,.4) !important; }

/* apps-ferramenta (Linhas Resilientes, Ponto a Ponto): mesmas variáveis de cor, versão clara */
html.claro {
  --bg-app: #eef2f6; --bg-panel: #ffffff; --bg-input: #e2e8f0; --bg-raised: #f8fafc;
  --text-main: #0f172a; --text-muted: #64748b; --accent: #059669; --accent-hover: #047857;
  --border: #cbd5e1; --border-strong: #94a3b8;
}

/* botões de tema e língua dentro dos apps (sem Tailwind/Font Awesome) */
.zen-cab-botoes .zen-tema { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--border-strong, #475569); background: transparent; color: #fcd34d; cursor: pointer; padding: 0; }
.zen-cab-botoes [role="group"] { display: inline-flex; border: 1px solid var(--border-strong, #475569); border-radius: 999px; padding: 2px; font: 700 10px/1 system-ui, sans-serif; letter-spacing: .08em; }
.zen-cab-botoes [role="group"] a { padding: 5px 8px; border-radius: 999px; text-decoration: none; color: var(--text-muted, #94a3b8); }
.zen-cab-botoes [role="group"] a[aria-current] { background: var(--accent, #10b981); color: #04281c; }
html.claro .zen-cab-botoes .zen-tema { color: #0f172a; }

/* áreas com cor fixa nas ferramentas (Ponto a Ponto, Linhas Resilientes) */
html.claro .workspace { background-color: #e8edf3 !important; }
html.claro .dropzone { background: rgba(255,255,255,.75) !important; }
html.claro .empty-card { background: rgba(255,255,255,.88) !important; }
html.claro .view-seg, html.claro .zoom, html.claro .subbar { background: rgba(255,255,255,.92) !important; }
html.claro .loader-overlay { background: rgba(241,245,249,.85) !important; }
html.claro .toast { background: #ffffff !important; box-shadow: 0 10px 30px rgba(15,23,42,.15) !important; }
