/* Command menu (shared/_command_menu) */
/* Command Menu Dialog */
.command-menu-dialog {
  border: 2px solid rgba(249, 115, 22, 0.4);
  padding: 0;
  margin: auto;
  margin-top: 8vh;
  max-width: 32rem;
  width: calc(100% - 2rem);
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(249, 115, 22, 0.1), 0 0 30px -5px rgba(249, 115, 22, 0.15);
  background: white;
  overflow: hidden;
}

.command-menu-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.command-menu-panel {
  display: flex;
  flex-direction: column;
}

/* Search Header */
.search-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  flex-shrink: 0;
}

.ff-pill {
  padding: 2px 8px;
  background: #f97316;
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  flex-shrink: 0;
}

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

.search-input::placeholder {
  color: #9ca3af;
}

.close-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.close-btn svg {
  width: 18px;
  height: 18px;
}

/* Quick Access - Fizzy Style */
.quick-access {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.quick-btn {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  min-height: 80px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-btn:hover {
  background: #fff7ed;
  border-color: #fdba74;
}

.quick-btn:first-child {
  background: #f97316;
  border-color: #f97316;
  color: white;
}

.quick-btn:first-child:hover {
  background: #ea580c;
  border-color: #ea580c;
}

.quick-btn:first-child svg {
  color: white;
}

.quick-btn:first-child span {
  color: white;
}

.quick-btn:first-child .quick-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.quick-btn svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  color: #64748b;
  flex-shrink: 0;
}

.quick-btn span {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-align: center;
  line-height: 1.2;
}

.quick-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 4px;
}

/* Menu Content */
.menu-content {
  max-height: 50vh;
  overflow-y: auto;
}

.menu-section {
  padding: 12px;
}

.menu-section + .menu-section {
  border-top: 1px solid #f3f4f6;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f97316;
  padding: 4px 12px 8px;
}

/* Menu Items */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.1s ease;
}

.menu-item:hover {
  background: #f3f4f6;
}

.menu-item svg {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  flex-shrink: 0;
}

.item-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.menu-item kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 6px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

/* Animation */
.command-menu-dialog {
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out, display 0.15s allow-discrete;
}

.command-menu-dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.command-menu-dialog::backdrop {
  opacity: 0;
  transition: opacity 0.15s ease-out, display 0.15s allow-discrete;
}

.command-menu-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .command-menu-dialog[open] {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  .command-menu-dialog[open]::backdrop {
    opacity: 0;
  }
}
