* {
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #0b0f1a, #05070d);
  color: #e6e9f0;
  height: 100vh;
  overflow: hidden;
}

.app {
  max-width: 900px;
  margin: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================= */
/* HEADER                        */
/* ============================= */
.header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-size: 24px;
  font-weight: 600;
}

.logo span {
  color: #5ee7ff;
}

.subtitle {
  font-size: 12px;
  opacity: 0.6;
}

/* ============================= */
/* CHAT CONTAINER                */
/* ============================= */
#chat {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 160px;
  scroll-behavior: smooth;
}

/* ============================= */
/* MENSAGENS                     */
/* ============================= */
.message {
  max-width: 75%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  line-height: 1.5;
}

.user {
  margin-left: auto;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.bot {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ============================= */
/* INPUT                         */
/* ============================= */
.input-area {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  display: flex;
  gap: 10px;
  padding: 16px;
  background: rgba(5,7,13,0.95);
  border-top: 1px solid rgba(255,255,255,0.05);
  z-index: 10;
}

textarea {
  flex: 1;
  resize: none;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

button {
  width: 52px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
}

/* ============================= */
/* TABELA                        */
/* ============================= */
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.result-table th,
.result-table td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 8px;
}

/* ============================= */
/* BOTÃO SCROLL                  */
/* ============================= */
.scroll-to-bottom {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #5ee7ff;
  color: #000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 9999;
}

/* ============================= */
/* SCROLL HORIZONTAL PARA TABELA */
/* ============================= */
.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}

.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================= */
/* MODO                          */
/* ============================= */
.mode-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.mode-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  font-size: 17px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.mode-btn:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}

.mode-btn.active {
  color: #ffffff;
  border-color: #5aa9ff;
  background: transparent;
  box-shadow: 0 0 10px rgba(90,169,255,0.45);
}

.mode-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(90,169,255,0.4);
}

/* ============================= */
/* SUGESTÕES (NOVO LAYOUT)       */
/* ============================= */
.suggestion-box {
  margin-top: 12px;
  display: flex;
  flex-direction: column;   /* 🔥 uma abaixo da outra */
  gap: 10px;
}

.suggestion-btn {
  width: 100%;
  text-align: left;

  padding: 10px 14px;
  border-radius: 12px;

  background: rgba(94, 231, 255, 0.08);
  border: 1px solid rgba(94, 231, 255, 0.25);

  color: #e6faff;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-btn:hover {
  background: rgba(94, 231, 255, 0.18);
  border-color: rgba(94, 231, 255, 0.6);
  transform: translateX(4px);
}
