/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.visible {
  opacity: 1;
}

/* Modal panel */
.modal-panel {
  background: white;
  border-radius: 1rem 1rem 0 0;
  width: 100%;
  max-width: 48rem;
  max-height: 90vh;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlay.visible .modal-panel {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-panel {
    border-radius: 1rem;
    max-height: 85vh;
  }
}

/* Table hover */
#visitors-body tr {
  transition: background-color 0.1s ease;
}

#visitors-body tr:hover {
  background-color: #f9fafb;
}

/* Detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.detail-item {
  padding: 0.5rem 0;
}

.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.detail-value {
  font-size: 0.875rem;
  color: #111827;
  font-weight: 500;
}

/* Section headings in modal */
.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

/* Interest tags */
.tag {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin: 0.15rem;
}

/* Active site button */
.site-btn.active {
  background: white;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-btn:not(.active) {
  color: #6b7280;
}
