/* Asesoría IA — Dashboard Styles */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Summary cards get a subtle lift on hover */
.card-animate {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-animate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: #1f2937;
  background-color: #f3f4f6;
}

.nav-link.active {
  color: #2563eb;
  background-color: #eff6ff;
}

/* Smooth transitions */
[x-cloak] { display: none !important; }

/* Table hover effects */
table tbody tr {
  transition: background-color 0.15s ease;
}

/* Truncated cells with tooltip */
.cell-truncate {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

/* Company header badge */
.company-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #475569;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print styles */
@media print {
  nav, footer, .no-print { display: none !important; }
  .card { box-shadow: none; border: 1px solid #e2e8f0; }
  body { background: white; }
}

/* Responsive table scrolling indicator */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Table responsive wrapper - fade hint on right edge */
.table-wrapper {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e2e8f0;
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Animation for upload zone */
@keyframes pulse-border {
  0%, 100% { border-color: #93c5fd; }
  50% { border-color: #3b82f6; }
}

/* Mobile nav */
@media (max-width: 639px) {
  .cell-truncate {
    max-width: 120px;
  }
}
