/* =============================
   RETRO MINIMAL 80085 UPDATED
   ============================= */

/* Reset top-level app container margins and padding */
.app.svelte-1170pvd.svelte-1170pvd {
  margin: 0 !important;
  padding: 0 !important;
}

/* Main 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;
  color: #39ff14 !important;
  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: 1px !important; /* updated per request */
  margin: 1px 0 !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;
}

/* 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;
}

/* Gap container */
.gap.svelte-vt1mxs {
  gap: 0 !important; /* no gaps for hyper compact */
}

/* Padding override for padded blocks */
.padded.svelte-11xb1hd {
  padding: 1px !important; /* ultra minimal padding */
}

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

  max-height: 50vh !important;
  scrollbar-width: auto !important;
  scrollbar-color: #39ff14 #000 !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;
  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;
}
textarea.scroll-hide.svelte-173056l:focus {
  border-color: #6eff44 !important;
}

/* Add Webkit scrollbar for textarea to cover that case */
textarea.scroll-hide.svelte-173056l::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
}
textarea.scroll-hide.svelte-173056l::-webkit-scrollbar-track {
  background: #000 !important;
  border-radius: 0 !important;
}
textarea.scroll-hide.svelte-173056l::-webkit-scrollbar-thumb {
  background-color: #39ff14 !important;
  border: none !important;
  border-radius: 0 !important;
}
textarea.scroll-hide.svelte-173056l::-webkit-scrollbar-thumb:hover {
  background-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;
  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;
  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;
}

/* Remove all transitions */
#col_container,
#component-7,
#component-9,
textarea.scroll-hide.svelte-173056l,
.message-row.bubble.user-row,
.message-row.bubble.bot-row {
  transition: none !important;
}