body {
  font-family: "Inter", sans-serif;
  background-color: #f0f4f8;
  color: #2d3748;
}

.nav-active {
  border-bottom-color: #3b82f6;
  color: #2563eb;
  font-weight: 600;
}

.nav-inactive {
  border-bottom-color: transparent;
}

.confidence-high {
  background-color: #d1fae5;
  color: #065f46;
}

.confidence-medium {
  background-color: #e0f2fe;
  color: #075985;
}

.confidence-low {
  background-color: #fef3c7;
  color: #92400e;
}

.accuracy-correct {
  background-color: #d1fae5;
  color: #065f46;
}

.accuracy-incorrect {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Confidence Key Styles */
.confidence-key-high {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.confidence-key-medium {
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.confidence-key-low {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.summary-card {
  background-color: #f9fafb; /* bg-gray-50 */
  border: 1px solid #e5e7eb; /* border-gray-200 */
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: left;
  color: #1f2937; /* text-gray-800 */
}

/* Accuracy-based styling for summary cards */
.summary-card.accuracy-good {
  background-color: #d1fae5; /* green-100 */
  border-color: #a7f3d0; /* green-300 */
  color: #065f46; /* green-800 */
}

.summary-card.accuracy-good h4 {
  color: #065f46; /* green-800 */
}

.summary-card.accuracy-good p {
  color: #059669; /* green-600 for percentage */
}

.summary-card.accuracy-poor {
  background-color: #fee2e2; /* red-100 */
  border-color: #fca5a5; /* red-300 */
  color: #991b1b; /* red-800 */
}

.summary-card.accuracy-poor h4 {
  color: #991b1b; /* red-800 */
}

.summary-card.accuracy-poor p {
  color: #dc2626; /* red-600 for percentage */
}

/* Vertical match display styling */
.vertical-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 120px;
}

.vertical-match .home-team,
.vertical-match .away-team {
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
  color: #1f2937;
}

.vertical-match .vs-separator {
  font-size: 0.625rem;
  color: #6b7280;
  font-weight: 400;
}

/* Tooltip for match dates on hover */
.match-with-date {
  position: relative;
  cursor: help;
}

.match-with-date:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f2937;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.2s ease-in-out forwards;
}

.match-with-date:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 0.25rem);
  left: 50%;
  transform: translateX(-50%);
  border: 0.25rem solid transparent;
  border-top-color: #1f2937;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.2s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Title link styling */
a:hover {
  text-decoration: none;
}

.title-link {
  cursor: pointer;
}

.title-link:hover {
  color: #3b82f6 !important;
  text-decoration: none;
}

/* Row hover effects */
tbody tr:hover {
  background-color: #f8fafc !important;
  cursor: pointer;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

/* Ensure hover works over confidence colors */
tbody tr:hover td {
  background-color: inherit;
}

/* Special handling for confidence cells on hover */
tbody tr:hover .confidence-high {
  background-color: rgba(34, 197, 94, 0.2) !important;
}

tbody tr:hover .confidence-medium {
  background-color: rgba(59, 130, 246, 0.2) !important;
}

tbody tr:hover .confidence-low {
  background-color: rgba(251, 191, 36, 0.2) !important;
}

/* Analysis page row hover */
tbody tr:hover .accuracy-good {
  background-color: rgba(34, 197, 94, 0.3) !important;
}

tbody tr:hover .accuracy-poor {
  background-color: rgba(239, 68, 68, 0.3) !important;
}
