/* ===================
   Retro Minimal Style
   =================== */

/* Top-level app container fix */
.app.svelte-1170pvd.svelte-1170pvd {
  margin: 0 !important;
  padding: 0 !important;
}

/* Root container */
#col_container {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  width: 100vw !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;

  background-color: #000 !important; /* pure black */
  color: #39ff14 !important; /* classic neon green */
  font-family: 'Consolas', monospace !important;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  user-select: text !important;
  box-sizing: border-box !important;
}

/* Header bar */
#component-7 {
  display: flex !important;
  order: 1 !important;
  flex: 0 0 36px !important;
  justify-content: center !important;
  align-items: center !important;

  background-color: #050505 !important;
  border-bottom: 1px solid #39ff14 !important;

  padding: 0 8px !important;
  text-transform: uppercase !important;
  color: #39ff14 !important;

  font-weight: 900 !important;
  letter-spacing: 0.15em !important;
  font-size: 1rem !important;
  user-select: none !important;

  margin: 1px 0 !important;
}

/* Run button */
#component-9 {
  display: inline-flex !important;
  background-color: #000 !important;
  border: 1.5px solid #39ff14 !important;
  border-radius: 0 !important;
  color: #39ff14 !important;

  padding: 4px 18px !important;
  font-weight: 700 !important;

  cursor: pointer !important;
  white-space: nowrap !important;
  user-select: none !important;

  font-family: 'Consolas', monospace !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;

  transition: none !important;
  box-shadow: none !important;
  margin: 1px 0 !important;
}
#component-9:hover:enabled {
  background-color: #39ff14 !important;
  color: #000 !important;
  border-color: #39ff14 !important;
}
#component-9:active:enabled {
  background-color: #275e0a !important;
  color: #000 !important;
}

/* Form container */
.form.svelte-633qhp {
  order: 2 !important;
  padding: 0 4px !important;
  margin: 1px 0 !important;
  z-index: 10;
}

/* Textarea */
textarea.scroll-hide.svelte-173056l {
  flex-grow: 1 !important;

  max-height: 50vh !important;
  scrollbar-width: auto !important;

  background-color: #000 !important;
  border: 1.5px solid #39ff14 !important;
  border-radius: 0 !important;

  color: #39ff14 !important;
  font-family: 'Consolas', monospace !important;
  font-size: 1.1rem !important;

  padding: 2px 6px !important; /* tight padding */
  resize: vertical !important;

  box-sizing: border-box !important;
  overflow-y: auto !important;

  outline: none !important;
  user-select: text !important;

  caret-color: #39ff14 !important;

  margin: 1px 0 !important;

  transition: none !important; /* no shadows or highlight */
}
textarea.scroll-hide.svelte-173056l:focus {
  border-color: #6eff44 !important;
}

/* Chat container */
#chatbot {
  display: flex !important;
  order: 3 !important;
  flex: 1 1 auto !important;

  flex-direction: column-reverse !important;

  overflow-y: auto !important;

  padding: 1px 4px !important;

  background-color: #000 !important;
  color: #39ff14 !important;

  font-family: 'Consolas', monospace !important;
  font-size: 1.13rem !important;
  font-weight: 700;

  line-height: 1.3;

  box-sizing: border-box !important;

  user-select: text !important;

  scrollbar-width: thin !important;
  scrollbar-color: #39ff14 #000 !important;

  margin: 1px 0 !important;
}

/* Message bubbles */

/* User bubble */
.message-row.bubble.user-row {
  background-color: transparent !important;
  color: #39ff14 !important;

  align-self: flex-start !important;

  border-bottom: 1.2px solid #39ff14 !important; /* thinner border */
  margin: 1px 0 !important;
  padding: 1px 4px !important;

  max-width: 78vw !important;

  word-wrap: break-word !important;
  box-sizing: border-box !important;

  font-weight: 800;

  cursor: text !important;
  user-select: text !important;

  white-space: pre-wrap;

  font-family: 'Consolas', monospace !important;
  letter-spacing: 0.025em;

  transition: none !important;
}

/* Bot bubble */
.message-row.bubble.bot-row {
  background-color: transparent !important;
  color: #6eff6a !important;

  align-self: flex-end !important;

  border-bottom: 1.2px solid #6eff6a !important; /* thin border */
  margin: 1px 0 !important;
  padding: 1px 4px !important;

  max-width: 78vw !important;

  word-wrap: break-word !important;
  box-sizing: border-box !important;

  font-weight: 700;

  cursor: text !important;
  user-select: text !important;

  white-space: pre-wrap;

  font-family: 'Consolas', monospace !important;
  letter-spacing: 0.02em;
}

/* Scrollbar */
#chatbot::-webkit-scrollbar {
  width: 3px !important;
  height: 3px !important;
}
#chatbot::-webkit-scrollbar-track {
  background: #000 !important;
  border-radius: 0 !important;
}
#chatbot::-webkit-scrollbar-thumb {
  background-color: #39ff14 !important;
  border: none !important;
  border-radius: 0 !important;
}
#chatbot::-webkit-scrollbar-thumb:hover {
  background-color: #6eff44 !important;
}

/* Text selection */
::selection {
  background: #39ff1444 !important;
  color: #000 !important;
  text-shadow: none !important;
  user-select: text !important;
}
::-moz-selection {
  background: #39ff1444 !important;
  color: #000 !important;
  text-shadow: none !important;
  user-select: text !important;
}

/* Focus outlines */
*:focus-visible {
  outline: 1.5px solid #39ff14 !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
}