:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(18, 26, 43, 0.7);
  --bg-card-hover: rgba(25, 36, 60, 0.8);
  --nvidia-green: #76b900;
  --nvidia-green-glow: rgba(118, 185, 0, 0.4);
  --nvidia-green-light: #9bf300;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(118, 185, 0, 0.5);
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --radius: 12px;
  --shadow-glow: 0 0 25px rgba(118, 185, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100vw;
}

/* Background Animations */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
}

.glow-orb {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}

.orb-1 {
  top: -100px;
  left: -100px;
  background: var(--nvidia-green);
}

.orb-2 {
  bottom: -150px;
  right: -150px;
  background: #0284c7;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 16px;
}

.glass-card:hover {
  border-color: rgba(118, 185, 0, 0.3);
}

/* Navigation Navbar */
.navbar {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nvidia-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--nvidia-green), #388e3c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 0 15px var(--nvidia-green-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.highlight {
  color: var(--nvidia-green);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Model Selector */
.model-select-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 10px;
}

.select-icon {
  color: var(--nvidia-green);
  font-size: 14px;
}

.model-dropdown {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  max-width: 320px;
}

.model-dropdown option {
  background: #121a2b;
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.key-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(118, 185, 0, 0.1);
  border: 1px solid var(--nvidia-green);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nvidia-green-light);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--nvidia-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--nvidia-green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(118, 185, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(118, 185, 0, 0); }
}

/* Layout */
.main-container {
  display: flex;
  height: calc(100vh - 64px);
  width: 100vw;
  overflow: hidden;
}

.sidebar {
  width: 290px;
  min-width: 290px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--border-glass);
  overflow-y: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(11, 15, 25, 0.65);
}

.sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.workspace {
  flex: 1;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  min-width: 0;
  height: calc(100vh - 64px);
  width: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.badge-live {
  background: var(--nvidia-green);
  color: #000;
}

/* Voice Control Studio */
.voice-card {
  padding: 16px;
  text-align: center;
}

.voice-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.mic-button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.2), rgba(0, 0, 0, 0.4));
  border: 2px solid var(--nvidia-green);
  color: var(--nvidia-green-light);
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(118, 185, 0, 0.2);
}

.mic-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--nvidia-green-glow);
}

.mic-button.listening {
  background: var(--nvidia-green);
  color: #000;
  animation: micPulse 1.2s infinite alternate;
}

@keyframes micPulse {
  0% { box-shadow: 0 0 15px var(--nvidia-green); }
  100% { box-shadow: 0 0 40px var(--nvidia-green-light); }
}

.voice-status {
  display: flex;
  flex-direction: column;
}

.voice-label {
  font-size: 14px;
  font-weight: 700;
}

.voice-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.waveform-container {
  width: 100%;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0;
}

.voice-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.column-setting {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass);
}

.menu-item.active {
  background: rgba(118, 185, 0, 0.12);
  border-color: var(--border-active);
  color: var(--nvidia-green-light);
  font-weight: 600;
}

.menu-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Info Card */
.info-card {
  padding: 14px;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-green {
  color: var(--nvidia-green);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--nvidia-green), #5a8e00);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(118, 185, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--nvidia-green-light), var(--nvidia-green));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(118, 185, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.highlight-btn:hover {
  border-color: var(--nvidia-green);
  color: var(--nvidia-green-light);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

.full-width {
  width: 100%;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
}

/* Tab Views - Full Expansive Screen Layout */
.tab-view {
  display: none;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  gap: 16px;
}

.tab-view.active {
  display: flex;
  height: 100%;
}

#tab-reasoning {
  height: 100%;
  min-height: 0;
  display: none;
  flex-direction: column;
  flex: 1;
}

#tab-reasoning.active {
  display: flex;
  height: 100%;
}

#tab-swarm {
  height: 100%;
  min-height: 0;
  display: none;
  flex-direction: column;
  flex: 1;
}

#tab-swarm.active {
  display: flex;
  height: 100%;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.view-title h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.view-title p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.view-actions {
  display: flex;
  gap: 8px;
}

/* Chat & Workspace Stream - Expands Full Available Viewport */
.chat-container {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
  width: 100%;
  height: 100%;
}

.welcome-banner {
  text-align: center;
  margin: auto;
  max-width: 850px;
  padding: 20px;
}
  padding: 20px;
}

.welcome-icon {
  font-size: 48px;
  color: var(--nvidia-green);
  margin-bottom: 12px;
}

.welcome-banner h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.welcome-banner p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(118, 185, 0, 0.15);
  border-color: var(--nvidia-green);
  color: #fff;
  transform: translateY(-2px);
}

/* Chat Messages */
.chat-msg {
  display: flex;
  gap: 14px;
  max-width: 90%;
}

.chat-msg.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.chat-msg.assistant .msg-avatar {
  background: var(--nvidia-green);
  color: #000;
}

/* Select & Dropdown Selectors - High Contrast Typography */
select,
.select-full,
#voiceSelect,
#modelSelect,
#cosmosRes,
#cosmosFps,
#cosmosWorkflow,
#nemoSetupMode,
#avatarPersonaSelect,
#visemeModeSelect {
  background-color: #121619 !important;
  color: #76b900 !important;
  border: 1px solid rgba(118, 185, 0, 0.4) !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  outline: none;
}

option {
  background-color: #ffffff !important;
  color: #000000 !important;
  padding: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

/* AI Mission Control & Terminal Styles */
.terminal-console {
  background: #090c0e !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  font-family: 'Fira Code', monospace !important;
  font-size: 12px !important;
  color: var(--nvidia-green-light) !important;
  height: 240px !important;
  overflow-y: auto !important;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.terminal-line {
  margin-bottom: 5px;
  line-height: 1.4;
  word-break: break-word;
}
.terminal-line .term-time { color: var(--text-muted); font-size: 11px; margin-right: 8px; }
.terminal-line .term-cmd { color: #58a6ff; font-weight: 600; }
.terminal-line .term-success { color: #3fb950; font-weight: 600; }
.terminal-line .term-warn { color: #d29922; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-size: 12.5px;
}

.activity-item i { margin-top: 3px; font-size: 15px; }
.activity-item .act-title { font-weight: 700; color: #fff; }
.activity-item .act-desc { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

.msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.chat-msg.user .msg-bubble {
  background: rgba(118, 185, 0, 0.15);
  border-color: rgba(118, 185, 0, 0.3);
}

.msg-tools {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-text:hover {
  color: var(--nvidia-green-light);
}

/* Thought Panel */
.thought-panel {
  padding: 14px;
  margin-bottom: 12px;
  max-height: 180px;
  overflow-y: auto;
  border-color: rgba(168, 85, 247, 0.3);
}

.thought-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.thought-text {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: #c084fc;
  white-space: pre-wrap;
}

/* Input Dock */
.input-dock {
  padding: 12px 16px;
  width: 100%;
}

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.input-wrapper textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  max-height: 120px;
  line-height: 1.5;
}

.dock-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-mic-btn.text-green {
  color: var(--nvidia-green-light);
  box-shadow: 0 0 10px var(--nvidia-green);
}

/* ==========================================================================
   OMNIMODAL HOLOGRAPHIC AI AVATAR & REAL-TIME LIP-SYNC STYLES
   ========================================================================== */

.avatar-hologram-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(118, 185, 0, 0.4);
  pointer-events: none;
}

.ring-1 {
  width: 230px;
  height: 230px;
  animation: rotateRing 20s linear infinite;
}

.ring-2 {
  width: 250px;
  height: 250px;
  border: 1px dotted rgba(56, 189, 248, 0.4);
  animation: rotateRingRev 25s linear infinite;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateRingRev {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

#cyberAvatarSvg {
  filter: drop-shadow(0 0 15px rgba(118, 185, 0, 0.3));
  transition: transform 0.2s ease;
}

.avatar-pupil {
  animation: pupilGlow 2s infinite alternate;
}

@keyframes pupilGlow {
  0% { fill: #76b900; filter: drop-shadow(0 0 2px #76b900); }
  100% { fill: #9bf300; filter: drop-shadow(0 0 8px #9bf300); }
}

/* Audio Visualizer Bars */
.voice-bar-1, .voice-bar-2, .voice-bar-3, .voice-bar-4 {
  transform-origin: bottom;
  transition: transform 0.1s ease;
}

.avatar-speaking .voice-bar-1 { animation: voiceBounce 0.4s infinite alternate; }
.avatar-speaking .voice-bar-2 { animation: voiceBounce 0.3s infinite alternate 0.1s; }
.avatar-speaking .voice-bar-3 { animation: voiceBounce 0.5s infinite alternate 0.15s; }
.avatar-speaking .voice-bar-4 { animation: voiceBounce 0.35s infinite alternate 0.05s; }

@keyframes voiceBounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.6); }
}

/* MoT Experts Grid */
.mot-experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  width: 100%;
}

.expert-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  padding: 14px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.expert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.expert-weight {
  font-family: 'Fira Code', monospace;
  color: var(--nvidia-green-light);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nvidia-green), #9de81a);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.margin-top-card {
  margin-top: 14px;
}

.margin-bottom-card {
  margin-bottom: 14px;
}

.hidden {
  display: none !important;
}

.mot-analysis-text {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px 16px;
  color: #f1f5f9;
  font-size: 12.5px;
  line-height: 1.6;
}

.webui-frame-container {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 50;
}

.webui-frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
