/* ===== Responsive Design ===== */

/* Tablet & Mobile */
@media (max-width: 768px) {

  html,
  body {
    height: 100%;
  }

  .app {
    height: 100%;
  }

  .main {
    margin-left: 0;
    height: 100%;
  }

  .sidebar {
    width: 220px;
    padding: 12px 12px 100px 12px;
    height: 100%;
  }

  .chat-messages {
    padding: 12px;
  }

  .chat-header {
    padding: 12px 16px;
    flex-shrink: 0;
  }

  .chat-input-area {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
  }

  .chat-input-wrapper {
    flex-direction: column;
  }

  .input-with-button {
    width: 100%;
  }

  .input-with-button textarea {
    height: auto;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 50px 10px 10px;
    font-size: 14px;
  }

  .input-with-button button {
    width: 36px;
    height: 36px;
  }

  .input-with-button button svg {
    width: 14px;
    height: 14px;
  }

  .message {
    max-width: 100%;
  }

  .message .bubble {
    font-size: 13px;
    padding: 8px 12px;
    width: 100%;
  }

  .message-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .message-actions button {
    font-size: 14px;
    padding: 4px 6px;
  }

  .stop-indicator {
    font-size: 11px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  body {
    -webkit-text-size-adjust: none;
  }

  html,
  body,
  .app,
  .main {
    height: 100%;
  }

  .input-with-button textarea {
    height: auto;
    min-height: 40px;
    font-size: 14px;
    padding: 10px 50px 10px 10px;
  }

  .input-with-button button {
    width: 36px;
    height: 36px;
  }

  .input-with-button button svg {
    width: 14px;
    height: 14px;
  }

  .message .bubble {
    font-size: 13px;
    line-height: 1.5;
  }

  .chat-header {
    padding: 10px 12px;
    flex-shrink: 0;
  }

  .chat-header h2 {
    font-size: 16px;
  }

  .chat-messages {
    padding: 10px 12px;
  }

  .chat-input-area {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .theme-menu {
    min-width: 100px;
  }

  .theme-option {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}
