/* =============================================================================
   FLOWORK OS — NANO-MODULAR COMPONENT: CHAT_COMPOSER.CSS
   Chat Input, Composer, Account & Model Selectors
   Author: Flowork OS Sovereign Architect & Awenk Audico
   Co-authored-by: Flowork OS <agent@floworkos.com>
   ============================================================================= */

/* Chat Input Footer */
.rightbar-chat-footer {
  padding: 10px 14px 14px 14px;
  background: rgba(0, 229, 255, 0.02) !important;
  border-top: 1px solid rgba(0, 229, 255, 0.12) !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto !important;
  flex-shrink: 0 !important;
}

.chat-input-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(6, 14, 30, 0.35) !important;
  border: 1px solid rgba(0, 229, 255, 0.24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 12px;
  padding: 10px 12px 9px 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 12px rgba(0, 229, 255, 0.02);
}

.chat-input-box:focus-within {
  border-color: #00e5ff !important;
  background: rgba(0, 229, 255, 0.08) !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25) !important;
}

.chat-input-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-stack);
  font-size: 13px;
  line-height: 1.45;
  resize: none;
  min-height: 24px;
  max-height: 120px;
}

.chat-input-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.chat-input-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding-top: 2px;
}

.chat-input-left-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chat-input-add-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-input-add-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.chat-account-selector-wrap {
  position: relative;
  display: inline-flex;
}

.chat-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  max-width: 140px;
}

.chat-account-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.chat-account-pill.active {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.45);
  color: #c084fc;
}

.chat-account-pill.is-pinned {
  border-color: rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
}

.chat-account-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-account-chevron {
  color: var(--text-dim);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.chat-account-pill:hover .chat-account-chevron {
  color: #ffffff;
}

.chat-account-pill.active .chat-account-chevron {
  transform: rotate(180deg);
  color: #c084fc;
}

.chat-account-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 320px;
  background: rgba(4, 10, 22, 0.85) !important;
  border: 1px solid rgba(0, 229, 255, 0.3) !important;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 229, 255, 0.15);
  padding: 6px;
  z-index: 60;
  backdrop-filter: none !important;
  animation: fadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-dropdown-header {
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-dim);
  padding: 5px 8px 6px 8px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 340px;
  overflow-y: auto;
}

.account-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.account-option-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.account-option-item.selected {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
}

.account-option-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.account-option-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-option-name {
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-option-item.selected .account-option-name {
  color: #c084fc;
}

.account-option-badge {
  font-size: 8px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.account-option-desc {
  font-size: 9.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-combo {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-account-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-account-cooldown {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-account-pinned {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.chat-model-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.chat-model-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.chat-model-chevron {
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.chat-model-pill:hover .chat-model-chevron {
  color: #ffffff;
}

.chat-model-selector-wrap {
  position: relative;
  display: inline-flex;
}

.chat-model-pill.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
}

.chat-model-pill.active .chat-model-chevron {
  transform: rotate(180deg);
  color: #00e5ff;
}

.chat-model-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 300px;
  background: rgba(16, 10, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 229, 255, 0.15);
  padding: 6px;
  z-index: 60;
  backdrop-filter: none !important;
  animation: fadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-dropdown-header {
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-dim);
  padding: 2px 4px 6px 4px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.model-dropdown-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.active-provider-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.model-provider-tabs {
  display: flex;
  gap: 3px;
  margin-top: 4px;
  margin-bottom: 2px;
}

.model-provider-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim, #94a3b8);
  border-radius: 6px;
  padding: 5px 2px;
  font-size: 8.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.model-provider-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.model-provider-tab.active {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.provider-tab-icon {
  font-size: 11px;
}

.provider-tab-name {
  letter-spacing: 0.02em;
}

.model-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 380px;
  overflow-y: auto;
}

.model-option-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.model-option-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.model-option-item.selected {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.35);
}

.model-option-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.model-option-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-option-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
}

.model-option-item.selected .model-option-name {
  color: #00e5ff;
}

.model-option-badge {
  font-size: 8px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.badge-recommended {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-thinking {
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.badge-fast {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-pro {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-anthropic {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.badge-weights {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.model-option-desc {
  font-size: 9.5px;
  color: var(--text-dim);
  line-height: 1.35;
}

.model-option-check {
  color: #00e5ff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.chat-input-send {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00e5ff 0%, #b042ff 100%);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.chat-input-send .send-icon {
  display: block;
}

.chat-input-send .stop-spinner-wrap {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.chat-input-send.is-running {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.chat-input-send.is-running .send-icon {
  display: none !important;
}

.chat-input-send.is-running .stop-spinner-wrap {
  display: flex !important;
}

.chat-input-send.is-running:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.65);
}

.fl-send-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.chat-input-send .stop-icon {
  color: #ffffff;
  z-index: 2;
  flex-shrink: 0;
}

.chat-input-send:hover {
  transform: scale(1.05);
}

.chat-input-hints {
  font-size: 9.5px;
  color: var(--text-dim);
  text-align: center;
}

/* =============================================================================
   CHAT AGENT / PERSONA SPECIALIST SELECTOR
   ============================================================================= */
.chat-agent-selector-wrap {
  position: relative;
  display: inline-flex;
}

.chat-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  max-width: 155px;
}

.chat-agent-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.chat-agent-pill.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.chat-agent-pill.is-locked {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.chat-agent-pill-icon {
  font-size: 11px;
  flex-shrink: 0;
}

.chat-agent-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-agent-chevron {
  color: var(--text-dim);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.chat-agent-pill:hover .chat-agent-chevron {
  color: #ffffff;
}

.chat-agent-pill.active .chat-agent-chevron {
  transform: rotate(180deg);
  color: #34d399;
}

.chat-agent-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 360px;
  background: rgba(8, 14, 26, 0.97) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.15);
  padding: 6px;
  z-index: 60;
  backdrop-filter: none !important;
  animation: fadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-dropdown-header {
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-dim);
  padding: 5px 8px 6px 8px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-dropdown-search-wrap {
  padding: 2px 4px 6px 4px;
}

.agent-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  color: #f1f5f9;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}

.agent-search-input:focus {
  border-color: #10b981;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.agent-dept-tabs {
  display: flex;
  gap: 4px;
  padding: 0 4px 6px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.agent-dept-tabs::-webkit-scrollbar {
  display: none;
}

.agent-dept-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 2px 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.agent-dept-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.agent-dept-tab.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.badge-agent-dept {
  font-size: 7.5px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-dept-engineering {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-dept-security {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.badge-dept-product {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-dept-design {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.badge-dept-documentation {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.3);
}

.badge-dept-meta {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}

.badge-dept-finance {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.badge-dept-healthcare {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-dept-psychology {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

.badge-dept-legal {
  background: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
  border-color: rgba(217, 119, 6, 0.3);
}

.badge-dept-education {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.3);
}

.badge-dept-technology {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}

.badge-dept-business {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-dept-marketing {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}

.badge-dept-advertising {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.badge-dept-media_creative {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.badge-dept-human_resources {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}

.badge-dept-science_research {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.badge-dept-automation_admin {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
}

.badge-dept-core {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.4);
}

.badge-dept-arts_music_poetry {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.35);
}

.badge-dept-metaphysics_fengshui {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-dept-architecture_spatial {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.35);
}

.badge-dept-culinary_gastronomy {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.35);
}

.badge-dept-sports_athletics {
  background: rgba(132, 204, 22, 0.15);
  color: #a3e635;
  border-color: rgba(132, 204, 22, 0.35);
}

.badge-dept-agriculture_ecology {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}

.badge-dept-diplomacy_negotiation {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.35);
}

.badge-dept-cybersecurity_forensics {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.badge-dept-hospitality_tourism {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border-color: rgba(20, 184, 166, 0.35);
}

.badge-dept-maritime_logistics {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.35);
}

.agent-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 340px;
  overflow-y: auto;
}

.agent-option-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.agent-option-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.agent-option-item.selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}

.agent-option-left {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.agent-option-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.agent-option-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.agent-option-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-option-name {
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-option-item.selected .agent-option-name {
  color: #34d399;
}

.agent-option-badge {
  font-size: 8px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.badge-agent-default {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-agent-specialist {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.agent-option-desc {
  font-size: 9.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-option-check {
  color: #34d399;
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.agent-dropdown-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
}

.btn-save-agent-settings {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  justify-content: center;
  font-family: inherit;
}

.btn-save-agent-settings:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* =============================================================================
   COMPOSER ANIMATION KEYFRAMES
   ============================================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* =============================================================================
   CHAT SLASH COMMAND PALETTE (AUTOCOMPLETE DROPDOWN)
   ============================================================================= */
.chat-slash-palette {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 16, 30, 0.96) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 242, 254, 0.35) !important;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 242, 254, 0.15);
  z-index: 1000;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slashFadeUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slashFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slash-palette-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #00F2FE;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slash-palette-header .slash-persona-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 242, 254, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  color: #38bdf8;
  font-size: 9px;
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.slash-palette-list {
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.2) transparent;
}

.slash-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  border: 1px solid transparent;
}

.slash-palette-item:hover,
.slash-palette-item.selected {
  background: rgba(0, 242, 254, 0.1) !important;
  border-color: rgba(0, 242, 254, 0.35) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.slash-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.slash-item-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.slash-item-command {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  flex-shrink: 0;
}

.slash-palette-item.selected .slash-item-command {
  color: #00F2FE;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.slash-item-desc {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 6px;
}

.slash-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}

.slash-item-badge {
  font-size: 8px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slash-badge-coder {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.slash-badge-core {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.slash-palette-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
}
