.sugerir-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.sugerir-modal {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.sugerir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(96, 165, 250, 0.05));
}

.sugerir-header-content {
  flex: 1;
}

.sugerir-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-2);
}

.sugerir-subtitle {
  margin: 0.25rem 0 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.sugerir-close {
  background: none;
  border: none;
  color: var(--silver);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.sugerir-close:hover {
  color: var(--white);
}

.sugerir-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--stroke);
}

.sugerir-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sugerir-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--silver);
}

.sugerir-field input,
.sugerir-field select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.sugerir-field input:focus,
.sugerir-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.sugerir-field input::placeholder {
  color: var(--muted);
}

.sugerir-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.sugerir-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--silver);
  cursor: pointer;
}

.sugerir-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.sugerir-quantidade {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--silver);
}

.sugerir-quantidade select {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.85rem;
}

.sugerir-btn {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.sugerir-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.sugerir-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sugerir-error {
  padding: 1rem 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.9rem;
}

.sugerir-resultados {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sugerir-resultados-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--stroke);
}

.sugerir-resultados h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver);
}

.sugerir-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.sugerir-lista {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.sugerir-item {
  padding: 1rem;
  margin: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid var(--stroke);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sugerir-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.sugerir-item.selecionado {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.sugerir-item.selecionado:hover {
  background: rgba(16, 185, 129, 0.15);
}

.sugerir-checkbox-item {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.sugerir-checkbox-item input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.btn-ver-ranking {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--stroke);
  color: var(--silver);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  margin-left: auto;
}

.btn-ver-ranking:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.sugerir-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.sugerir-rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ebeaff;
  min-width: 2rem;
}

.sugerir-nome {
  flex: 1;
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sugerir-nome .link-atuacapes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  text-decoration: none;
  transition: all 200ms ease;
}

.sugerir-nome .link-atuacapes:hover {
  color: #a5b4fc;
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(165, 180, 252, 0.4);
  transform: scale(1.1);
}

.sugerir-badges {
  display: flex;
  gap: 0.4rem;
}

.sugerir-badges .badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.sugerir-badges .badge.coordenador {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.sugerir-badges .badge.premiado {
  background: rgba(234, 179, 8, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.sugerir-badges .badge.ativo {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sugerir-badges .badge.inativo {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.4);
}

.sugerir-item-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.stat-ranking {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #67e8f9;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(103, 232, 249, 0.4);
}

.stat-icon {
  font-size: 0.9rem;
}

.stat-pontuacao {
  font-size: 0.75rem;
  color: #fcd34d;
  font-weight: 600;
  background: rgba(234, 179, 8, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.sugerir-motivos {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
}

.motivos-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.4rem;
}

.motivos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag.motivo {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

.sugerir-item-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sugerir-ies {
  font-size: 0.8rem;
  color: var(--silver);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.sugerir-areas {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.tag.area {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag.more {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.sugerir-pesquisa {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tag.pesquisa {
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipe-flutuante {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  backdrop-filter: blur(8px);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.equipe-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.equipe-count {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.equipe-nomes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.equipe-nome {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.equipe-acoes {
  display: flex;
  gap: 0.75rem;
}

.btn-limpar {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-limpar:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-gerar-pdf {
  background: white;
  border: none;
  color: #059669;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-gerar-pdf:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-gerar-pdf:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.equipe-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.equipe-interdisciplinar {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.equipe-temas {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.equipe-tema {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-style: italic;
}

@media (max-width: 600px) {
  .sugerir-modal {
    max-height: 95vh;
  }

  .sugerir-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .sugerir-item-header {
    flex-wrap: wrap;
  }

  .sugerir-badges {
    width: 100%;
    margin-top: 0.5rem;
  }

  .equipe-flutuante {
    flex-direction: column;
    padding: 1rem;
  }

  .equipe-acoes {
    width: 100%;
    justify-content: stretch;
  }

  .btn-gerar-pdf {
    flex: 1;
  }
}
