.send-button-new.ai-thinking {
  opacity: .7;
  cursor: not-allowed;
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
}

.send-button-new.ai-thinking:before {
  display: none !important;
}

.send-button-new.ai-thinking:hover {
  box-shadow: none !important;
  transform: none !important;
}

.send-button-new.stop-mode {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
}

.send-button-new.stop-mode:hover {
  color: #fff !important;
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

/* ===== ENSURE BUTTONS ARE ALWAYS VISIBLE ON ALL DEVICES ===== */
.input-actions-bottom.mobile-actions-row {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-actions-row .input-action-btn,
.mobile-actions-row .send-button-new,
.mobile-actions-row #thinking-toggle-btn,
.mobile-actions-row #mic-btn,
.mobile-actions-row #send-button {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  min-width: 32px !important;
  min-height: 32px !important;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  .input-area {
    padding: 0.5rem 0.75rem;
  }

  .input-container {
    width: 100%;
    max-width: 100%;
  }

  /* Input wrapper als Flex-Container mit Buttons innen */
  .input-wrapper-flex,
  body.empty-chat .input-wrapper-flex {
    display: flex !important;
    align-items: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 50px;
    border-radius: 22px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .input-wrapper-flex .message-input,
  body.empty-chat .input-wrapper-flex .message-input {
    flex: 1 !important;
    min-width: 0 !important;
    min-height: 50px;
    max-height: 150px;
    padding: 14px 16px !important;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
  }

  /* Buttons Container - INNERHALB input-wrapper-flex */
  .input-actions-bottom.mobile-actions-row,
  body.empty-chat .input-actions-bottom.mobile-actions-row {
    display: flex !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    gap: 6px;
    padding: 8px 10px 8px 6px;
  }

  .mobile-actions-row .input-action-btn,
  .mobile-actions-row .send-button-new {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .mobile-actions-row .input-action-btn {
    color: var(--text-secondary);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
  }

  .mobile-actions-row .input-action-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .mobile-actions-row .send-button-new {
    background: var(--accent);
    color: var(--bg-primary);
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }

  .mobile-actions-row .send-button-new:disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: not-allowed;
    opacity: 0.6;
  }

  .mobile-actions-row .send-button-new.stop-mode {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
  }

  .mobile-actions-row .send-button-new.stop-mode:hover {
    color: #fff;
    background: #ef4444;
    border-color: #ef4444;
  }

  .mobile-actions-row .input-action-btn svg,
  .mobile-actions-row .send-button-new svg {
    width: 16px;
    height: 16px;
  }

  .mobile-actions-row #thinking-toggle-btn i {
    font-size: 16px;
  }

  .message-input.ai-thinking {
    pointer-events: none;
  }

  .mobile-actions-row .send-button-new.ai-thinking {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--accent) !important;
    transform: none !important;
  }
}

/* ===== KLEINE HANDYS ===== */
@media (max-width: 480px) {
  .input-area {
    padding: 0.4rem 0.5rem;
  }

  .input-wrapper-flex {
    border-radius: 20px;
  }

  .input-wrapper-flex .message-input {
    min-height: 46px;
    max-height: 120px;
    padding: 12px 14px !important;
    font-size: 14px;
  }

  .input-actions-bottom.mobile-actions-row {
    gap: 5px;
    padding: 7px 8px 7px 5px;
  }

  .mobile-actions-row .input-action-btn,
  .mobile-actions-row .send-button-new {
    width: 32px !important;
    height: 32px !important;
  }

  .mobile-actions-row .input-action-btn svg,
  .mobile-actions-row .send-button-new svg {
    width: 14px;
    height: 14px;
  }

  .mobile-actions-row #thinking-toggle-btn i {
    font-size: 14px;
  }
}

/* ===== LIGHT MODE ===== */
:root[data-theme="light"] .mobile-actions-row .input-action-btn {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .mobile-actions-row .input-action-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}
