body {
  background-color: #f4f7fb;
}

/* ================= RADIO CARD ================= */
.radio-card {
  border: 2px solid #afd3fd;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
  min-width: 120px;
  background-color: #d8e8fa;
  display: block;
  min-height: 90px;
  text-align: center;
}

.radio-card:hover {
  border-color: #0d6efd;
  background-color: #c1d9fc;
}

/* Título (Sim / Não) */
.radio-card-title {
  font-size: 18px;
  font-weight: bolder; /* sem negrito */
  color: #212529;
  margin-bottom: 6px;
}

/* Descrição abaixo */
.radio-card-description {
  font-size: 14px;
  font-weight: 400;
  color: #6c757d;
  line-height: 1.4;
  max-width: 100%;
  text-align: left;
}

/* Check (✔) */
.radio-card .check {
  display: none;
  position: absolute;
  top: 10px;
  right: 12px;
  color: green;
  font-size: 18px;
  font-weight: bold;
}

/* Quando selecionado */
input[type="radio"]:checked + .radio-card {
  border-color: green;
  background-color: #b1f5c3;
}

/* Mostrar check */
input[type="radio"]:checked + .radio-card .check {
  display: block;
}

/* ================= KEYWORDS ================= */
.keyword-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 14px;
}

/* Botão remover palavra-chave */
.btn-remove {
  border: none;
  background: #ef4444;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-remove:hover {
  background: #dc2626;
}

/* ================= LISTA / CONTADOR ================= */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0px;
  margin-top: 15px;
}

.counter {
  font-size: 14px;
  color: #6b7280;
}

/* Estado vazio */
.empty {
  text-align: center;
  color: #6b7280;
  padding: 24px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
}


.bloco { 
  border: 2px solid #ddd;
  border-radius: 8px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.bloco img {
  border-radius: 8px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: 0.3s;
  width: 100%;
  height: auto;
}

.bloco img:hover {
 filter: grayscale(0%);
}

.bloco .check {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #028328;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2;
}

input[type="radio"]:checked + .bloco,
input[type="checkbox"]:checked + .bloco {
  border-color: #028328;
  box-shadow: 0 0 0 3px rgba(2, 131, 40, 0.18);
}

input[type="radio"]:checked + .bloco img,
input[type="checkbox"]:checked + .bloco img {
  filter: grayscale(0%);
}

input[type="radio"]:checked + .bloco .check,
input[type="checkbox"]:checked + .bloco .check {
  display: flex;
}


/*Tooltip*/

.tooltip-custom {
    position: absolute;
    background-color: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    top: -30px;
    right: 0;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.btn-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.btn-wrapper:hover .tooltip-custom {
    opacity: 1;
}


/*Sugestão de autores*/


.autocomplete {
      position: relative;
    }

    
.sugestoes {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.sugestoes.show {
  display: block;
}

.sugestoes li {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.sugestoes li:hover {
  background: #eff6ff;
}

.sugestoes .empty {
  color: #6b7280;
  cursor: default;
}

.selected {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.selected strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

/* ================= FIX INPUT-GROUP MOBILE ================= */

/* Evita quebrar linha (select + botão ficam sempre lado a lado) */
.input-group {
  flex-wrap: nowrap;
}

/* Permite o select encolher corretamente dentro do flex */
.input-group .form-floating {
  min-width: 0;
  flex: 1 1 auto;
}

/* Garante que botão nunca vá para baixo */
.input-group .btn,
.input-group .input-group-text {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Evita que textos longos estourem o layout */
.input-group .form-select,
.input-group .form-control {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}


