/* 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: #101820 !important; /* Darker charcoal blue */
  color: #d7e6f0 !important; /* Soft light blue */
  font-family: 'IBM Plex Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  box-sizing: border-box !important;
}

/* Header bar */
#component-7 {
  display: flex !important;
  order: 1 !important;
  flex: 0 0 52px !important;  /* slightly taller */
  justify-content: center !important;
  align-items: center !important;
  background-color: #16243e !important; /* Deep navy blue */
  border-bottom: 1.5px solid #2c3a57 !important; /* soft blue border */
  padding: 0 14px !important;
  user-select: none !important;
  z-index: 10 !important;
  font-weight: 700 !important;
  color: #8cc0ff !important; /* bright sky blue */
  letter-spacing: 0.06em !important;
}

/* Run button */
#component-9 {
  display: inline-flex !important;
  background-color: #2a9d8f !important; /* teal */
  border-radius: 10px !important;
  color: #f0f6f8 !important; /* almost white */
  padding: 8px 28px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  user-select: none !important;
  border: none !important;
  box-shadow: 0 3px 10px #1e7a75aa !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}
#component-9:hover:enabled {
  background-color: #34b3a0 !important; /* lighter teal */
  box-shadow: 0 5px 14px #2ba394cc !important;
}

/* Form ordering */
.form.svelte-633qhp {
  order: 2 !important;
}

/* Textarea */
textarea.scroll-hide.svelte-173056l {
  max-height: 55vh !important;
  background-color: #0f1923 !important; /* dark blue black */
  border: 1.8px solid #2a9d8f !important; /* matching teal border */
  border-radius: 10px !important;
  color: #c9dbe9 !important;
  font-family: 'Consolas', monospace !important;
  font-size: 1.15rem !important;
  padding: 10px 16px !important;
  resize: vertical !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  outline: none !important;
  white-space: normal !important;
  transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out !important;
  scrollbar-width: auto !important;
}
textarea.scroll-hide.svelte-173056l:focus {
  box-shadow: 0 0 12px #2a9d8faa !important;
  border-color: #34b3a0 !important;
}

/* Component fillable */
.fillable.svelte-1170pvd.svelte-1170pvd:not(.fill_width) {
  max-width: fit-content !important;
}

/* App container */
.app.svelte-1170pvd.svelte-1170pvd {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* Chat container */
#chatbot {
  display: flex !important;
  order: 3 !important;
  flex: 1 1 auto !important;
  flex-direction: column-reverse !important;
  overflow-y: auto !important;
  padding: 16px !important;
  background-color: #101820 !important;
  color: #d0ddea !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* User message bubble */
.message-row.bubble.user-row {
  background-color: rgba(42, 157, 143, 0.25) !important; /* translucent teal */
  color: #a6d2ce !important;
  align-self: flex-start !important;
  border-radius: 14px !important;
  margin: 6px 0 !important;
  padding: 10px 18px !important;
  max-width: 78vw !important;
  word-wrap: break-word !important;
  box-sizing: border-box !important;
  font-size: 1.1rem !important;
  line-height: 1.5 !important;
  user-select: text !important;
}

/* Bot message bubble */
.message-row.bubble.bot-row {
  background-color: rgba(22, 36, 53, 0.92) !important; /* dark navy */
  color: #c0d3e5 !important;
  align-self: flex-end !important;
  border-radius: 14px !important;
  margin: 6px 0 !important;
  padding: 10px 18px !important;
  max-width: 78vw !important;
  word-wrap: break-word !important;
  box-sizing: border-box !important;
  font-size: 1.1rem !important;
  line-height: 1.5 !important;
  user-select: text !important;
}

/* Scrollbar styles */
#chatbot::-webkit-scrollbar {
  width: 9px !important;
}
#chatbot::-webkit-scrollbar-track {
  background: #1c1f26 !important;
  border-radius: 9px !important;
}
#chatbot::-webkit-scrollbar-thumb {
  background-color: #2a9d8f !important;
  border-radius: 9px !important;
  border: 2.5px solid #1c1f26 !important;
}
#chatbot::-webkit-scrollbar-thumb:hover {
  background-color: #34b3a0 !important;
}
#chatbot {
  scrollbar-width: thin !important;
  scrollbar-color: #2a9d8f #101820 !important;
}

/* Remove focus outlines globally — consider adding accessible outlines separately */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}