/* Reusable tabbed content styles - Unified for all pages */
.tabbed-section {
  margin-top: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-border);
}

.table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.tab-link {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-bottom: 3px solid transparent;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-link:hover {
  color: var(--color-primary-dark);
  background: var(--color-surface);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(21, 118, 154, 0.15);
}

.tab-link.active {
  color: var(--color-text-light);
  background: var(--color-primary);
  border-color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  transform: translateY(-1px);
}

.tab-content {
  display: none;
  padding: var(--space-lg) 0;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.order-table th,
.order-table td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: right;
}

.order-table th {
  background: var(--color-primary-dark);
  color: var(--color-text-light);
}

.order-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-highlight);
  color: var(--color-black);
  text-decoration: none;
  font-weight: bold;
  border-radius: var(--radius-sm);
}

.order-button:hover {
  background: var(--color-accent);
  color: var(--color-text-light);
}

@media(max-width: 768px) {
  .order-table th:nth-child(2),
  .order-table td:nth-child(2),
  .order-table th:nth-child(5),
  .order-table td:nth-child(5) {
    display: none;
  }

  .order-table {
    font-size: 0.75rem;
  }
}

@media(max-width: 452px) {
  .order-table th:nth-child(2),
  .order-table td:nth-child(2),
  .order-table th:nth-child(3),
  .order-table td:nth-child(3),
  .order-table th:nth-child(5),
  .order-table td:nth-child(5) {
    display: none;
  }

  .order-table {
    font-size: 0.75rem;
  }
}

@media(max-width: 410px) {
  .order-table th:nth-child(2),
  .order-table td:nth-child(2),
  .order-table th:nth-child(3),
  .order-table td:nth-child(3),
  .order-table th:nth-child(5),
  .order-table td:nth-child(5),
  .order-table th:nth-child(4),
  .order-table td:nth-child(4) {
    display: none;
  }

  .order-table {
    font-size: 0.75rem;
  }
}

/* Responsive tab styling */
@media (max-width: 768px) {
  .tabs {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .tab-link {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
  }

  .tab-content {
    padding: var(--space-lg) 0;
  }
}

@media (max-width: 640px) {
  .tabs {
    gap: 0.25rem;
  }

  .tab-link {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
  }
}

.safety-list {
  list-style: none;
  padding: 0;
}

.safety-list li {
  margin-bottom: 0.5rem;
}

.safety-list a {
  text-decoration: none;
  color: var(--color-primary-dark);
}

.safety-list a:hover {
  text-decoration: underline;
}

.protocol-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  font-weight: bold;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.protocol-button:hover {
  background: var(--color-primary-dark);
}

.hidden {
  display: none;
}

.kit-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.kit-order-table th,
.kit-order-table td {
  text-align: center;
  padding: 12px;
  border: 1px solid var(--color-border);
}

.kit-order-table th {
  background-color: var(--color-neutral-200);
  font-weight: bold;
}

.buy-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
}

.buy-button:hover {
  background-color: var(--color-primary-dark);
}
