/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f9;
}

h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

a {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
}

a:hover {
    background-color: #45a049;
}

/* ----- Version List Table Styles ----- */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.table-actions {
    display: flex;
    gap: 6px;
}

/* Buttons */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
}

.btn-add {
    background-color: #28a745;
    margin-bottom: 15px;
}

.btn-view {
    background-color: #007bff;
}

.btn-edit {
    background-color: #ffc107;
    color: #000;
}

.btn-delete {
    background-color: #dc3545;
}

/* --- Navigation Bar --- */
/* --- Navigation Bar --- */
nav {
    background-color: #222;
    padding: 12px 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

nav li {
    margin: 0;
}

nav a {
    background-color: #4CAF50;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-block;
}

nav a:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

.review-option {
    display: inline-block;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-option input[type="radio"] {
    display: none;
}

.review-option span {
    font-weight: 500;
    font-size: 1rem;
}

.review-option input[type="radio"]:checked + span {
    background-color: #e0ffe0;
    border: 2px solid #4CAF50;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Table cell defaults */
.json-table td { vertical-align: top; white-space: normal; }

/* Stack small items in a cell */
.cell-stack { display: flex; flex-direction: column; gap: 4px; }

/* Pills / badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; line-height: 1.6; }
.badge-golden { background: #615900; color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 12px; line-height: 1.6; background: #eef2ff; color: #3730a3; text-decoration: none; }
.chip-version { background: #e7f8ef; color: #065f46; } /* subtle green for version */
.chip-version_g { background: #f2f0c2; color: #615900; }
.test-card.is-selected {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    background: #f8fafc;
}
.text-muted { color: #6b7280; font-style: italic; }
.meta-item { display:flex; align-items:center; gap:6px; }
#img- .test-card { scroll-margin-top: 80px; } /* or just on the div: style="scroll-margin-top:80px" */
/* html { scroll-behavior: smooth; } */
/* optional: keep sizes consistent */
.action-btn.btn-sm { padding: 6px 12px; font-size: 12px; line-height: 1; }

/* a subtle grey disabled state */
.action-btn.is-disabled {
  background: #e5e7eb !important;  /* light grey */
  color: #6b7280 !important;        /* muted text */
  cursor: not-allowed !important;
  pointer-events: none;
  opacity: .9;
}