/* Custom enhancements for Electricidad Navego S.L */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --color-brand: #fbbf24;
  --color-brand-hover: #f59e0b;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #020617;
  color: #f1f5f9;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-header {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   LIGHT THEME OVERRIDES (Public Web & Admin)
   Activates whenever <html class="theme-light">
   ========================================================================== */

html.theme-light {
  color-scheme: light;
}

html.theme-light body {
  background-color: #f8fafc !important;
  color: #334155 !important;
}

/* Scrollbar in Light Mode */
html.theme-light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html.theme-light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html.theme-light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glass Header */
html.theme-light .glass-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: #e2e8f0 !important;
}

/* Backgrounds */
html.theme-light .bg-slate-950 {
  background-color: #f8fafc !important;
}
html.theme-light .bg-slate-950\/90,
html.theme-light .bg-slate-950\/80,
html.theme-light .bg-slate-950\/70,
html.theme-light .bg-slate-950\/60,
html.theme-light .bg-slate-950\/40,
html.theme-light .bg-slate-950\/20 {
  background-color: rgba(248, 250, 252, 0.9) !important;
}

html.theme-light .bg-slate-900 {
  background-color: #ffffff !important;
}
html.theme-light .bg-slate-900\/90,
html.theme-light .bg-slate-900\/80,
html.theme-light .bg-slate-900\/70,
html.theme-light .bg-slate-900\/60,
html.theme-light .bg-slate-900\/50,
html.theme-light .bg-slate-900\/40,
html.theme-light .bg-slate-900\/30,
html.theme-light .bg-slate-900\/20,
html.theme-light .bg-slate-900\/10 {
  background-color: #ffffff !important;
}

html.theme-light .bg-slate-800 {
  background-color: #f1f5f9 !important;
}
html.theme-light .bg-slate-800\/80,
html.theme-light .bg-slate-800\/60,
html.theme-light .bg-slate-800\/50,
html.theme-light .bg-slate-800\/40 {
  background-color: rgba(241, 245, 249, 0.85) !important;
}

html.theme-light .bg-slate-700 {
  background-color: #e2e8f0 !important;
}

/* Hover background states */
html.theme-light .hover\:bg-slate-900:hover {
  background-color: #f8fafc !important;
}
html.theme-light .hover\:bg-slate-800:hover {
  background-color: #f1f5f9 !important;
}
html.theme-light .hover\:bg-slate-800\/50:hover {
  background-color: #f8fafc !important;
}
html.theme-light .hover\:bg-slate-700:hover {
  background-color: #e2e8f0 !important;
}

/* Borders and dividers */
html.theme-light .border-slate-900,
html.theme-light .border-slate-800,
html.theme-light .border-slate-800\/80,
html.theme-light .border-slate-800\/60,
html.theme-light .border-slate-800\/50,
html.theme-light .border-slate-800\/40,
html.theme-light .border-slate-700,
html.theme-light .border-slate-700\/80,
html.theme-light .border-slate-700\/50 {
  border-color: #e2e8f0 !important;
}
html.theme-light .divide-slate-800 > :not([hidden]) ~ :not([hidden]) {
  border-color: #e2e8f0 !important;
}

/* Typography */
html.theme-light .text-white {
  color: #0f172a !important;
}
html.theme-light .text-slate-100 {
  color: #0f172a !important;
}
html.theme-light .text-slate-200 {
  color: #1e293b !important;
}
html.theme-light .text-slate-300 {
  color: #334155 !important;
}
html.theme-light .text-slate-400 {
  color: #64748b !important;
}
html.theme-light .text-slate-500 {
  color: #64748b !important;
}
html.theme-light .text-slate-600 {
  color: #94a3b8 !important;
}

html.theme-light .hover\:text-white:hover {
  color: #0f172a !important;
}

/* Amber highlights */
html.theme-light .text-amber-400 {
  color: #d97706 !important;
}
html.theme-light .text-amber-500 {
  color: #b45309 !important;
}
html.theme-light .hover\:text-amber-400:hover {
  color: #d97706 !important;
}

/* Amber button and badge styling - keep dark text on amber buttons */
html.theme-light .bg-amber-400,
html.theme-light a.bg-amber-400,
html.theme-light button.bg-amber-400 {
  background-color: #fbbf24 !important;
  color: #0f172a !important;
}
html.theme-light .bg-amber-400 .text-slate-950,
html.theme-light .bg-amber-400.text-slate-950 {
  color: #0f172a !important;
}
html.theme-light .bg-amber-400\/10 {
  background-color: rgba(245, 158, 11, 0.12) !important;
}
html.theme-light .border-amber-400\/20,
html.theme-light .border-amber-400\/30 {
  border-color: rgba(245, 158, 11, 0.28) !important;
}

/* Colored status badges */
html.theme-light .bg-emerald-500\/10 {
  background-color: #ecfdf5 !important;
}
html.theme-light .border-emerald-500\/20,
html.theme-light .border-emerald-500\/30 {
  border-color: #a7f3d0 !important;
}
html.theme-light .text-emerald-400 {
  color: #047857 !important;
}

html.theme-light .bg-rose-500\/10 {
  background-color: #fff1f2 !important;
}
html.theme-light .border-rose-500\/20,
html.theme-light .border-rose-500\/30 {
  border-color: #fecdd3 !important;
}
html.theme-light .text-rose-400 {
  color: #be123c !important;
}

html.theme-light .bg-blue-500\/10 {
  background-color: #eff6ff !important;
}
html.theme-light .border-blue-500\/20 {
  border-color: #bfdbfe !important;
}
html.theme-light .text-blue-400 {
  color: #1d4ed8 !important;
}

/* Inputs, Textareas, Selects */
html.theme-light input:not([type="checkbox"]):not([type="radio"]),
html.theme-light textarea,
html.theme-light select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html.theme-light input::placeholder,
html.theme-light textarea::placeholder {
  color: #94a3b8 !important;
}
html.theme-light input:focus,
html.theme-light textarea:focus,
html.theme-light select:focus {
  border-color: #f59e0b !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

/* Card elevation in light mode */
html.theme-light .bg-slate-900 {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
}

/* Modal overlays stay semi-dark for focus */
html.theme-light #admin-sidebar-overlay,
html.theme-light [id$="-overlay"],
html.theme-light [id$="-backdrop"] {
  background-color: rgba(15, 23, 42, 0.6) !important;
}

/* Modals */
html.theme-light #contact-modal,
html.theme-light #gallery-modal,
html.theme-light #status-modal,
html.theme-light [id$="-modal"] {
  background-color: rgba(15, 23, 42, 0.6) !important;
}
html.theme-light [id$="-modal"] > div.bg-slate-900,
html.theme-light #contact-modal > div.bg-slate-900,
html.theme-light #gallery-modal > div.bg-slate-900,
html.theme-light #status-modal > div.bg-slate-900,
html.theme-light [id$="-modal"] .bg-slate-900 {
  background-color: #ffffff !important;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
}

/* Admin Sidebar in Light Mode */
html.theme-light #admin-sidebar {
  background-color: #ffffff !important;
  border-right-color: #e2e8f0 !important;
  box-shadow: 1px 0 3px 0 rgb(0 0 0 / 0.03);
}
html.theme-light #admin-sidebar > div > div.border-b {
  border-bottom-color: #e2e8f0 !important;
}
html.theme-light #admin-sidebar > div.border-t {
  border-top-color: #e2e8f0 !important;
  background-color: #f8fafc !important;
}

/* Chatbot Widget in Light Mode */
html.theme-light #chatbot-widget > div.bg-slate-900 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
}
html.theme-light #chat-messages {
  background-color: #f8fafc !important;
}
html.theme-light #chat-messages .bg-slate-800 {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
}
html.theme-light #chat-messages .text-slate-300 {
  color: #1e293b !important;
}
html.theme-light #chat-suggested-container button {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
html.theme-light #chat-suggested-container button:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Electricidad Navego Dynamic SVG Logo */
.logo-svg {
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  width: auto;
  max-height: 100%;
}

.logo-primary {
  fill: #f8fafc;
  transition: fill 0.25s ease;
}

.logo-secondary {
  fill: #38bdf8;
  transition: fill 0.25s ease;
}

.logo-accent {
  fill: #fbbf24;
  transition: fill 0.25s ease;
}

html.theme-light .logo-primary,
:root.theme-light .logo-primary,
.theme-light .logo-primary {
  fill: #004767 !important;
}

html.theme-light .logo-secondary,
:root.theme-light .logo-secondary,
.theme-light .logo-secondary {
  fill: #007ba8 !important;
}

html.theme-light .logo-accent,
:root.theme-light .logo-accent,
.theme-light .logo-accent {
  fill: #f59e0b !important;
}

/* ==========================================================================
   INTERACTIVE WALL SCONCE LAMP THEME TOGGLE (Dark / Light Switch)
   ========================================================================== */

/* Chain pull keyframe animation */
@keyframes lampChainPull {
  0% { transform: translateY(0); }
  35% { transform: translateY(6px); }
  65% { transform: translateY(-2px); }
  85% { transform: translateY(1.5px); }
  100% { transform: translateY(0); }
}

@keyframes lampCordSway {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(5deg); }
  70% { transform: rotate(-5deg); }
}

.lamp-toggle-btn {
  position: relative;
  user-select: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lamp-toggle-btn:hover .lamp-cord {
  animation: lampCordSway 1.2s ease-in-out infinite;
}

.lamp-toggle-btn.pulling .lamp-cord {
  animation: lampChainPull 0.45s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Globe and rays transitions */
.lamp-globe {
  transition: fill 0.35s ease, filter 0.35s ease, stroke 0.35s ease;
}

.lamp-light-rays {
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform-origin: 20.5px 14px;
}

.lamp-specular {
  transition: opacity 0.35s ease;
}

/* DARK MODE STATE (Lamp is OFF) */
html:not(.theme-light) .lamp-globe {
  fill: url(#lampBulbOffGrad);
  stroke: #94a3b8;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
html:not(.theme-light) .lamp-light-rays {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
html:not(.theme-light) .lamp-specular {
  opacity: 0.65;
}

/* LIGHT MODE STATE (Lamp is ON & Glowing) */
html.theme-light .lamp-globe {
  fill: url(#lampBulbOnGrad);
  stroke: #f59e0b;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.95)) drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
}
html.theme-light .lamp-light-rays {
  opacity: 1;
  transform: scale(1);
}
html.theme-light .lamp-specular {
  opacity: 0.95;
}

/* Button container styling adjustments in light mode */
html.theme-light .lamp-toggle-btn {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
html.theme-light .lamp-toggle-btn:hover {
  border-color: #fbbf24 !important;
  background-color: #fefce8 !important;
}



