/* Global Styling & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Common variables */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
  
  --sidebar-width-collapsed: 68px;
  --sidebar-width-expanded: 260px;
}

/* Theme definition */
html[data-theme="aurora"] {
  --bg-primary: #04090e;
  --bg-secondary: #08111a;
  --bg-tertiary: #0e1e2d;
  --border-color: rgba(20, 184, 166, 0.12);
  --border-color-hover: rgba(20, 184, 166, 0.25);
  
  --text-primary: #f0fdfa;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  
  --accent-color: #06b6d4; /* Teal / Cyan */
  --accent-gradient: linear-gradient(135deg, #0d9488, #0ea5e9);
  --glow-color: rgba(6, 182, 212, 0.15);
  --secondary-accent: #3b82f6;
  
  --glow-1-bg: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, rgba(0,0,0,0) 70%);
  --glow-2-bg: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(0,0,0,0) 65%);
}

html[data-theme="cosmic"] {
  --bg-primary: #07060e;
  --bg-secondary: #0f0d1a;
  --bg-tertiary: #19162c;
  --border-color: rgba(168, 85, 247, 0.12);
  --border-color-hover: rgba(168, 85, 247, 0.25);
  
  --text-primary: #faf5ff;
  --text-secondary: #a78bfa;
  --text-tertiary: #7c3aed;
  
  --accent-color: #d946ef; /* Magenta/Purple */
  --accent-gradient: linear-gradient(135deg, #a855f7, #6366f1);
  --glow-color: rgba(217, 70, 239, 0.15);
  --secondary-accent: #818cf8;
  
  --glow-1-bg: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(0,0,0,0) 70%);
  --glow-2-bg: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 65%);
}

html[data-theme="sunset"] {
  --bg-primary: #0c0605;
  --bg-secondary: #160c0a;
  --bg-tertiary: #241410;
  --border-color: rgba(249, 115, 22, 0.12);
  --border-color-hover: rgba(249, 115, 22, 0.25);
  
  --text-primary: #fffaf0;
  --text-secondary: #f43f5e;
  --text-tertiary: #fb923c;
  
  --accent-color: #f97316; /* Amber/Orange */
  --accent-gradient: linear-gradient(135deg, #f97316, #e11d48);
  --glow-color: rgba(249, 115, 22, 0.15);
  --secondary-accent: #ef4444;
  
  --glow-1-bg: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(0,0,0,0) 70%);
  --glow-2-bg: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, rgba(0,0,0,0) 65%);
}

html[data-theme="emerald"] {
  --bg-primary: #030806;
  --bg-secondary: #07120c;
  --bg-tertiary: #0d2116;
  --border-color: rgba(16, 185, 129, 0.12);
  --border-color-hover: rgba(16, 185, 129, 0.25);
  
  --text-primary: #f0fdf4;
  --text-secondary: #86efac;
  --text-tertiary: #10b981;
  
  --accent-color: #10b981; /* Emerald/Mint */
  --accent-gradient: linear-gradient(135deg, #10b981, #065f46);
  --glow-color: rgba(16, 185, 129, 0.15);
  --secondary-accent: #34d399;
  
  --glow-1-bg: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(0,0,0,0) 70%);
  --glow-2-bg: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, rgba(0,0,0,0) 65%);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
}

/* Master App Container */
.app-container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* -------------------------------------------------------------
   1. SIDEBAR (SLIM GEMINI STYLE & COLLAPSIBLE / HOVER-EXPANDABLE)
   ------------------------------------------------------------- */
.sidebar {
  width: var(--sidebar-width-collapsed);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 8px;
  z-index: 100;
  transition: width var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.sidebar:hover,
.sidebar.expanded {
  width: var(--sidebar-width-expanded);
}

/* Sidebar Brand / Logo styling */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  height: 48px;
  margin-bottom: 24px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px var(--glow-color));
  animation: logo-float 4s ease-in-out infinite alternate;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.sidebar:hover .brand-name,
.sidebar.expanded .brand-name {
  opacity: 1;
  transform: translateX(0);
}

/* Navigation Buttons */
.sidebar-top,
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.nav-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-align: left;
  white-space: nowrap;
}

.nav-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-btn.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-left: 3px solid var(--accent-color);
  padding-left: 11px;
}

.icon-wrapper {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.nav-btn:hover .icon {
  transform: scale(1.1);
}

.label {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.sidebar:hover .label,
.sidebar.expanded .label {
  opacity: 1;
  transform: translateX(0);
}

/* User profile section at bottom */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-top: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.user-profile:hover {
  background-color: var(--bg-tertiary);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  position: relative;
  flex-shrink: 0;
}

.avatar-letter {
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.avatar-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.4;
  filter: blur(4px);
  z-index: 1;
}

.user-info {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.sidebar:hover .user-info,
.sidebar.expanded .user-info {
  opacity: 1;
  transform: translateX(0);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-tier {
  font-size: 0.7rem;
  color: var(--accent-color);
  font-weight: 500;
}


/* -------------------------------------------------------------
   2. MAIN WORKSPACE & BACKGROUND GLOWS
   ------------------------------------------------------------- */
.main-workspace {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* Background glows for premium ambient aesthetic */
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.radial-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.7;
  transition: background var(--transition-slow);
}

.glow-1 {
  width: 60vw;
  height: 60vw;
  top: -20vw;
  right: -10vw;
  background: var(--glow-1-bg);
}

.glow-2 {
  width: 50vw;
  height: 50vw;
  bottom: -15vw;
  left: 10vw;
  background: var(--glow-2-bg);
}


/* -------------------------------------------------------------
   3. TOP NAVIGATION HEADER
   ------------------------------------------------------------- */
.top-bar {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  background-color: rgba(4, 9, 14, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.top-left-controls,
.top-right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle {
  display: none; /* Only visible on mobile/tablet */
}

.workspace-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

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


/* -------------------------------------------------------------
   4. CONTENT VIEWPORT (WELCOME SCREEN OR ACTIVE CHAT)
   ------------------------------------------------------------- */
.content-viewport {
  flex-grow: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 0 24px;
  position: relative;
  z-index: 5;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.content-viewport::-webkit-scrollbar {
  width: 6px;
}

.content-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* 4a. Welcome Screen Styling */
.welcome-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70%;
  padding-bottom: 40px;
  animation: fade-in 0.8s ease-out;
}

.welcome-header {
  margin-bottom: 48px;
}

.greeting-text {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent-color), #818cf8, var(--accent-color));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-text 6s linear infinite;
}

.subtitle-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Prompt Quick Cards Grid */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.prompt-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.prompt-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  background: rgba(255, 255, 255, 0.04);
}

.card-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.card-icon {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.prompt-card:hover .card-icon {
  background: var(--accent-gradient);
  color: #fff;
}

.card-icon svg {
  width: 16px;
  height: 16px;
}

/* Hover radial light on cards */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 100% 100%, var(--glow-color) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.prompt-card:hover .card-glow {
  opacity: 0.4;
}


/* -------------------------------------------------------------
   5. CHAT THREAD MESSAGES & SIMULATED BUBBLES
   ------------------------------------------------------------- */
.chat-thread-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 80px;
  animation: fade-in 0.4s ease-out;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Individual Message Layout */
.message {
  display: flex;
  gap: 20px;
  width: 100%;
  animation: message-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-avatar.user-avatar {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.message-avatar.ai-avatar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--accent-color);
  filter: drop-shadow(0 0 4px var(--glow-color));
}

.message-avatar svg {
  width: 20px;
  height: 20px;
}

.message-body {
  flex-grow: 1;
  max-width: calc(100% - 60px);
}

.message-sender {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.message-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  word-wrap: break-word;
}

/* User Message specific overrides */
.message.user-message {
  border-bottom: none;
}

/* AI Message styling & loading state */
.message.ai-message {
  position: relative;
}

/* Streaming Typing Cursor */
.streaming-cursor {
  display: inline-block;
  width: 3px;
  height: 15px;
  background-color: var(--accent-color);
  margin-left: 4px;
  vertical-align: middle;
  animation: cursor-blink 0.8s step-end infinite;
}

/* Code block highlight design in AI reply */
.message-content pre {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  position: relative;
}

.message-content code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.message-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #e2e8f0;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin: -16px -16px 12px -16px;
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.copy-code-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.copy-code-btn:hover {
  color: var(--text-primary);
}

.copy-code-btn svg {
  width: 14px;
  height: 14px;
}

/* AI Generating Loading Skeleton Animation */
.ai-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

.skeleton-line:nth-child(1) { width: 90%; }
.skeleton-line:nth-child(2) { width: 75%; }
.skeleton-line:nth-child(3) { width: 45%; }


/* -------------------------------------------------------------
   6. BOTTOM CHAT BOX & INTERACTIVE PROMPT BAR
   ------------------------------------------------------------- */
.bottom-input-area {
  padding: 0 24px 24px 24px;
  z-index: 10;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 30%);
}

.input-panel-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Floating File Attachment Menu Box */
.attachment-popup {
  position: absolute;
  bottom: 80px;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 8px;
  width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 20;
}

.attachment-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.attachment-option {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.attachment-option:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.attachment-option svg {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
}

/* The prompt box layout (Rounded Capsule) */
.prompt-input-box {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 16px;
  gap: 12px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.prompt-input-box:focus-within {
  border-color: var(--border-color-hover);
  box-shadow: 0 0 20px var(--glow-color);
}

/* Left/Right actions inside prompt box */
.action-btn {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.action-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.action-btn svg {
  width: 20px;
  height: 20px;
}

/* Textarea input (Supports multi-line, auto-growing) */
.prompt-textarea {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-height: 200px;
  padding: 8px 0;
  font-weight: 400;
}

.prompt-textarea::placeholder {
  color: var(--text-tertiary);
}

.prompt-controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Send Button State styling */
.send-btn {
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 50%;
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(0.95);
}

.send-btn.ready {
  opacity: 1;
  cursor: pointer;
  transform: scale(1);
  box-shadow: 0 2px 8px var(--glow-color);
}

.send-btn.ready:hover {
  transform: scale(1.05);
  background: var(--accent-gradient);
  filter: brightness(1.1);
}

/* Microphone/Voice Active Glow */
.voice-btn {
  position: relative;
}

.voice-btn.recording {
  color: var(--accent-color);
  background: rgba(255,255,255,0.05);
}

.voice-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  pointer-events: none;
  opacity: 0;
  transform: scale(1);
}

.voice-btn.recording .voice-pulse {
  animation: pulse-ring 1.5s ease-out infinite;
}

/* Bottom tiny text info disclaimer */
.bottom-disclaimer {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.01em;
}


/* -------------------------------------------------------------
   7. CUSTOM LLM MODEL SELECTION DROPDOWN
   ------------------------------------------------------------- */
.custom-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 4px;
}

.dropdown-trigger {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.dropdown-trigger .chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.custom-dropdown.open .dropdown-trigger .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 8px;
  width: 280px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.65);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 30;
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
}

.dropdown-item.active {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-color);
  padding-left: 9px;
}

.item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.item-desc {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.3;
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge.speed { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge.intelligence { background: rgba(99, 102, 241, 0.1); color: #818cf8; }
.badge.specialized { background: rgba(217, 70, 239, 0.1); color: #d946ef; }


/* -------------------------------------------------------------
   8. PREFERENCES SETTINGS MODAL / PANEL OVERLAY
   ------------------------------------------------------------- */
.settings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.settings-modal-overlay.show,
.settings-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.settings-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 580px;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.settings-modal-overlay.show .settings-panel,
.settings-modal-overlay.active .settings-panel {
  transform: scale(1);
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.close-btn:hover {
  color: var(--text-primary);
}

.panel-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 450px;
  overflow-y: auto;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-group h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.setting-desc {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

/* Theme cards inside preference panel */
.theme-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.theme-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.theme-card:hover {
  border-color: var(--border-color-hover);
  background: rgba(255,255,255,0.02);
}

.theme-card.active {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.04);
}

.theme-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.aurora-preview { background: linear-gradient(135deg, #0d9488, #0ea5e9); }
.cosmic-preview { background: linear-gradient(135deg, #a855f7, #6366f1); }
.sunset-preview { background: linear-gradient(135deg, #f97316, #e11d48); }
.emerald-preview { background: linear-gradient(135deg, #10b981, #065f46); }

.theme-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.theme-card.active .theme-label {
  color: var(--text-primary);
}

/* Dropdown select styled */
.typography-select-wrapper select {
  width: 100%;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  padding: 0 12px;
  outline: none;
  font-size: 0.9rem;
}

/* Sound Switch styling */
.toggle-switch-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Slider switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Speed control slider styles */
.speed-control-slider input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

.speed-control-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.speed-control-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.panel-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.btn {
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  transition: filter var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.1);
}


/* -------------------------------------------------------------
   9. CSS KEYFRAME ANIMATIONS
   ------------------------------------------------------------- */
@keyframes logo-float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes cursor-blink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent-color) }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes message-slide-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loading-shimmer {
  100% { background-position: -200% 0%; }
}

@keyframes shine-text {
  to {
    background-position: 200% center;
  }
}


/* -------------------------------------------------------------
   10. MOBILE & TABLET MEDIA QUERIES (RESPONSIVENESS)
   ------------------------------------------------------------- */
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0px !important;
    padding: 0;
    border: none;
    transition: width var(--transition-normal), padding var(--transition-normal);
  }
  
  .sidebar.show-mobile {
    width: var(--sidebar-width-expanded) !important;
    padding: 16px 8px;
    border-right: 1px solid var(--border-color);
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  .greeting-text {
    font-size: 2.2rem;
  }
  
  .prompt-grid {
    grid-template-columns: 1fr;
  }
  
  .prompt-card {
    min-height: 110px;
  }
  
  .top-bar {
    padding: 0 16px;
  }
  
  .content-viewport {
    padding: 16px 16px 0 16px;
  }
  
  .bottom-input-area {
    padding: 0 16px 16px 16px;
  }
  
  .prompt-input-box {
    border-radius: var(--border-radius-lg);
    padding: 6px 10px 6px 12px;
  }
  
  .custom-dropdown {
    display: none; /* Hide custom dropdown on tiny screens for layout spacing */
  }
  
  .theme-options-grid {
    grid-template-columns: 1fr;
  }
}

/* Research Mode styling */
.research-toggle-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.research-toggle-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.research-toggle-pill.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
  animation: pulse-border 2.5s infinite alternate;
}

.research-toggle-pill .pill-icon {
  width: 14px;
  height: 14px;
}

.research-toggle-pill.active .pill-icon {
  color: var(--accent-color);
  animation: spin-slow 8s linear infinite;
}

/* Glowing container state */
.prompt-input-box.research-active {
  border-color: var(--accent-color);
  box-shadow: 0 0 25px var(--glow-color);
  background: rgba(15, 23, 42, 0.6);
}

/* Trace container styles */
.research-trace-container {
  margin-top: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.research-trace-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.research-trace-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.research-trace-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.node-content::-webkit-scrollbar {
  width: 4px;
}
.node-content::-webkit-scrollbar-track {
  background: transparent;
}
.node-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.node-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 6px var(--glow-color); }
  100% { box-shadow: 0 0 15px var(--glow-color); }
}

/* ==========================================================================
   AMOE Real-Time Telemetry HUD & Interactive Matrix Inspector
   ========================================================================== */

.telemetry-hud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  color: var(--text-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.telemetry-hud:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--glow-color);
}

.telemetry-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.telemetry-label {
  font-weight: 500;
  color: var(--text-primary);
}

.telemetry-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.7rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Interactive Matrix Visualizer */
.matrix-interactive-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.matrix-interactive-cell:hover {
  transform: scale(1.35);
  z-index: 10;
  filter: brightness(1.3);
}

.streaming-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent-color);
  vertical-align: middle;
  margin-left: 3px;
  animation: cursor-blink 0.8s infinite;
  border-radius: 1px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Cognitive Dropdown Trigger */
.cognitive-trigger {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cognitive-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.cognitive-menu {
  right: 0;
  min-width: 260px;
}

/* Matrix Knowledge Catalog Grid */
.matrix-catalog-panel {
  max-width: 780px !important;
}

.matrix-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.matrix-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition-fast);
}

.matrix-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.matrix-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.matrix-card-meta {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-family: monospace;
}

.matrix-card-snippet {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.matrix-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.matrix-link-pill {
  font-size: 0.65rem;
  padding: 1px 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 8px;
  color: var(--accent-color);
}

/* Rich Markdown Content Styles */
.md-rendered-content {
  line-height: 1.65;
  color: var(--text-primary);
}

.md-h1, .md-h2, .md-h3, .md-h4 {
  color: var(--text-primary);
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.md-h1 { font-size: 1.45rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.4rem; }
.md-h2 { font-size: 1.25rem; }
.md-h3 { font-size: 1.1rem; color: var(--accent-color); }
.md-h4 { font-size: 0.95rem; }

.md-p {
  margin-bottom: 0.85rem;
}

.inline-code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.86em;
  font-family: var(--font-monospace, monospace);
}

.md-list {
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
}

.md-bullet, .md-num-item {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.num-prefix {
  font-weight: 700;
  color: var(--accent-color);
}

.md-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.4rem 0;
  opacity: 0.6;
}

/* =============================================================
   8. AGENT SKILLS & MICRO-ENGINES SYSTEM
   ============================================================= */

/* Header Quick Access Pill */
.skills-quick-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.skills-quick-pill:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}

.skills-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-ring 2s infinite ease-out;
}

.skills-pill-icon {
  font-size: 0.9rem;
}

/* Skills Hub Modal Panel */
.skills-hub-panel {
  max-width: 820px !important;
  width: 92% !important;
  max-height: 85vh !important;
  display: flex;
  flex-direction: column;
}

.skills-filter-bar {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.skills-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-cat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.skill-cat-pill.active {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.skills-search-wrap input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 14px;
  width: 180px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.skills-search-wrap input:focus {
  border-color: var(--accent-color);
}

/* Skills Cards Grid */
.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  padding: 18px 24px;
  overflow-y: auto;
  max-height: 52vh;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.skill-card:hover {
  border-color: var(--border-color-hover);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.skill-card.active-skill {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.06);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.skill-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.skill-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.skill-card-cat {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.skill-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  flex-grow: 1;
}

.skill-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  margin-top: auto;
}

.skill-status-text {
  font-size: 0.72rem;
  font-weight: 600;
}

.skill-status-text.enabled {
  color: #10b981;
}

.skill-status-text.disabled {
  color: var(--text-tertiary);
}

/* Custom Skill Creator Form */
.create-skill-panel {
  max-width: 540px !important;
}

.form-row-2col {
  display: flex;
  gap: 12px;
}

.form-group {
  margin-bottom: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-color);
}

.skill-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0.7;
}

.skill-delete-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.15);
}



