body {
    font-family: 'Inter', sans-serif;
}
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.category-pedd { background-color: #dbeafe; color: #1e40af; }
.category-nedd { background-color: #dcfce7; color: #166534; }
.category-sedd { background-color: #fee2e2; color: #991b1b; }
.view-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}
.view-btn.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.view-btn.inactive {
    background-color: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}
.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}
.option-btn:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
    color: #1e40af;
}
.card-image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
}

/* Disorder name link styles */
.disorder-card-link h3 a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.disorder-card-link h3 a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Detail page specific styles */
.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.info-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-content {
    color: #4b5563;
    line-height: 1.6;
}

.info-content ul {
    list-style: none;
    padding-left: 0;
}

.info-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-content ul li:last-child {
    border-bottom: none;
}

/* Reference link styles */
.reference-link {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dotted #2563eb;
}

.reference-link:hover {
    border-bottom-style: solid;
}

/* Icon placeholder for consistent sizing */
.icon-placeholder {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    flex-shrink: 0;
}

/* Clinical trial button styles */
#geneSearchBtn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #2563eb;
    color: white;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

#geneSearchBtn:hover {
    background-color: #1d4ed8;
}

/* Quick info section styles */
.quick-info dt {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.quick-info dd {
    font-size: 1rem;
    color: #111827;
    margin-top: 0.25rem;
}

/* External resource links */
.resource-link {
    display: block;
    font-size: 0.875rem;
    color: #92400e;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.resource-link:hover {
    color: #78350f;
    text-decoration: underline;
}

/* Back button styles */
.back-button {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.back-button:hover {
    color: #1e40af;
}

.back-button svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-card {
        padding: 1rem;
    }
    
    .disorder-detail-header {
        flex-direction: column;
    }
    
    .disorder-detail-image {
        margin-top: 1rem;
        max-width: 100%;
    }
}

/* Print styles for disorder detail pages */
@media print {
    .back-button,
    #suggestUpdateSection,
    #footer-placeholder,
    #header-placeholder {
        display: none !important;
    }
    
    .info-card {
        page-break-inside: avoid;
    }
}

/*
 * The conflicting rule for '#resultsContainer > .disorder-card-link'
 * has been removed.
 *
 * The fix will be handled by adding a Tailwind class
 * ('items-stretch') to the grid container in index.html.
 * This will allow your existing 'h-full' class in database.js
 * to work as intended.
*/