/* Spotlight — cerca globale taskbar */

.taskbar-search {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.taskbar-search.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-1);
}

.spotlight-panel {
  position: absolute;
  left: 56px;
  bottom: calc(var(--taskbar-h) + 10px);
  width: min(460px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - var(--taskbar-h) - 24px));
  display: none;
  flex-direction: column;
  background: #1b2030;
  border: 1px solid #2c3350;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 260;
}

.spotlight-panel.open {
  display: flex;
}

.spotlight-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #232a40;
}

.spotlight-head svg {
  width: 16px;
  height: 16px;
  color: #9aa3c4;
  flex-shrink: 0;
}

.spotlight-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef1fb;
  font-size: 15px;
  font-family: inherit;
}

.spotlight-input::placeholder {
  color: #7d86a6;
}

.spotlight-kbd {
  font-size: 11px;
  color: #7d86a6;
  border: 1px solid #2c3350;
  border-radius: 6px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.spotlight-results {
  overflow-y: auto;
  padding: 8px;
  min-height: 80px;
}

.spotlight-group {
  margin-bottom: 6px;
}

.spotlight-group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7d86a6;
  padding: 6px 10px 4px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #eef1fb;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.spotlight-item:hover,
.spotlight-item.is-active {
  background: rgba(58, 134, 255, 0.18);
}

.spotlight-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #232a40;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  overflow: hidden;
}

.spotlight-item-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.spotlight-item-main {
  min-width: 0;
  flex: 1;
}

.spotlight-item-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-sub {
  font-size: 12px;
  color: #9aa3c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-empty {
  padding: 28px 16px;
  text-align: center;
  color: #9aa3c4;
  font-size: 13px;
}

@media (max-width: 560px) {
  .spotlight-panel {
    left: 8px;
    right: 8px;
    width: auto;
  }
}
