/* ── Desktop ── */
.desktop {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: transparent;
  position: relative;
}

/* Area desktop vuota — le finestre verranno aggiunte qui */
.desktop-surface {
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Contenitore finestre (vuoto per ora) */
#windows-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#windows-container > * {
  pointer-events: auto;
}

/* Taskbar */
.taskbar {
  height: var(--taskbar-h);
  background: rgba(32, 32, 32, 0.82);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.taskbar-start {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}

.taskbar-start:hover { background: var(--bg-hover); }
.taskbar-start svg { width: 20px; height: 20px; }
.taskbar-start-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.taskbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  margin: 0 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-pill);
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  min-width: 240px;
  max-width: 320px;
  transition: background 0.1s;
}

.taskbar-search:hover { background: rgba(255,255,255,0.09); }
.taskbar-search svg { width: 14px; height: 14px; flex-shrink: 0; }

.taskbar-spacer { flex: 1; }

.taskbar-clock {
  padding: 4px 10px;
  text-align: right;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.35;
  border-radius: var(--radius-sm);
  cursor: default;
  flex-shrink: 0;
}

.taskbar-clock:hover { background: var(--bg-hover); }
