textarea#prompt {
  flex: 1;
  min-height: 100px;
  max-height: 250px;
  padding: 16px 85px 72px 18px;
  resize: none;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  outline: none;
  background: var(--glass);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
  transition: all 0.3s ease;
}

textarea#prompt:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow);
}

textarea#prompt::placeholder { color: var(--text-secondary); }

.send-button {
  position: absolute;
  right: 11px;
  bottom: 11px;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px var(--accent-glow);
  transition: all 0.3s;
  overflow: hidden;
}

.send-button .stop-icon { display: none; }
.send-button.sending { animation: pulse 1.5s infinite; }
.send-button.sending .fly-icon { display: none; }
.send-button.sending .stop-icon { display: block; }

@keyframes pulse {
  0% { box-shadow: 0 8px 25px var(--accent-glow); transform: scale(1); }
  50% { box-shadow: 0 12px 40px rgba(106,167,255,0.6); transform: scale(1.05); }
  100% { box-shadow: 0 8px 25px var(--accent-glow); transform: scale(1); }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .chat-container { padding: 16px 12px 140px; }
  .input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-top: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
  }
  textarea#prompt { min-height: 48px; padding: 14px 54px 64px 16px; }
  .send-button { height: 40px; width: 40px; right: 6px; bottom: 6px; }
  .primary-btn { padding: 10px 14px; }
  .sidebar { width: 280px; }
}

.think-mode-wrapper {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}
.think-mode-wrapper select#thinkMode {
  font: inherit;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}
.think-mode-wrapper select#thinkMode:focus {
  box-shadow: 0 0 0 3px var(--ring);
  border-color: var(--accent);
}
/* Screenreader-only Label */
.think-mode-wrapper .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,1px,1px);
  white-space: nowrap; border: 0;
}

.input-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 12px 60px 12px;
}

.prompt {
  flex: 1;
  resize: none;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 8px 0;
  padding-right: 120px; /* Platz f���r Controls */
  outline: none;
  font-size: 15px;
  line-height: 1.5;
  max-height: 160px;
  overflow: hidden;
}

.controls {
  position: absolute;
  bottom: 16px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


#thinkMode {
  font: inherit;
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  outline: none;
  position: relative;
  bottom: 13px;   /* nach oben */
  left: 13px;     /* nach rechts */
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  #thinkMode {
    bottom: 4px;
    left: 4px;
  }
}

#thinkMode:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow);
}

#thinkMode:hover {
  filter: brightness(1.05);
  cursor: pointer;
}

.light select#thinkMode {
  background: var(--card);
  color: var(--text);
}

select#thinkMode {
  transition: background 0.3s ease, color 0.3s ease;
}

/* Dropdown-Panel (aufgeklappt) */
/* Dropdown-Panel (aufgeklappt) */
select#thinkMode option {
  background: var(--bg-accent); /* statt schwarz */
  color: var(--text);
  border: none;
}

/* Optional: Hover-Effekt */
select#thinkMode option:hover {
  background: var(--accent-glow);
  color: var(--text);
}





#sendBtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-left: auto;
}

#sendBtn:hover {
  filter: brightness(1.05);
}

/* simple arrow icon if you don't have one */
.icon-arrow-up {
  display: inline-block;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--text);
  transform: translateY(-1px);
}

.input-area {
  background: rgba(0, 255, 0, 0.1); /* grün-transparent */
}
.input-wrapper {
  background: rgba(255, 0, 0, 0.1); /* rot-transparent */
}
.main {
  background: rgba(0, 0, 255, 0.1); /* blau-transparent */
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  margin-left: 12px; /* oder z. B. 24px */
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 4px 0 0;
  padding: 16px 0;
  display: none;
  z-index: 100;
}

.dropdown-menu li {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu li:hover {
  background: var(--accent-glow);
}

.dropdown-menu.open-up {
  bottom: 100%;
  top: auto;
}

.dropdown-menu.show {
  display: block;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text);
}

.icon svg {
  transition: transform 0.2s ease;
}

.dropdown-menu li:hover .icon svg {
  transform: scale(1.1);
}

.icon, .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text);
}

.arrow svg {
  width: 16px;
  height: 16px;
  transform: translateY(1px);
}


