/* OPTIMIZED BUILD */
/* OPTIMIZED BUILD */
/* Pixel Helix — main.css (UI Flotante + Glassmorphism) */

/* ── VARIABLES ─────────────────────────────────── */
:root {
  --bg:      #060810;
  --bg2:     #0C0F1A;
  --bg3:     #111520;
  --bg4:     #171C2A;
  --line:    rgba(255,255,255,0.055);
  --line2:   rgba(255,255,255,0.10);
  --tx:      #E8EDF5;
  --tx2:     #7A8FAA;
  --tx3:     #3A4A5E;

  --accent:  #1E84C6;
  --accent2: #40B8FF;
  --orange:  #FF6600;
  --orange2: #FF8A00;
  --green:   #22D47A;
  --red:     #FF4060;

  --topbar-h: 40px;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 100px;
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--sans);
  background: transparent;
  color: var(--tx);
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: rgba(17,17,22,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 16px; gap: 6px;
  flex-shrink: 0; z-index: 100;
  user-select: none;
  position: relative;
}

.brand { display: flex; align-items: center; margin-right: 12px; flex-shrink: 0; }
.brand-text { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--tx); letter-spacing: -0.01em; }
.brand-accent { color: var(--accent2); }

.topbar-mid { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.topbar-right { display: flex; align-items: center; justify-content: flex-end; min-width: 100px; }

.tb-sep { width: 1px; height: 16px; background: var(--line2); margin: 0 8px; flex-shrink: 0; }

.tb-btn {
  height: 28px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--tx2);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 11px; font-family: var(--sans); font-weight: 500;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.tb-btn:hover { background: var(--bg3); color: var(--tx); border-color: var(--line); }

.zoom-label {
  font-family: var(--mono); font-size: 10px; color: var(--tx3);
  min-width: 42px; text-align: center; flex-shrink: 0;
}
.canvas-info {
  font-family: var(--mono); font-size: 10px; color: var(--tx3);
  white-space: nowrap;
}

/* ── WORKSPACE ─────────────────────────────────── */
.workspace {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h));
  position: relative;
  overflow: hidden;
}

/* ── UI FLOTANTE (BOTTOM DOCK) ─────────────────── */
.bottom-ui {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  pointer-events: none; /* Deja pasar los clicks al canvas si pinchan fuera */
}

.bottom-ui > * {
  pointer-events: auto; /* Reactiva los clicks para el Dock y Burbujas */
}

.main-dock {
  display: flex;
  align-items: center;
  background: rgba(20, 25, 40, 0.35); /* Transparencia alta para el efecto cristal */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18); /* Reflejo de luz en el borde superior */
  border-radius: var(--radius-xl);
  padding: 6px;
  gap: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--tx2);
  width: 72px;
  height: 56px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
}

.dock-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--tx);
}

.dock-btn.active {
  background: rgba(30,132,198,0.18);
  color: var(--accent2);
  box-shadow: inset 0 0 0 1px rgba(30,132,198,0.3);
}

.dock-btn--export { color: var(--orange); }
.dock-btn--export:hover { background: rgba(255,102,0,0.15); color: var(--orange2); }
.dock-btn--export.active { background: rgba(255,102,0,0.25); color: var(--orange2); box-shadow: inset 0 0 0 1px rgba(255,102,0,0.4); }

/* ── POPOVERS (BURBUJAS GLASSMORPHISM) ─────────── */
.popovers-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.popover {
  background: rgba(20, 25, 40, 0.35); /* Transparencia alta */
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  padding: 24px;
  width: max-content;
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: popUpGlass 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom center;
}

@keyframes popUpGlass {
  from { opacity: 0; transform: translateY(24px) scale(0.9); filter: brightness(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1); }
}

.popover-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 18px 0;
}

.plabel {
  display: block;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: rgba(255, 255, 255, 0.6); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ── TOOL GRID & BUTTONS ───────────────────────── */
.tool-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 8px; 
}

.tool-btn {
  height: 56px; 
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, 0.03); 
  color: var(--tx2);
  border: 1px solid rgba(255, 255, 255, 0.04); 
  border-radius: 20px; 
  font-size: 9px; font-family: var(--sans); font-weight: 600;
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tool-btn svg { 
  width: 16px; height: 16px; 
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s; 
}

.tool-btn:hover { 
  background: rgba(255, 255, 255, 0.08); 
  color: var(--tx); 
  border-color: rgba(255, 255, 255, 0.15); 
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.tool-btn:hover svg { transform: scale(1.15); }

.tool-btn.active {
  background: rgba(64, 184, 255, 0.12);
  color: var(--tx);
  border-color: rgba(64, 184, 255, 0.4);
  box-shadow: 0 0 20px rgba(64, 184, 255, 0.15), inset 0 0 10px rgba(64, 184, 255, 0.1);
}

.tool-btn.active svg {
  color: var(--accent2);
  filter: drop-shadow(0 0 4px rgba(64, 184, 255, 0.6));
  transform: scale(1.1);
}

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.action-btn {
  height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,0.05); color: var(--tx);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  font-size: 11px; font-family: var(--sans); font-weight: 500;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.action-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
.action-btn--wide { grid-column: 1 / -1; width: 100%; }
.action-btn--accent {
  background: var(--orange); color: #fff; border-color: transparent;
}
.action-btn--accent:hover { background: var(--orange2); box-shadow: 0 4px 12px rgba(255,102,0,0.3); }

.filter-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 6px; 
  max-height: 280px; 
  overflow-y: auto; 
  padding-right: 4px;
}
.filter-grid::-webkit-scrollbar { width: 4px; }
.filter-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.filter-btn {
  padding: 10px 4px; font-size: 10px; font-weight: 500;
  background: rgba(255,255,255,0.03); color: var(--tx2);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
  cursor: pointer; transition: all 0.2s; font-family: var(--mono);
  text-align: center;
}
.filter-btn:hover { color: var(--tx); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }
.filter-btn.active {
  background: rgba(30,132,198,0.16); color: var(--accent2); 
  border-color: rgba(30,132,198,0.4); box-shadow: 0 0 12px rgba(30,132,198,0.2);
}

/* ── SLIDERS & INPUTS ──────────────────────────── */
.slider-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.slider-row:last-of-type { margin-bottom: 0; }
.slider-row label { font-size: 10px; color: var(--tx2); width: 66px; flex-shrink: 0; font-family: var(--mono); }
.slider-row input[type=range] {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(0,0,0,0.3); border-radius: 2px; outline: none; cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px rgba(64,184,255,0.4), 0 2px 4px rgba(0,0,0,0.5);
  cursor: grab; transition: transform 0.1s;
}
.slider-row input[type=range]::-webkit-slider-thumb:active { transform: scale(1.25); cursor: grabbing; }
.slider-val { font-family: var(--mono); font-size: 10px; color: var(--tx3); min-width: 28px; text-align: right; flex-shrink: 0; }

.color-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.color-row label { font-size: 10px; color: var(--tx2); font-family: var(--mono); }
.color-row input[type=color] {
  width: 36px; height: 28px; padding: 1px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  background: rgba(0,0,0,0.2); cursor: pointer;
}

.text-inp {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  background: rgba(0,0,0,0.2); color: var(--tx);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  font-size: 12px; font-family: var(--sans); outline: none;
  transition: all 0.2s;
}
.text-inp:focus { border-color: var(--accent2); background: rgba(0,0,0,0.4); box-shadow: 0 0 0 2px rgba(64,184,255,0.2); }

.mini-row { display: flex; gap: 8px; margin-bottom: 10px; }
.mini-sel {
  flex: 1; padding: 8px 10px; background: rgba(0,0,0,0.2); color: var(--tx);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  font-size: 11px; font-family: var(--sans); outline: none; cursor: pointer;
}
.mini-num {
  width: 56px; padding: 8px; text-align: center; background: rgba(0,0,0,0.2); color: var(--tx);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  font-family: var(--mono); font-size: 11px; outline: none;
}
.color-mini {
  width: 36px; height: 36px; padding: 2px; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; background: rgba(0,0,0,0.2); cursor: pointer; flex-shrink: 0;
}

.hint { font-size: 9px; color: var(--tx3); font-family: var(--mono); margin-top: 10px; line-height: 1.4; text-align: center; }

/* ── LAYERS ────────────────────────────────────── */
.layers-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.layers-header .plabel { margin-bottom: 0; }
.icon-btn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  cursor: pointer; color: var(--tx2); font-size: 14px; transition: all 0.2s;
}
.icon-btn:hover { color: var(--tx); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }
.icon-btn--danger:hover { color: var(--red) !important; border-color: var(--red) !important; background: rgba(255,64,96,0.1); }

.blend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

#layers-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 220px; overflow-y: auto; overflow-x: hidden;
  padding-right: 4px;
}
#layers-list::-webkit-scrollbar { width: 4px; }
#layers-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.layers-empty { font-size: 10px; color: var(--tx3); font-family: var(--mono); text-align: center; padding: 20px 0; }
.layer-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s;
  background: rgba(0,0,0,0.2);
}
.layer-item:hover { background: rgba(255,255,255,0.05); }
.layer-item.active { background: rgba(30,132,198,0.2); border-color: rgba(30,132,198,0.4); box-shadow: inset 0 0 10px rgba(0,0,0,0.2); }
.layer-thumb {
  width: 40px; height: 26px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px;
  background: #111; overflow: hidden; background-size: cover; background-position: center;
  background-image: linear-gradient(45deg, #333 25%, transparent 25%), linear-gradient(-45deg, #333 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #333 75%), linear-gradient(-45deg, transparent 75%, #333 75%);
  background-size: 8px 8px; background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}
.layer-info { flex: 1; min-width: 0; }
.layer-name { font-size: 11px; font-weight: 500; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.layer-meta { font-size: 9px; color: var(--tx3); font-family: var(--mono); }
.vis-btn {
  width: 26px; height: 26px; flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--tx3); display: flex; align-items: center; justify-content: center; transition: all 0.2s; border-radius: 6px;
}
.vis-btn:hover { color: var(--tx); background: rgba(255,255,255,0.1); }
.vis-btn.off { opacity: 0.3; }

/* ── CANVAS AREA ───────────────────────────────── */
.canvas-area {
  flex: 1;
  position: relative;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: default;
  scroll-behavior: smooth;
}

.canvas-area::-webkit-scrollbar { width: 10px; height: 10px; }
.canvas-area::-webkit-scrollbar-track { background: transparent; }
.canvas-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
.canvas-area::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); background-clip: padding-box; }

.canvas-stack {
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07), 0 20px 60px rgba(0,0,0,0.8);
  background-color: #fff;
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  flex-shrink: 0;
  margin: 60px;
  margin-bottom: 140px; /* Para que la UI inferior no tape la imagen al scrollear */
}

.canvas-stack canvas { display: block; position: absolute; top: 0; left: 0; }
.canvas-stack canvas:first-child { position: relative; }
#draw-canvas { pointer-events: none; z-index: 2; }
#lasso-canvas { pointer-events: none; z-index: 3; }
#text-canvas  { pointer-events: none; z-index: 4; }

/* ── DROPZONE ──────────────────────────────────── */
.dropzone {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; cursor: pointer; color: var(--tx3); transition: background 0.2s;
}
.dropzone.drag-over { background: rgba(30,132,198,0.05); }
.dz-title { font-size: 20px; font-weight: 600; color: var(--tx); margin-top: 4px; }
.dz-sub   { font-size: 12px; color: var(--tx2); }
.dz-btn {
  margin-top: 8px; padding: 10px 24px; background: var(--orange); color: #fff;
  border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; transition: background 0.15s; box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}
.dz-btn:hover { background: var(--orange2); transform: translateY(-1px); }
.dz-fmts { font-size: 11px; color: var(--tx3); font-family: var(--mono); }

/* ── CROP OVERLAY ──────────────────────────────── */
.crop-overlay { position: fixed; inset: 0; z-index: 8000; background: rgba(0,0,0,0.92); display: flex; flex-direction: column; animation: fadein 0.2s ease; overflow: hidden; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.crop-topbar {
  height: 64px; background: rgba(12,15,26,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; gap: 12px; flex-shrink: 0; z-index: 8001;
}

.crop-cancel-btn, .crop-confirm-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
  background: transparent; color: var(--tx2); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 12px; font-weight: 600; font-family: var(--sans); cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.crop-cancel-btn:hover { background: var(--bg3); color: var(--tx); border-color: var(--line2); }
.crop-confirm-btn { background: var(--orange); color: #fff; border-color: transparent; }
.crop-confirm-btn:hover { background: var(--orange2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,102,0,0.3); }
.crop-confirm-btn:active { transform: translateY(0); }

.crop-aspect-btns { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.crop-asp-btn {
  padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--tx3); border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s; font-family: var(--sans); font-size: 11px; font-weight: 500;
}
.crop-asp-btn:hover { background: var(--bg3); color: var(--tx2); border-color: var(--line); }
.crop-asp-btn.active { background: rgba(30,132,198,0.16); color: var(--accent2); border-color: rgba(30,132,198,0.4); box-shadow: 0 0 12px rgba(30,132,198,0.2); }

.crop-canvas-container { flex: 1; overflow: auto; position: relative; scroll-behavior: smooth; }
#crop-canvas { display: block; cursor: move; touch-action: none; margin: 0 auto; }
.crop-dimensions { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: rgba(12,15,26,0.95); backdrop-filter: blur(12px); border: 1px solid var(--line2); border-radius: var(--radius-lg); padding: 8px 16px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent2); z-index: 8002; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }

/* ── TOASTS ────────────────────────────────────── */
#toasts { position: fixed; top: 60px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: var(--radius); font-size: 12px; font-weight: 500; color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,0.6); animation: tin 0.3s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: auto; max-width: 300px; line-height: 1.4; }
.toast-s { background: #18A354; border: 1px solid #22C55E; }
.toast-e { background: var(--red); border: 1px solid #FF7A8E; }
.toast-i { background: var(--accent); border: 1px solid var(--accent2); }
.toast-w { background: var(--orange); border: 1px solid var(--orange2); color: #fff; }
.toast.out { animation: tout 0.2s ease forwards; }
@keyframes tin  { from { opacity:0; transform:translateY(-10px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes tout { from { opacity:1; transform:scale(1); } to { opacity:0; transform:scale(0.95); } }

/* ── BACKGROUND CANVAS ─────────────────────────── */
#helix-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.topbar, .workspace { position: relative; z-index: 1; }

/* ── UTILS ─────────────────────────────────────── */
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-label { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--tx2); cursor: pointer; }
.toggle-label input[type=checkbox] { width: 13px; height: 13px; accent-color: var(--accent); cursor: pointer; }

/* ══════════════════════════════════════════════════
   CORRECCIÓN DE CONTRASTE Y LEGIBILIDAD (GLASSMORPHISM)
   ══════════════════════════════════════════════════ */

/* Forzar texto blanco puro y sombra oscura en todas las burbujas */
.dock-btn, .tool-btn, .filter-btn, .action-btn, 
.plabel, .slider-row label, .color-row label, 
.slider-val, .toggle-label, .hint, .layers-empty, 
.layer-name, .layer-meta, .dock-btn span {
  color: #ffffff !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85) !important;
}

/* Sombra a los iconos (SVG) para que no se pierdan en fondos claros */
.tool-btn svg, .dock-btn svg, .icon-btn svg, .vis-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
}

/* Mejorar el contraste de los inputs y selects para que el texto sea nítido */
.text-inp, .mini-sel, .mini-num {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.4) !important; /* Fondo del input un poco más oscuro */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  text-shadow: none !important; /* Los inputs no necesitan sombra si su fondo es oscuro */
}

/* Ajustar los botones activos para que el resplandor no mate la sombra */
.tool-btn.active, .dock-btn.active, .filter-btn.active {
  color: #ffffff !important;
}
.tool-btn.active svg, .dock-btn.active svg {
  color: var(--accent2) !important;
  filter: drop-shadow(0 0 6px rgba(64, 184, 255, 0.8)) !important;
}