.text-primary {
  color: #c9a300;
}

.modern-border {
  border-left: 4px solid #c9a300;
}

.modern-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.modern-card:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.modern-shadow {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-primary {
  background: linear-gradient(135deg, #c9a300 0%, #ebc311 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(240, 225, 94, 0.336);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c9a300 0%, #ebc311 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.table-row:hover {
  background: rgba(220, 241, 99, 0.05);
}

.status-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.status-inactive {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.status-pending {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

@keyframes modern-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

.modern-pulse {
  animation: modern-pulse 2s infinite;
}

.gradient-bg {
  background: linear-gradient(135deg, #d6ea66 0%, #9ca24b 100%);
}

.glass-effect {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-input {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.modern-input:focus {
  background: #ffffff;
  border-color: #ebc311;
  box-shadow: 0 0 0 3px rgba(241, 227, 99, 0.1);
}

.icon-wrapper {
  background: linear-gradient(135deg, #ebc311 0%, #f6da5c 100%);
}

.metric-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

@view-transition {
  navigation: auto;
}

.racing-border {
  border-left: 4px solid #facc15;
}

.text-racing-gold {
  color: #facc15;
}

.admin-card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-racing {
  background: linear-gradient(135deg, #facc15, #eab308);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-racing:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(250, 204, 21, 0.45);
}

.font-racing {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.08em;
}

.status-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.status-inactive {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Avatar de piloto na classificação (lista) */
.driver-avatar-wrapper {
  position: relative;
}

/* Controla o zoom e o posicionamento da imagem dentro do círculo */
.driver-avatares {
  width: 140%;
  /* zoom (aumenta se quiser mais perto) */
  height: auto;
  transform: translateY(45px);
  /* positivo = desce a imagem; negativo = sobe */
  border-radius: 9999px;
  /* garante corte redondo */
}

/* ============================= */
/* TABELAS RESPONSIVAS - ADMIN */
/* ============================= */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  width: 100%;
  min-width: 1500px;
  table-layout: fixed;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-responsive .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-responsive td .flex {
  flex-wrap: nowrap;
}

.table-responsive a,
.table-responsive button {
  white-space: nowrap;
}

.table-responsive img,
.table-responsive .rounded-full {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .table-responsive table {
    min-width: 1500px;
  }
}

.driver-avatares {
  width: 140%;
  /* zoom (aumenta se quiser mais perto) */
  height: auto;
  transform: translateY(50px);
  /* positivo = desce a imagem; negativo = sobe */
  border-radius: 9999px;
  /* garante corte redondo */
}
