/* Reset bÃ¡sico */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #212121;
  color: #ececf1;
  font-family: 'Segoe UI', sans-serif;
  padding-top: 60px;
}

/* Container principal do chat */
#chat-container {
  padding: 80px 10px 96px;
  max-width: 768px;
  margin: 0 auto;
  scroll-behavior: smooth;
  position: relative;
  
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;

  z-index: 1;
}

/* ===== MENSAGENS ===== */
.msg-block {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.user-msg .msg {
  background-color: #2b2c30;
  align-self: flex-end;
}

.bot-msg .msg {
  background-color: transparent !important;
  align-self: flex-start;
}

.msg {
  padding: 16px;
  border-radius: 8px;
  max-width: 100%;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ===== CÃ“DIGO ===== */
code {
  background-color: #2b2c30;
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

pre code {
  background-color: rgba(45, 45, 45, 0.9);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  display: block;
  font-size: 14px;
}

/* ===== LINKS ===== */
a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== INPUT FLUTUANTE (ESTILO CHATGPT) ===== */
.input-floating-container {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 768px;
  padding: 12px;
  background-color: #2a2b32;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 999;
}

.input-floating-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-floating-form input.form-control {
  background-color: #2c2c2e;
  color: #f0f0f0;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  flex: 1;
  transition: background-color 0.2s ease;
}

.input-floating-form input.form-control::placeholder {
  color: #999;
}

.input-floating-form input.form-control:focus {
  box-shadow: none;
  outline: none;
  background-color: #3a3a3a;
}

/* ===== BOTÃ•ES ===== */
.input-floating-form button {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
  color: #ccc;
}

.input-floating-form button:hover {
  background-color: #333;
  color: #fff;
}

.input-floating-form button[type="submit"] {
  background-color: #19c37d;
  color: #000;
}

.input-floating-form button[type="submit"]:hover {
  background-color: #15a06a;
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
  background-color: #343541;
  color: white;
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.dropdown-item {
  color: white;
  font-size: 14px;
  padding: 10px 16px;
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: transparent;
  color: black;
  text-decoration: none;
}

/* ===== CUSTOM DROPDOWN ===== */
.custom-dropdown {
  background-color: #2c2c2e;
  /*border: 1px solid #444;*/
  border-radius: 8px;
  padding: 6px 0;
  min-width: 200px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.custom-dropdown .dropdown-item {
  color: #ccc;
  font-size: 14px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-dropdown .dropdown-item:hover {
  background-color: #3a3a3d;
  color: #fff;
}

.custom-dropdown .dropdown-item.active {
  font-weight: 600;
  color: #fff;
}

.custom-dropdown .checkmark {
  font-size: 12px;
  margin-left: 10px;
  color: #19c37d;
}

/* ===== SPINNER ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #19c37d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== BLOCO DE CÃ“DIGO COM BOTÃƒO COPIAR ===== */
.custom-code-block {
  background-color: #2d2d2d;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  margin-bottom: 1rem;
}

/* Barra superior do cÃ³digo onde fica o botÃ£o */
.code-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0px;

  background-color: transparent;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border: none !important;
  user-select: none;
}

/* BotÃ£o copiar com Ã­cone e texto lado a lado */
.copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 500;
  color: #19c37d;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  z-index: 5;
}

.copy-btn:hover {
  color: #15a06a;
  text-decoration: none;
}


.copy-btn svg {
  stroke: currentColor;
  width: 14px;
  height: 14px;
  display: block;
}
 

/* Ãrea do cÃ³digo */
.code-display {
  padding-top: 32px; /* 24px ou 32px para acomodar o botÃ£o + espaÃ§o visual */
  padding-right: 16px;
  padding-bottom: 16px;
  padding-left: 16px;
  position: relative;
  background-color: #171717;
  color: #d4d4d4;
  border-radius: 5px;
  font-family: monospace;
  white-space: pre-wrap;
   
  overflow-x: auto;
  max-height: 400px;
  outline: none;
}


/* Scrollbar customizada - Chrome/Edge/Safari */
.code-display::-webkit-scrollbar {
  height: 8px;
}

.code-display::-webkit-scrollbar-track {
  background: #2d2d2d;
  border-radius: 8px;
}

.code-display::-webkit-scrollbar-thumb {
  background-color: #9F9F9F;
  border-radius: 8px;
  border: 2px solid #2d2d2d;
}

.code-display::-webkit-scrollbar-thumb:hover {
  background-color: #15a06a;
}

/* Scrollbar para Firefox */
.code-display {
  scrollbar-width: thin;
  scrollbar-color: #9F9F9F #2d2d2d;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 576px) {
  .input-floating-form {
    gap: 6px;
    padding: 0 8px;
  }

  .input-floating-form button {
    width: 36px;
    height: 36px;
  }

  .input-floating-form input.form-control {
    padding: 10px 14px;
  }
}



.continue-link {
  color: #19C37D;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px; /* espaÃ§o entre Ã­cone e texto */
  font-weight: 500;
  cursor: pointer;
}

.continue-link:hover,
.continue-link:focus {
  text-decoration: none; /* ou sem underline se preferir */
  color: #22c480;
}

.continue-link-icon {
  stroke: currentColor; /* herda a cor do link */
  flex-shrink: 0;
}


 

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #666;
}



.btn-verde1 {
  background-color: #0ABF53 !important;
  border-color: #0ABF53 !important;
  color: white;
}

.btn-verde1:hover {
  background-color: #089e45 !important;
  border-color: #089e45 !important;
}


 
    .navbar .icon-btn {
        font-size: 1rem;
        color: white;
    }
    .navbar .icon-btn:hover {
        color: #0d6efd;
    }

    .navbar {
        background-color: rgba(0, 0, 0, 0.4); /* fundo escuro semi-transparente */
        backdrop-filter: blur(6px); /* opcional: efeito de desfoque */
    }