/* Spotlight Search Modal */
.spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
}

.spotlight-overlay.active {
  display: flex;
}

.spotlight-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  animation: spotlightSlideIn 0.2s ease-out;
}

@keyframes spotlightSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.spotlight-search-box {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.spotlight-icon {
  width: 20px;
  height: 20px;
  color: #666;
  margin-right: 12px;
  flex-shrink: 0;
}

.spotlight-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  background: transparent;
}

.spotlight-input::placeholder {
  color: #999;
}

.spotlight-close-hint {
  font-size: 12px;
  color: #999;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.spotlight-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}

.spotlight-results::-webkit-scrollbar {
  width: 6px;
}

.spotlight-results::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.spotlight-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.spotlight-group {
  margin-bottom: 8px;
}

.spotlight-group-title {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  padding: 8px 20px 4px;
  letter-spacing: 0.5px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.spotlight-item:hover,
.spotlight-item.highlighted {
  background: #f5f5f5;
}

.spotlight-item.highlighted {
  background: #e8f0fe;
}

.spotlight-item-icon {
  width: 32px;
  height: 32px;
  background: #f0f0f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.spotlight-item-icon svg {
  width: 18px;
  height: 18px;
  color: #666;
}

.spotlight-item-content {
  flex: 1;
  min-width: 0;
}

.spotlight-item-label {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-hint {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.spotlight-item-arrow {
  color: #ccc;
  flex-shrink: 0;
  margin-left: 8px;
}

.spotlight-no-results {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.spotlight-no-results svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.spotlight-no-results p {
  font-size: 14px;
  margin: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .spotlight-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .spotlight-modal {
    background: #2d2d2d;
  }

  .spotlight-search-box {
    border-bottom-color: #444;
  }

  .spotlight-icon {
    color: #aaa;
  }

  .spotlight-input {
    color: #fff;
  }

  .spotlight-input::placeholder {
    color: #777;
  }

  .spotlight-close-hint {
    background: #444;
    color: #aaa;
  }

  .spotlight-group-title {
    color: #777;
  }

  .spotlight-item:hover,
  .spotlight-item.highlighted {
    background: #3d3d3d;
  }

  .spotlight-item.highlighted {
    background: #3a4a5e;
  }

  .spotlight-item-icon {
    background: #444;
  }

  .spotlight-item-icon svg {
    color: #aaa;
  }

  .spotlight-item-label {
    color: #fff;
  }

  .spotlight-item-hint {
    color: #777;
  }

  .spotlight-item-arrow {
    color: #666;
  }

  .spotlight-no-results {
    color: #777;
  }
}
