/* ==========================================================================
   Rig Asset Tagger - Inter-Rig Custody Movements & Transfers Stylesheet
   High-Contrast Industrial Dark-Mode Theme & Ultra-Wide Fluid Layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   Status Badges & High-Contrast Visual Indicators
   -------------------------------------------------------------------------- */
.badge-in-transit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.2);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.025em;
  transition: all 0.15s ease-in-out;
}

.badge-approved {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.025em;
  transition: all 0.15s ease-in-out;
}

.badge-pending-approval {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.025em;
  transition: all 0.15s ease-in-out;
}

.badge-rejected {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(244, 63, 94, 0.18);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.45);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.2);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.025em;
  transition: all 0.15s ease-in-out;
}

.badge-received {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(16, 185, 129, 0.22);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-weight: 900;
  font-size: 0.6875rem;
  letter-spacing: 0.025em;
}

/* Pulsing radar dot for in-transit tracking */
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* --------------------------------------------------------------------------
   Table Density, Hover Transitions & Wide-Screen Row Highlights
   -------------------------------------------------------------------------- */
.table-row-hover {
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.table-row-hover:hover {
  background-color: rgba(51, 65, 85, 0.55);
}

.table-row-active-transit:hover {
  background-color: rgba(14, 165, 233, 0.08);
}

/* --------------------------------------------------------------------------
   Statutory Compliance Matrix Warning Banner & Alerts
   -------------------------------------------------------------------------- */
.compliance-warning-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(153, 27, 27, 0.25) 100%);
  border: 1px solid rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  animation: pulse-border-hazard 2s ease-in-out infinite;
}

@keyframes pulse-border-hazard {
  0%, 100% {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
  }
  50% {
    border-color: rgba(239, 68, 68, 0.9);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
  }
}

/* --------------------------------------------------------------------------
   Physical Receiving Condition Pills
   -------------------------------------------------------------------------- */
.condition-operational {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.condition-minor-wear {
  background-color: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.condition-needs-service {
  background-color: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.condition-damaged {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.5);
}

/* --------------------------------------------------------------------------
   Wide-Screen Layout Enhancements (1080p, 1440p, 4K & Ultrawide)
   -------------------------------------------------------------------------- */
@media (min-width: 1536px) {
  #transfersContainer table th,
  #transfersContainer table td {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
}

@media (min-width: 1920px) {
  #transfersContainer table {
    font-size: 0.8125rem;
  }
  #transfersContainer table th {
    font-size: 0.75rem;
  }
}
