/* ===================================================
   VMIN Autocomplete PRO v3.0 — CSS
   =================================================== */

/* Dropdown Container */
.vmin-ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  display: none;
  z-index: 99999;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  animation: vminSlideDown 0.15s ease-out;
}

@keyframes vminSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vmin-ac-dropdown::-webkit-scrollbar {
  width: 6px;
}
.vmin-ac-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.vmin-ac-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* Section Headers */
.vmin-ac-header {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.vmin-ac-icon {
  font-size: 13px;
}

/* Section Divider */
.vmin-ac-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 12px;
}

/* Items */
.vmin-ac-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #1e293b;
  transition: background 0.12s ease, padding-left 0.12s ease;
  line-height: 1.4;
}

.vmin-ac-item:hover,
.vmin-ac-item.vmin-ac-active {
  background: #f8fafc;
  padding-left: 20px;
}

.vmin-ac-item:last-child {
  border-radius: 0 0 12px 12px;
}

/* Item de vaga */
.vmin-ac-vaga .vmin-ac-item-text {
  font-weight: 500;
}

.vmin-ac-arrow {
  font-size: 14px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.vmin-ac-item:hover .vmin-ac-arrow {
  transform: translateX(3px);
  color: #3b82f6;
}

/* Contagem de vagas */
.vmin-ac-count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Highlight do termo buscado */
.vmin-ac-item mark {
  background: #fef08a;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
  font-weight: 700;
}

/* Estado vazio */
.vmin-ac-empty {
  padding: 30px 20px;
  text-align: center;
  color: #94a3b8;
}

.vmin-ac-empty p {
  margin: 10px 0 4px;
  font-size: 14px;
  color: #64748b;
}

.vmin-ac-empty small {
  font-size: 12px;
  color: #94a3b8;
}

/* Responsivo */
@media (max-width: 600px) {
  .vmin-ac-dropdown {
    border-radius: 8px;
    max-height: 320px;
  }
  .vmin-ac-item {
    padding: 9px 12px;
    font-size: 13px;
  }
  .vmin-ac-header {
    padding: 8px 12px 4px;
    font-size: 10px;
  }
}
