/* ── Taskbar ─────────────────────────────────────────────── */

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--taskbar-h);
  background: var(--void-taskbar);
  border-top: 1px solid var(--void-border);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  z-index: 9000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Logo button (left) ──────────────────────────────────── */
#taskbar-logo {
  font-family: var(--void-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--void-accent);
  letter-spacing: 2px;
  padding: 4px 10px;
  border: 1px solid var(--void-accent-dim);
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: background .15s;
}

#taskbar-logo:hover {
  background: rgba(126,231,135,.08);
}

/* ── Window buttons (center, flex-grow) ──────────────────── */
#taskbar-windows {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

#taskbar-windows::-webkit-scrollbar { display: none; }

.taskbar-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--void-border);
  border-radius: 3px;
  color: var(--void-muted);
  font-family: var(--void-mono);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .1s, color .1s, border-color .1s;
  flex-shrink: 0;
  user-select: none;
}

.taskbar-btn:hover {
  background: rgba(255,255,255,.08);
  color: var(--void-fg);
}

.taskbar-btn.active {
  background: rgba(126,231,135,.10);
  border-color: var(--void-accent-dim);
  color: var(--void-fg);
}

.taskbar-btn.minimized {
  opacity: .55;
  border-style: dashed;
}

.taskbar-btn-icon {
  font-size: 12px;
  line-height: 1;
}

/* ── Right section (clock) ───────────────────────────────── */
#taskbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 8px;
  border-left: 1px solid var(--void-border);
  margin-left: 4px;
}

#taskbar-clock {
  font-family: var(--void-mono);
  font-size: 11px;
  color: var(--void-fg);
  letter-spacing: .5px;
  min-width: 60px;
  text-align: right;
  user-select: none;
}

/* ── Launcher VOID ───────────────────────────────────────── */
#void-launcher {
  position: fixed;
  bottom: calc(var(--taskbar-h, 36px) + 6px);
  left: 4px;
  background: var(--void-panel, #111720);
  border: 1px solid var(--void-border, #1e2d3d);
  border-radius: 8px;
  min-width: 200px;
  max-height: 70vh;
  z-index: 8888;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
}

#void-launcher.hidden { display: none; }

#vl-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--void-border, #1e2d3d) transparent;
}

.vl-section + .vl-section {
  border-top: 1px solid var(--void-border, #1e2d3d);
}

.vl-section-hdr {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .4;
  padding: 8px 12px 3px;
  user-select: none;
  font-family: var(--void-mono);
}

.vl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--void-mono);
  color: var(--void-fg, #d7dde6);
  transition: background .1s;
}

.vl-item:hover {
  background: rgba(255,255,255,.06);
}

.vl-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Launcher footer (Opciones + Apagar) ─────────────────── */
#vl-footer {
  display: flex;
  border-top: 1px solid var(--void-border, #1e2d3d);
  padding: 5px 6px;
  gap: 4px;
  flex-shrink: 0;
}

.vl-action-btn {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--void-border, #1e2d3d);
  border-radius: 4px;
  color: var(--void-muted, #6b7a90);
  font-family: var(--void-mono);
  font-size: 11px;
  padding: 5px 4px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}

.vl-action-btn:hover {
  background: rgba(255,255,255,.09);
  color: var(--void-fg, #d7dde6);
  border-color: #2d4060;
}

.vl-action-btn--danger:hover {
  background: rgba(220,60,60,.12);
  color: #e07070;
  border-color: rgba(220,60,60,.3);
}

/* ── Modal de opciones ───────────────────────────────────── */
#void-options-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
}

#void-options-modal.hidden { display: none; }

#vom-box {
  background: var(--void-panel, #111720);
  border: 1px solid var(--void-border, #1e2d3d);
  border-radius: 8px;
  min-width: 360px;
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
}

#vom-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--void-border, #1e2d3d);
  font-family: var(--void-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--void-fg, #d7dde6);
  user-select: none;
}

#vom-close {
  background: none;
  border: none;
  color: var(--void-muted, #6b7a90);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 3px;
  transition: color .12s, background .12s;
}

#vom-close:hover {
  color: var(--void-fg, #d7dde6);
  background: rgba(255,255,255,.07);
}

#vom-body {
  padding: 24px 16px;
  min-height: 80px;
  color: var(--void-muted, #6b7a90);
  font-family: var(--void-mono);
  font-size: 11px;
  text-align: center;
}
