:root {
    --fhir-orange: #e87511;
    --fhir-orange-light: #fff4eb;
    --fhir-blue: #005a9c;
    --fhir-blue-hover: #003d6b;
    --header-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    color: #2d3748;
}

a { color: var(--fhir-blue); text-decoration: none; }
a:hover { color: var(--fhir-blue-hover); text-decoration: underline; }

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

.header {
    background: var(--header-bg);
    color: #fff;
    padding: 1.8rem 2rem;
    box-shadow: var(--shadow-md);
}

.header h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.header .subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    opacity: 0.75;
    font-weight: 400;
}

.fhir-flame {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 0.6rem;
    vertical-align: middle;
    background: var(--fhir-orange);
    border-radius: 50%;
    position: relative;
    top: -1px;
}

.fhir-flame::after {
    content: "\1F525";
    font-size: 16px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: none;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8f9fb;
    border-bottom: 2px solid #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.92rem;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--fhir-orange-light);
}

.ig-title {
    font-weight: 500;
    color: #1a202c;
}

.ig-link {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
}

.version-badge {
    display: inline-block;
    background: #edf2f7;
    color: #4a5568;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'SFMono-Regular', Consolas, monospace;
    text-decoration: none;
}

a.version-badge:hover {
    background: #e2e8f0;
    color: #2d3748;
    text-decoration: none;
}

.ci-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
}

.ci-badge:hover {
    background: #fde68a;
    text-decoration: none;
    color: #78350f;
}

.ci-badge::before {
    content: "\26A0";
    font-size: 0.75rem;
}

.cache-info {
    text-align: right;
    padding: 0.8rem 1rem;
    background: #f8f9fb;
    border-top: 1px solid #edf2f7;
    font-size: 0.8rem;
    color: #718096;
}

.cache-info a {
    color: var(--fhir-blue);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #a0aec0;
}

.empty-state p { font-size: 1.1rem; }

.footer {
    text-align: center;
    padding: 1rem 1.5rem;
    background: #1a1a2e;
    color: rgba(255,255,255,.5);
    font-size: 0.8rem;
}

.footer p { margin: 0; }

@media (max-width: 768px) {
    .content { padding: 1rem; }
    .table thead th, .table tbody td { padding: 0.6rem 0.5rem; font-size: 0.82rem; }
    .ig-link { font-size: 0.78rem; }
}
