:root {
    --risk-red: #ef5350;
    --carrier-orange: #ffa726;
    --normal-green: #66bb6a;
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.culprit-section summary {
    color: var(--risk-red);
    font-weight: bold;
}

.rsid-tag.culprit {
    border: 1px solid var(--risk-red);
    background: rgba(239, 83, 80, 0.1);
}

.disease-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border-left: 8px solid; /* This is where the color goes */
    transition: transform 0.2s;
}

.disease-card:hover {
    transform: translateY(-5px);
}

/* Color Coding Logic */
.card-variant { border-color: var(--risk-red); }
.card-carrier { border-color: var(--carrier-orange); }
.card-normal  { border-color: var(--normal-green); }

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 5px;
}

.badge.red { background: var(--risk-red); color: white; }
.badge.orange { background: var(--carrier-orange); color: white; }
.badge.green { background: var(--normal-green); color: white; }

.description {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
    border-bottom: 1px inset #333;
    margin-bottom: 10px;
}

/* Custom scrollbar for a clean Flutter look */
.description::-webkit-scrollbar {
    width: 4px;
}
.description::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

/* Search Bar Styling */
.search-container {
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-dark);
}

#diseaseSearch {
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    border: 2px solid #333;
    background: #1e1e1e;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#diseaseSearch:focus { border-color: var(--carrier-orange); }

/* Expandable Section Styling */
.info-section {
    margin: 10px 0;
    border-top: 1px solid #333;
    padding-top: 10px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: #888;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

summary::after { content: ' ▾'; }

.details-content {
    padding: 10px;
    background: #161616;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
}

/* RSID Tags */
.rsid-tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.rsid-tag {
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
}

.footer-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
}