/* Import Google Font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  /* Dark theme colors */
  --text-color: #edf3ff;
  --subheading-color: #97a7ca;
  --placeholder-color: #c3cdde;
  --primary-color: #101623;
  --secondary-color: #283045;
  --secondary-hover-color: #333e58;
  --scrollbar-color: #626a7f;
}

body.light-theme {
  /* Light theme colors */
  --text-color: #090c13;
  --subheading-color: #7b8cae;
  --placeholder-color: #606982;
  --primary-color: #f3f7ff;
  --secondary-color: #dce6f9;
  --secondary-hover-color: #d2ddf2;
  --scrollbar-color: #a2aac2;
}

body {
  color: var(--text-color);
  background: var(--primary-color);
}

.logo img {
    height: 50px;
}

.cabeca {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

/*===== Ivones soviais =====*/
.social-container {
  gap: 30px;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.social-icon {
  color: white;
  font-size: 20px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Individual glowing effects */
.facebook:hover {
  color: #3b5998;
  text-shadow: 0 0 10px #3b5998, 0 0 20px blue, 0 0 30px mediumblue;
}

.instagram:hover {
  color: #e4405f;
  text-shadow: 0 0 10px #e4405f, 0 0 20px #e4405f, 0 0 30px #e4405f;
}

.snapchat:hover {
  color: #fffc00;
  text-shadow: 0 0 10px #fffc00, 0 0 20px #fffc00, 0 0 30px #fffc00;
}

.tiktok:hover {
  color: #69c9d0;
  text-shadow: 0 0 10px #69c9d0, 0 0 20px #69c9d0, 0 0 30px #69c9d0;
}

.whatsapp {
  color: #25d366;
  transition: all 0.5s ease;
}

.whatsapp:hover {
  color: #25d366;
  text-shadow: 0 0 15px #25d366, 0 0 30px #25d366, 0 0 45px #25d366;
  transform: scale(1.3);
}

.container {
  overflow-y: auto;
  padding: 32px 0 60px;
  height: calc(100vh - 127px);
  scrollbar-color: var(--scrollbar-color) transparent;
}

.container :where(.app-header, .suggestions, .message, .prompt-wrapper) {
  position: relative;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  max-width: 990px;
}

.container .app-header {
  margin-top: 3vh;
}

.app-header .heading {
  width: fit-content;
  font-size: 3rem;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-header .sub-heading {
  font-size: 2.6rem;
  margin-top: -5px;
  color: var(--subheading-color);
}

.container .suggestions {
  width: 100%;
  list-style: none;
  display: flex;
  gap: 15px;
  margin-top: 9.5vh;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

body.chats-active .container :where(.app-header, .suggestions) {
  display: none;
}

.suggestions .suggestions-item {
  cursor: pointer;
  padding: 18px;
  width: 228px;
  flex-shrink: 0;
  display: flex;
  scroll-snap-align: center;
  flex-direction: column;
  align-items: flex-end;
  border-radius: 12px;
  justify-content: space-between;
  background: var(--secondary-color);
  transition: 0.3s ease;
}

.suggestions .suggestions-item:hover {
  background: var(--secondary-hover-color);
}

.suggestions .suggestions-item .text {
  font-size: 1.1rem;
}

.suggestions .suggestions-item .icon {
  width: 45px;
  height: 45px;
  display: flex;
  font-size: 1.4rem;
  margin-top: 35px;
  align-self: flex-end;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  color: #1d7efd;
  background: var(--primary-color);
}

.suggestions .suggestions-item:nth-child(2) .icon {
  color: #28a745;
}

.suggestions .suggestions-item:nth-child(3) .icon {
  color: #ffc107;
}

.suggestions .suggestions-item:nth-child(4) .icon {
  color: #6f42c1;
}

.container .chats-container {
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.chats-container .message {
  display: flex;
  gap: 11px;
  align-items: center;
}

.chats-container .message .avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 7px;
  padding: 6px;
  margin-right: -7px;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  border: 1px solid var(--secondary-hover-color);
}

.chats-container .message.loading .avatar {
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.chats-container .message .message-text {
  padding: 3px 6px;
  word-wrap: break-word;
  white-space: pre-line;
}

.chats-container .bot-message {
  margin: 9px auto;
}

.chats-container .user-message {
  flex-direction: column;
  align-items: flex-end;
}

.chats-container .user-message .message-text {
  padding: 12px 16px;
  max-width: 75%;
  background: var(--secondary-color);
  border-radius: 13px 13px 3px 13px;
}

.chats-container .user-message .img-attachment {
  margin-top: -7px;
  width: 50%;
  border-radius: 13px 3px 13px 13px;
}

.chats-container .user-message .file-attachment {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px;
  margin-top: -7px;
  border-radius: 13px 3px 13px 13px;
  background: var(--secondary-color);
}

.chats-container .user-message .file-attachment span {
  color: #1d7efd;
}

.container .prompt-container {
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  padding: 16px 0;
  background: var(--primary-color);
}

.prompt-container :where(.prompt-wrapper, .prompt-form, .prompt-actions) {
  display: flex;
  gap: 12px;
  height: 56px;
  align-items: center;
}

.prompt-container .prompt-form {
  height: 100%;
  width: 100%;
  border-radius: 130px;
  background: var(--secondary-color);
}

.prompt-form .prompt-input {
  width: 100%;
  height: 100%;
  background: none;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--text-color);
  padding-left: 24px;
}


.prompt-form .prompt-input::placeholder {
  color: var(--placeholder-color);
}

.prompt-wrapper button {
  width: 56px;
  height: 100%;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.4rem;
  border: none;
  color: var(--text-color);
  background: var(--secondary-color);
  transition: 0.3s ease;
}

.prompt-wrapper :is(button:hover, #cancel-file-btn, .file-icon) {
  background: var(--secondary-hover-color);
}

.prompt-form .prompt-actions {
  gap: 5px;
  margin-right: 7px;
}

.prompt-wrapper .prompt-form :where(.file-upload-wrapper, button, img) {
  position: relative;
  height: 45px;
  width: 45px;
}

.prompt-form .prompt-actions #send-prompt-btn {
  color: #fff;
  display: none;
  background: #1d7efd;
}

.prompt-form .prompt-input:valid~.prompt-actions #send-prompt-btn {
  display: block;
}

.prompt-form #send-prompt-btn:hover {
  background: #0264e3;
}

.prompt-form .file-upload-wrapper :where(button, img) {
  display: none;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
}

.prompt-form .file-upload-wrapper.active #add-file-btn {
  display: none;
}

.prompt-form .file-upload-wrapper #add-file-btn,
.prompt-form .file-upload-wrapper.active.img-attached img,
.prompt-form .file-upload-wrapper.active.file-attached .file-icon,
.prompt-form .file-upload-wrapper.active:hover #cancel-file-btn {
  display: block;
}

.prompt-form :is(#stop-response-btn:hover, #cancel-file-btn) {
  color: #d62939;
}

.prompt-wrapper .prompt-form .file-icon {
  color: #1d7efd;
}

.prompt-form #stop-response-btn,
body.bot-responding .prompt-form .file-upload-wrapper {
  display: none;
}

body.bot-responding .prompt-form #stop-response-btn {
  display: block;
}

.prompt-container .disclaimer-text {
  font-size: 0.9rem;
  text-align: center;
  padding: 16px 20px 0;
  color: var(--placeholder-color);
}

/* Responsive media query code for small screens */
@media (max-width: 768px) {
  .container {
    padding: 20px 0 100px;
  }
  
  .app-header :is(.heading, .sub-heading) {
    font-size: 2rem;
    line-height: 1.4;
  }
  
  .app-header .sub-heading {
    font-size: 1.7rem;
  }
  
  .container .chats-container {
    gap: 15px;
  }
  
  .chats-container .bot-message {
    margin: 4px auto;
  }
  
  .prompt-container :where(.prompt-wrapper, .prompt-form, .prompt-actions) {
    gap: 8px;
    height: 53px;
  }
  
  .prompt-container button {
    width: 53px;
  }
  
  .prompt-form :is(.file-upload-wrapper, button, img) {
    height: 42px;
    width: 42px;
  }
  
  .prompt-form .prompt-input {
    padding-left: 20px;
  }
  
  .prompt-form .file-upload-wrapper.active #cancel-file-btn {
    opacity: 0;
  }
  
  .prompt-wrapper.hide-controls :where(#theme-toggle-btn, #delete-chats-btn) {
    display: none;
  }
}

.bookmart {
  background: none;
  padding: 20px;
  color: #000;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 3px;
  display: block;
}

/* Hora do usuário (alinhada à direita) */
.user-message .message-time {
  text-align: right;
  margin-right: 6px;
}

/* Hora do bot (alinhada à esquerda) */
.bot-message .message-time {
  text-align: left;
  margin-left: 7px; /* alinha com o texto, não com o avatar */
}

/* Container do bot */
.bot-content {
  display: flex;
  flex-direction: column;
}

/* ===== Message Actions ===== */
.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Mostrar ao passar o mouse (desktop) */
.bot-message:hover .message-actions {
  opacity: 1;
}

/* Sempre visível no mobile */
@media (max-width: 768px) {
  .message-actions {
    opacity: 1;
  }
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--placeholder-color);
  padding: 4px;
  transition: transform 0.2s, color 0.2s;
}

.action-btn:hover {
  transform: scale(1.15);
  color: var(--text-color);
}

/* Feedback visual */
.action-btn.like.active {
  color: #28a745;
}

.action-btn.dislike.active {
  color: #d62939;
    }

/* ===== LOGIN MODAL ===== */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-box {
  background: var(--secondary-color);
  padding: 30px 25px;
  width: 90%;
  max-width: 360px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: fadeUp 0.4s ease;
}

.input-premium {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #2d3748;
  background: #1f2937;
  color: white;
  outline: none;
  transition: 0.3s;
}

.input-premium:focus {
  border: 1px solid #8f6fff;
  box-shadow: 0 0 0 3px rgba(143,111,255,0.2);
}

.btn-premium {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  color: white;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: 0.3s;
}

.btn-premium:hover {
  transform: translateY(-2px);
}

.btn-google {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #2d3748;
  background: #1f2937;
  color: white;
  cursor: pointer;
  margin-bottom: 15px;
}
/* ===OUTROS CÓDIGOS DO LOGIN (INATIVOS) */
.login-logo {
  width: 100px;
  margin-bottom: 10px;
}

.login-box h2 {
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.login-box p {
  font-size: 0.95rem;
  color: var(--placeholder-color);
  margin-bottom: 15px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: var(--primary-color);
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1rem;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  transition: transform 0.2s ease, opacity 0.2s;
}

.login-box button:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

/* AVATAR UPLOAD */
.avatar-upload {
  position: relative;
  width: 100px;
  margin: 0 auto 20px;
}

.avatar-upload img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #8f6fff;
}

.avatar-upload button {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #8f6fff;
  border: none;
  border-radius: 50px;
  padding: 6px;
  color: white;
  cursor: pointer;
}

.switch-text {
  font-size: 14px;
  color: #aaa;
}

.switch-text span {
  color: #8f6fff;
  cursor: pointer;
  font-weight: 600;
}

.switch-text span:hover {
  text-decoration: underline;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BOTÃO SAIR (LOGOUT) ===== */
.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  border: none;
  cursor: pointer;

  font-size: 0.95rem;
  font-weight: 600;
  color: white;

  background: linear-gradient(to right, #1d7efd, #8f6fff);

  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.logout-btn span.material-symbols-rounded {
  font-size: 1.3rem;
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(214, 41, 57, 0.45);
  opacity: 0.95;
}

.logout-btn:active {
  transform: scale(0.96);
}

/* ===== SIDEBAR DIREITA ===== */
.side-menu {
  position: fixed;
  top: 30%;
  height: 50vh;
  right: -100vw;
  width: 20vw;
  justify-content: center;
  border-radius: 12px;
  margin-right: 7px;
  background: var(--secondary-color);
  box-shadow: -10px 0 30px rgba(0,0,0,0.35);
  z-index: 9998;
  align-items: center;
  border: 3px solid;
  border-color: #1d7efd;
  display: flex;
  flex-direction: column;
  padding: 15px;
  transition: right 0.35s ease;
}

.side-menu.active {
  right: 0;
}

.side-menu-header img {
  height: 50px;
  color: #000;
}

.side-menu-header h3 {
  font-size: 1.2rem;
}

.side-menu-header button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.5rem;
  color: white;
}

.sid-menu li span {
  display: none;
}

/* Lista */
.side-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: column;
  font-size: 0.7rem;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s;
}

.side-item span.material-symbols-rounded {
  font-size: 1.4rem;
  display: flex;
  color: #1d7efd;
}

.side-item:hover {
  background: var(--secondary-hover-color);
  transform: translateX(5px);
}

.side-logout span {
  display: none;
}

.side-logout span.material-symbols-rounded {
  display: flex;
}

/* Logout 100% */
.side-logout {
  padding: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  backgrotund: rgba(66, 133, 244, 0.2); /* azul Google com 40% de transparência */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9997;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
   SIDEBAR – VERSÃO PC / DESKTOP
================================ */
@media (min-width: 728px) {
  
  .side-menu li span {
    display: flex;
  }

  .side-menu {
    align-items: left;
    width: 360px;
    right: -380px;
    padding: 28px;
    border-left: 1px solid var(--secondary-hover-color);
  }

  .side-menu.active {
    right: 0;
  }

  .side-menu-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
  }

  .side-menu-list {
    margin-top: 10px;
  }

  .side-item {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  .side-item span.material-symbols-rounded {
    font-size: 1.6rem;
  }

  .side-item:hover {
    background: linear-gradient(
      to right,
      rgba(29, 126, 253, 0.15),
      transparent
    );
    transform: translateX(6px);
  }

  /* Logout estilo painel */
  .side-logout {
    height: 52px;
    border-radius: 14px;
    font-size: 1rem;
  }

  /* Overlay mais discreto no PC */
  .menu-overlay {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
  }
}
@media (min-width: 1280px) {
  .side-menu {
    right: 0;
    position: sticky;
    height: 100vh;
  }

  .menu-overlay {
    display: none;
  }
}

.hair {
  box-sadow: 0 2px 6px rgba(0,0,0,0.1);
}

.side-menu-list .side-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.side-menu-list .side-item:hover::after {
  transform: scaleX(1);
}

/* sujensk3hje*/
.side-menu-list .side-item:not(:last-child) {
  border-bottom: 1px solid rgba(29,126,253,0.2);
  margin-bottom: 8px; /* espaço entre o item e o separador */
  padding-bottom: 8px;
}

/* =======================
   LOADER DE ENTRADA
======================= */
.ai-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.ai-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-logo img {
  width: 120px;
  animation: logo-appear 1s ease forwards;
}

@keyframes logo-appear {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.loader-dots {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.loader-dots span {
  width: 12px;
  height: 12px;
  background: #5af;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ===== ASSINATURA DO LOADER (FUNDO) ===== */
.loader-signature {
  position: absolute;
  bottom: 25px; /* distância do fundo */
  left: 50%;
  transform: translateX(-50%);

  font-size: 0.85rem;
  letter-spacing: 0.6px;
  color: var(--placeholder-color);
  opacity: 0;

  animation: signature-fade 1.2s ease forwards;
  animation-delay: 1.3s;
  text-align: center;
  white-space: nowrap;
}

.loader-signature strong {
  font-weight: 600;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader-parag {
  position: absolute;
  bottom: 45px; /* distância do fundo */
  left: 50%;
  transform: translateX(-50%);

  font-size: 0.60rem;
  letter-spacing: 0.6px;
  color: var(--placeholder-color);
  opacity: 0;

  animation: signature-fade 1.2s ease forwards;
  animation-delay: 1.3s;
  text-align: center;
  white-space: nowrap;
}

@keyframes signature-fade {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 0.85;
    transform: translate(-50%, 0);
  }
}

/* ==============================
   TOP APP BAR (FIXA)
================================ */
.top-app-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.top-app-left {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.top-app-left strong {
  font-size: 14px;
}

.top-app-left span {
  font-size: 12px;
  opacity: 0.8;
}

/* Botão Upgrade */
.top-app-btn {
  display: inline-flex;              /* 🔑 chave do alinhamento */
  align-items: center;               /* centra verticalmente */
  justify-content: center;
  gap: 6px;                           /* espaço entre ícone e texto */
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;                     /* evita desalinhamento */
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

/* Ícone */
.top-app-btn .material-symbols-rounded {
  font-size: 20px;
  line-height: 1;                     /* MUITO importante */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto */
.top-app-btn .btn-text {
  white-space: nowrap;
}

/* Hover premium */
.top-app-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Empurra o site para baixo por causa da barra */
body {
  padding-top: 52px;
}

/* BLOCO DE CÓDIGO ESTILO CHATGPT */
.code-block {
  width: 100%;
  position: relative;
  background: #0f172a;
  border-radius: 12px;
  margin: 16px 0;
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.9rem;
}

.copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1d7efd;
  color: #fff;
  border: none;
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.copy-code-btn:hover {
  background: #0264e3;
  }
  
  /* APP INSTALL BAR */
.app-install-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 680px;
  background: linear-gradient(135deg, #1d7efd, #8f6fff);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  z-index: 9999;
  animation: slideUp .6s ease;
}

.app-install-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: #fff;
}

.app-icon img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.app-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-text strong {
  font-size: 1rem;
}

.app-text span {
  font-size: .85rem;
  opacity: .9;
}

.app-install-btn {
  background: #fff;
  color: #1d7efd;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.app-install-btn:hover {
  background: #f2f2f2;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ===== APP INSTALL BAR ===== */
.app-install-bar {
  position: relative;
}

/* Botão fechar */
.app-install-close {
  position: absolute;
  top: 8px;
  right: 10px;

  width: 32px;
  height: 32px;

  border: none;
  border-radius: 50%;
  cursor: pointer;

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

  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2rem;

  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.app-install-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.app-install-close:active {
  transform: scale(0.9);
  }
  
  /* REMOVER ÍCONE / AVATAR DA IA */
.bot-message .avatar {
  display: flex;
}

/* Ajustar layout da mensagem da IA */
.bot-message {
  align-items: flex-start;
}

/* Texto da IA ocupa todo o espaço */
.bot-message .message-text {
  padding-left: 0;
  max-width: 100%;
}

/* Login modal */
.google-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-btn:hover {
  opacity: 0.9;
}

/* ===== USER PANEL ===== */
.user-panel {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--secondary-color);
  box-shadow: 4px 0 30px rgba(0,0,0,0.4);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: left 0.35s ease;
}

.user-panel.open {
  left: 0;
}

.user-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--secondary-hover-color);
}

.user-panel-header h3 {
  font-size: 1.2rem;
}

.user-panel-header button {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-color);
}

.user-panel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 10px;
}

.user-panel-body label {
  font-size: 0.85rem;
  opacity: 0.7;
}

.user-panel-body input {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: var(--primary-color);
  color: var(--text-color);
}

.save-btn {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #1d7efd;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.save-btn:hover {
  background: #0264e3;
}

.user-panel-footer {
  margin-top: auto;
  padding: 16px;
}

.user-panel-footer .danger {
  width: 100%;
  background: #d62939;
  color: #fff;
  border-radius: 12px;
}

.user-panel-footer .danger:hover {
  background: #b81f2d;
}

/* Overlay */
.user-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.user-panel-overlay.show {
  opacity: 1;
  pointer-events: all;
}


/* ===== USER CHIP ===== */
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  background: var(--secondary-color);
  border-radius: 999px;
  padding: 6px 14px;
  border: 3px solid #1d7efd;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.user-chip:hover {
  background: var(--secondary-hover-color);
}

.user-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid;
  border-color: #1d7efd;
}

/* ===== UPGRADE MODAL ===== */
.upgrade-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.upgrade-modal.show {
  display: flex;
}

.upgrade-box {
  max-height: 85vh;
  overflow-y: auto;
  width: 90%;
  max-width: 420px;
  background: var(--secondary-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  animation: popUp 0.3s ease;
  position: relative;
}

@keyframes popUp {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.upgrade-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--placeholder-color);
  cursor: pointer;
}

.upgrade-header {
  text-align: center;
}

/* ÍCONE DO HEADER */
.upgrade-logo {
  width: 45px;
  height: 45px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

/* SVG interno */
.upgrade-logo svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.upgrade-header h2 {
  margin-top: 10px;
  font-size: 1.8rem;
}

.upgrade-header p {
  font-size: 0.95rem;
  color: var(--subheading-color);
  margin-top: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border: 2px solid #1d7efd;
}

.upgrade-title {
  display: flex;
  align-items: center; /* 🔥 alinha verticalmente */
  justify-content: center;
  gap: 12px;
}

.upgrade-title h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.pro-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
  background: linear-gradient(135deg, #1d7efd, #8f6fff);
  box-shadow: 0 4px 12px rgba(29, 126, 253, 0.4);
}

.upgrade-features {
  list-style: none;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.upgrade-features span {
  color: #1d7efd;
  font-size: 22px;
}

.upgrade-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: gold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s ease;
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(29,126,253,.4);
}

.upgrade-note {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--placeholder-color);
}

.email-input {
  width: 100%;
  padding: 12px;
  margin: 5px 0;
  border-radius: 8px;
  border: none;
  background: var(--secondary-color);
  color: var(--text-color);
}

.email-btn {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  color: white;
  cursor: pointer;
}

.email-btn.register {
  background: #28a745;
}

/* Esqueceu senha */
.forgot-password {
  text-align: right;
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.forgot-password span {
  color: #3b82f6;
  cursor: pointer;
  transition: 0.3s;
}

.forgot-password span:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* informação */
.toast {
  position: fixed;
  top: 30px;
  right: 50px;
  background: var(--placeholder-color);
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 18px;
  color: #4285F4;
}

.toast.success {
  border-left: 4px solid #22c55e;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.password-container {
  position: relative;
  align-items: center;
}

.password-container input {
  width: 100%;
  padding-right: 20px; /* espaço para o ícone */
}

.password-toggle {
  position: absolute;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
  color: #888;
  transition: color 0.3s;
  justify-content: center;
  align-items: center;
}

.password-toggle:hover {
  color: #3b82f6; /* cor azul moderna */
}

/* ===== USER CHIP INFO ===== */
.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.user-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

/* Pontinho verde */
.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e; /* verde moderno */
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

/* Texto pequeno */
.status-text {
  font-size: 0.7rem;
  font-weight: 500;
  color: #22c55e;
}

.login-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.login-chip i {
  font-size: 18px;
}

/*shegsnshjdndh */
.login-btn span.material-symbols-rounded {
  color: #8f6fff;
}

/* Login actualização */
/* ===== LOGIN CLOSE BUTTON ===== */
.login-box {
  position: relative;
}

.login-close {
  position: absolute;
  top: 14px;
  right: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: var(--placeholder-color);
  display: flex;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.login-close:hover {
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.login-close:active {
  transform: scale(0.9);
}

/* ===== LOGIN TERMS ===== */
.login-terms{
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--placeholder-color);
  margin-top: 10px;
  opacity: 0.8;
}

.login-terms a {
  color: #8f6fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.login-terms a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.login-terms a:hover::after {
  transform: scaleX(1);
}

/* BOTÃO FLUTUANTE */
.news-button {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #4285f4;
  color: #fff;
  padding: 12px 8px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 18px;
  z-index: 50;
}

/* Estado reduzido (modo discreto) */
.news-button.idle {
  opacity: 0.4;
  }
