﻿/* ==========================================================================
   Command Palette (Ctrl+K)
   ========================================================================== */
#command-palette-root:empty {
  display: none;
}
.cmd-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 99999;
}
.cmd-palette-box {
  position: fixed;
  top: 15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 650px;
  background: var(--bg-surface-solid-dark, #16181e);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 100000;
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--font-sans);
}
body.theme-ivory .cmd-palette-box {
  background: #fff;
  color: #1a1a1a;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.cmd-header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
body.theme-ivory .cmd-header {
  border-bottom-color: rgba(0,0,0,0.1);
}
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  outline: none;
}
.cmd-shortcut-hint {
  font-size: 0.75rem;
  opacity: 0.5;
  background: rgba(128,128,128,0.2);
  padding: 4px 8px;
  border-radius: 4px;
}
.cmd-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 10px;
}
.cmd-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
}
.cmd-item.active {
  background: rgba(255,87,34,0.15);
}
.cmd-icon {
  font-size: 1.5rem;
  margin-right: 16px;
}
.cmd-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cmd-title {
  font-size: 1rem;
  font-weight: 600;
}
.cmd-type {
  font-size: 0.75rem;
  opacity: 0.6;
}
.cmd-enter {
  opacity: 0.5;
}
.cmd-empty {
  padding: 20px;
  text-align: center;
  opacity: 0.5;
}
