/* Ghost Theme - SURGICAL v25 */
/* Pure black everywhere including progress bar */

/* ===== PURE BLACK - MAIN AREAS ===== */
body,
html,
#app,
.container,
.right-panel,
#right-panel,
.panel.expanded,
.chat-area,
#chat-history {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* ===== LEFT PANEL / SIDEBAR - PURE BLACK ===== */
#left-panel,
.left-panel,
#left-panel.panel,
.left-panel-top,
.sidebar {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* ===== PROGRESS BAR / WAITING FOR INPUT - PURE BLACK ===== */
#progress-bar-box,
.progress-bar-box,
#progress-bar,
.progress-bar {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* ===== INPUT SECTION - Pure black, orange border, rounded pill ===== */
#input-section {
  border: 1px solid rgba(255, 107, 53, 0.4) !important;
  border-radius: 24px !important;
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.2) !important;
  background: #000000 !important;
  margin: 0 12px 12px 12px !important;
}

/* ===== TEXTAREA - No box ===== */
#chat-input,
#chat-input-container,
textarea#chat-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ===== CENTER PLACEHOLDER TEXT ===== */
.input-row {
  align-items: center !important;
}

#chat-input-container {
  display: flex !important;
  align-items: center !important;
}

/* ===== FIX: Keep BOTH buttons inside input bar ===== */
#chat-buttons-wrapper {
  width: auto !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}

/* ===== SEND BUTTON ===== */
#send-button {
  background: #FF6B35 !important;
  border: none !important;
  color: #000 !important;
}

#send-button svg path {
  stroke: #000 !important;
}

/* ===== MIC BUTTON - subtle dark with muted icon ===== */
#microphone-button {
  background: rgba(40, 40, 40, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

#microphone-button svg,
#microphone-button svg path {
  fill: rgba(255, 255, 255, 0.6) !important;
}

#microphone-button:hover {
  background: rgba(60, 60, 60, 0.9) !important;
  border-color: rgba(255, 107, 53, 0.5) !important;
}

#microphone-button:hover svg,
#microphone-button:hover svg path {
  fill: rgba(255, 255, 255, 0.9) !important;
}

/* ===== TABS ===== */
.tab.active {
  border-color: rgba(255, 107, 53, 0.6) !important;
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.15) !important;
}

/* ===== HIDE "User message" header ===== */
.message.message-user .msg-heading,
.user-container .msg-heading {
  display: none !important;
}

/* ===== CHAT BUBBLES - Minimal Black Theme with Left Border Accents ===== */

/* User messages - dark charcoal with visible white/gray left border */
.message-user {
  background-color: #111111 !important;
  border: none !important;
  border-left: 3px solid rgba(255, 255, 255, 0.45) !important;
}

/* Assistant response - pure black with orange left border, softer text */
.message-agent-response {
  background-color: #000000 !important;
  box-shadow: none !important;
  border-left: 3px solid rgba(255, 107, 0, 0.5) !important;
  color: #b8b8b8 !important;
}

.message-agent-response .msg-content,
.message-agent-response .message-text,
.message-agent-response p {
  color: #b8b8b8 !important;
}

/* Thinking/status header - pure black with visible gray border */
.message-agent {
  background-color: #000000 !important;
  box-shadow: none !important;
  border-left: 3px solid rgba(255, 255, 255, 0.35) !important;
}

/* Delegation messages - pure black with teal accent */
.message-agent-delegation {
  background-color: #000000 !important;
  box-shadow: none !important;
  border-left: 3px solid rgba(0, 200, 180, 0.4) !important;
}

/* Tool messages - pure black with subtle purple accent */
.message-tool {
  background-color: #000000 !important;
  box-shadow: none !important;
  border-left: 3px solid rgba(150, 100, 255, 0.35) !important;
}

/* Default messages - pure black with very subtle border */
.message-default {
  background-color: #000000 !important;
  box-shadow: none !important;
  border-left: 3px solid rgba(255, 255, 255, 0.08) !important;
}

/* Remove inner shadow from all message cards */
.dark-mode .message {
  box-shadow: none !important;
}

/* ===== MESSAGE ACTION BUTTONS - Higher contrast ===== */
.msg-min-max-btns {
  opacity: 65% !important;
}

.msg-min-max-btns:hover {
  opacity: 90% !important;
}

/* Make the button icons themselves more visible */
.msg-min-max-btns button,
.msg-min-max-btns svg {
  color: rgba(255, 255, 255, 0.7) !important;
  stroke: rgba(255, 255, 255, 0.7) !important;
}

.msg-min-max-btns button:hover,
.msg-min-max-btns button:hover svg {
  color: #FF6B00 !important;
  stroke: #FF6B00 !important;
}

/* ===== SETTINGS MODAL - Pure Black Theme ===== */

/* Modal container - pure black, subtle border */
.modal-container {
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

/* Modal header - pure black */
.modal-header {
  background-color: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Modal body/content - pure black */
.modal-body,
.modal-content {
  background-color: #000000 !important;
}

/* Settings sections - pure black with subtle left border */
.section {
  background-color: #000000 !important;
  border: none !important;
  border-left: 3px solid rgba(255, 255, 255, 0.15) !important;
}

/* Section headers - pure black */
.section-header,
.section h3 {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Save button - orange */
.btn-ok {
  background: #FF6B00 !important;
  color: #000000 !important;
}

.btn-ok:hover {
  background: #FF8533 !important;
}

.btn-ok:active {
  background: #CC5500 !important;
}

/* Cancel button - neutral gray, no pink */
.btn-cancel {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-cancel:active {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Settings tabs container - remove artifacts */
.settings-tabs-container,
.settings-tabs-container *,
.settings-tabs,
.settings-tabs::before,
.settings-tabs::after {
  background-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.settings-tabs-container {
  background-color: #000000 !important;
  background: #000000 !important;
}

.settings-tabs {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.settings-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Settings tab buttons (Agent Config, Chat Model, etc.) */
.settings-tabs button,
.modal-subheader button,
.tab-button {
  background-color: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.settings-tabs button:hover,
.modal-subheader button:hover,
.tab-button:hover {
  border-color: rgba(255, 107, 0, 0.4) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.settings-tabs button.active,
.modal-subheader button.active,
.tab-button.active {
  border-color: rgba(255, 107, 0, 0.6) !important;
  color: #FF6B00 !important;
}

/* Input fields - dark with subtle border */
.modal-container input[type="text"],
.modal-container input[type="password"],
.modal-container input[type="number"],
.modal-container textarea,
.modal-container select {
  background-color: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.modal-container input:focus,
.modal-container textarea:focus,
.modal-container select:focus {
  border-color: rgba(255, 107, 0, 0.5) !important;
  outline: none !important;
}

/* Toggle switches - orange when active */
.toggle input:checked + .toggler {
  background-color: #FF6B00 !important;
}

/* ===== CUSTOM SELECT DROPDOWNS - Polished look for Chrome ===== */
.modal-container select,
.settings-sections select {
  background-color: #1f1f1f !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.modal-container select:hover,
.settings-sections select:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background-color: #262626 !important;
}

.modal-container select:focus,
.settings-sections select:focus {
  border-color: rgba(255, 107, 0, 0.5) !important;
  outline: none !important;
}

/* ===== WELCOME SCREEN - Orange Theme ===== */

/* Welcome container - pure black */
.welcome-container {
  background: #000000 !important;
}

/* Welcome action cards - dark with orange accent */
.welcome-action-card {
  background: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-left: 3px solid rgba(255, 107, 0, 0.5) !important;
}

.welcome-action-card:hover {
  background: #111111 !important;
  border-color: rgba(255, 107, 0, 0.4) !important;
  border-left: 3px solid rgba(255, 107, 0, 0.8) !important;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.15) !important;
}

/* Card icons - orange */
.welcome-action-icon {
  color: #FF6B00 !important;
}

/* Card titles */
.welcome-action-title {
  color: #ffffff !important;
}

/* Card descriptions */
.welcome-action-description {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Welcome title */
.welcome-title {
  color: #ffffff !important;
}

/* Welcome subtitle */
.welcome-subtitle {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== SIDEBAR BUTTONS - Text overflow fix ===== */
.config-button {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding: var(--spacing-sm) 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
}

/* ===== SIDEBAR LOGO - Animation when transitioning from welcome to chat ===== */
#logo-container {
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

#logo-container.logo-hidden {
  opacity: 0 !important;
  transform: translateY(-10px) scale(0.9) !important;
}

#logo-container.logo-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

#logo-container.logo-fade-in {
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

/* Add subtle glow to sidebar ghost logo */
#logo-container img {
  filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.3)) !important;
  transition: filter 0.3s ease !important;
}

#logo-container img:hover {
  filter: drop-shadow(0 0 12px rgba(255, 107, 0, 0.5)) !important;
}

/* ===== PROJECT DROPDOWN - Dark Theme ===== */

/* Project dropdown button - dark instead of white, pill shape */
.project-dropdown-button {
  background-color: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 20px !important;
  padding: 0.4em 1em !important;
}

.project-dropdown-button:hover {
  background-color: #111111 !important;
  border-color: rgba(255, 107, 0, 0.4) !important;
  color: #ffffff !important;
}

/* Project dropdown menu - dark */
.project-dropdown-menu {
  background-color: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Project dropdown items */
.project-dropdown-item {
  color: rgba(255, 255, 255, 0.8) !important;
}

.project-dropdown-item:hover {
  background-color: rgba(255, 107, 0, 0.15) !important;
  color: #ffffff !important;
}

/* Project dropdown divider */
.project-dropdown-divider {
  background-color: rgba(255, 255, 255, 0.1) !important;
}
