/* ===================================
   iPontoWeb Connect - Estilos Globais
   =================================== */

/* --- IMPORTAÇÕES --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* --- BASE --- */
body {
  font-family: "Inter", sans-serif;
  background-color: #f8f9fa;
}

/* --- TRANSIÇÕES --- */
.item-row,
.card-section {
  transition: all 0.3s ease-in-out;
}

img.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- LAYOUT --- */
.divide-y > div:last-child {
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ===================================
   ZOOM DE IMAGENS
   =================================== */

/* Sobreposição Mobile */
#zoom-overlay {
  position: fixed;
  z-index: 9999;
  background-color: transparent;
  cursor: zoom-out;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.35));
  transform-origin: center center;
}

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

/* Zoom para Desktop */
.img-zoom-desktop {
  transform: scale(4);
  z-index: 50;
  position: relative;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  cursor: zoom-out;
}

/* ===================================
   DICAS DE CONTEXTO (TOOLTIPS)
   =================================== */

.tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  width: 12rem;
  padding: 0.5rem;
  background-color: #1e293b;
  color: white;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  display: none;
  z-index: 60;
  text-align: center;
  font-weight: normal;
  text-transform: none;
  pointer-events: none;
}

.tooltip-arrow {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: transparent transparent #1e293b transparent;
}

.group:hover .tooltip,
.group:focus .tooltip {
  display: block;
}

/* ===================================
   BADGES DE BIOMETRIA
   =================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-completo {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-parcial {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-nao-realizado {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.badge-nao-aplica {
  background-color: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

/* ===================================
   ANIMAÇÕES
   =================================== */

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

@media (max-width: 1024px) {
  .filters-collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  .filters-expanded {
    max-height: 500px;
    opacity: 1;
  }
}
