/* InnovateHub Enterprise Neon Theme - Minimal without mobile overrides */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500&display=swap');

:root {
  /* Professional Neon Palette */
  --neon-teal: #00D9FF;
  --neon-blue: #0066FF;
  --neon-violet: #6366F1;
  --neon-emerald: #10B981;

  /* Refined Background Hierarchy */
  --bg-pure-black: #000000;
  --bg-charcoal: #1A1A1A;
  --bg-graphite: #2A2A2A;
  --bg-elevated: #333333;

  /* Typography Palette */
  --text-primary: #E5E5E5;
  --text-secondary: #B8B8B8;
  --text-tertiary: #8A8A8A;
  --text-accent: var(--neon-teal);

  /* Semantic Colors */
  --success: var(--neon-emerald);
  --warning: #F59E0B;
  --error: #EF4444;
  --info: var(--neon-blue);
}

/* Global Base Styles - Professional Foundation */
body {
  background: var(--bg-pure-black) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Layout Containers - Modern Structure */
#left-panel {
  background: var(--bg-charcoal) !important;
  border: 1px solid var(--bg-graphite) !important;
  border-radius: 12px !important;
}

#right-panel {
  background: var(--bg-charcoal) !important;
  border: 1px solid var(--bg-graphite) !important;
  border-radius: 12px !important;
}

/* Navigation Enhancement */
.toggle-sidebar-button {
  background: var(--bg-graphite) !important;
  border: 1px solid var(--bg-elevated) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  transition: all 0.25s ease-in-out !important;
}

.toggle-sidebar-button:hover {
  background: var(--neon-teal) !important;
  color: var(--bg-pure-black) !important;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4) !important;
}

/* Configuration Buttons - Professional Styling */
.config-button {
  background: linear-gradient(135deg, var(--bg-graphite), var(--bg-elevated)) !important;
  border: 1px solid var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border-radius: 8px !important;
  transition: all 0.25s ease-in-out !important;
  font-weight: 500 !important;
}

.config-button:hover {
  background: linear-gradient(135deg, var(--neon-teal), var(--neon-blue)) !important;
  color: var(--bg-pure-black) !important;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}

.config-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3) !important;
}

/* Chat Interface Enhancement */
.user-container .message {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 217, 255, 0.05)) !important;
  border: 1px solid rgba(0, 217, 255, 0.2) !important;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3), 0 0 30px rgba(0, 217, 255, 0.1) !important;
  animation: pulse-teal 4s ease-in-out infinite !important;
}

.agent-container .message {
  background: linear-gradient(135deg, rgba(102, 102, 255, 0.1), rgba(102, 102, 255, 0.05)) !important;
  border: 1px solid rgba(102, 102, 255, 0.2) !important;
  box-shadow: 0 0 15px rgba(102, 102, 255, 0.3), 0 0 30px rgba(102, 102, 255, 0.1) !important;
  animation: pulse-violet 4s ease-in-out infinite !important;
}

/* Error message styling */
.error-message, .message.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05)) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), 0 0 30px rgba(239, 68, 68, 0.2) !important;
  animation: pulse-error 3s ease-in-out infinite !important;
}

/* Input Enhancement */
#chat-input {
  background: var(--bg-graphite) !important;
  border: 1px solid var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border-radius: 8px !important;
}

#chat-input:focus {
  border-color: var(--neon-teal) !important;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3) !important;
  outline: none !important;
}

/* Button Enhancement */
#send-button, #microphone-button {
  background: linear-gradient(135deg, var(--neon-teal), var(--neon-blue)) !important;
  border: none !important;
  border-radius: 8px !important;
  transition: all 0.25s ease-in-out !important;
}

#send-button:hover, #microphone-button:hover {
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.5) !important;
  transform: scale(1.05) !important;
}

/* SVG Icons in Buttons - Enhanced visibility */
#send-button svg,
#microphone-button svg {
  width: 20px !important;
  height: 20px !important;
  fill: var(--bg-pure-black) !important;
  display: block !important;
}

/* Settings Button Enhancement */
#settings {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#settings svg {
  fill: currentColor !important;
  width: 18px !important;
  height: 18px !important;
}

/* Chat List Enhancement */
.chat-list-button {
  background: var(--bg-graphite) !important;
  border: 1px solid var(--bg-elevated) !important;
  border-radius: 6px !important;
  transition: all 0.25s ease-in-out !important;
}

.chat-list-button:hover {
  background: rgba(0, 217, 255, 0.1) !important;
  border-color: var(--neon-teal) !important;
}

/* Tab Enhancement */
.tab {
  background: var(--bg-graphite) !important;
  border: 1px solid var(--bg-elevated) !important;
  color: var(--text-secondary) !important;
  border-radius: 6px !important;
  transition: all 0.25s ease-in-out !important;
}

.tab.active {
  background: linear-gradient(135deg, var(--neon-teal), var(--neon-blue)) !important;
  color: var(--bg-pure-black) !important;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3) !important;
}

/* Hide the sticky banner */
.notification[data-group="theme"] {
  display: none !important;
}

/* Status Section Enhancement */
#status-section {
  background: var(--bg-graphite) !important;
  border: 1px solid var(--bg-elevated) !important;
  border-radius: 8px !important;
}

/* Modal Enhancement */
.modal-overlay {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(8px) !important;
}

.modal-container {
  background: var(--bg-charcoal) !important;
  border: 1px solid var(--bg-graphite) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.2) !important;
}

/* Animations */
@keyframes pulse-teal {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 217, 255, 0.3), 0 0 30px rgba(0, 217, 255, 0.1); }
  50% { box-shadow: 0 0 25px rgba(0, 217, 255, 0.5), 0 0 40px rgba(0, 217, 255, 0.2); }
}

@keyframes pulse-violet {
  0%, 100% { box-shadow: 0 0 15px rgba(102, 102, 255, 0.3), 0 0 30px rgba(102, 102, 255, 0.1); }
  50% { box-shadow: 0 0 25px rgba(102, 102, 255, 0.5), 0 0 40px rgba(102, 102, 255, 0.2); }
}

@keyframes pulse-error {
  0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), 0 0 30px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.6), 0 0 40px rgba(239, 68, 68, 0.3); }
}

/* Essential Mobile Fix - Only touch targets, no layout changes */
@media screen and (max-width: 768px) {
  .config-button {
    -webkit-tap-highlight-color: rgba(0, 217, 255, 0.3) !important;
    touch-action: manipulation !important;
  }

  button {
    -webkit-tap-highlight-color: rgba(0, 217, 255, 0.2) !important;
    touch-action: manipulation !important;
  }
}