:root {
    --bg: #0b0f19;
    --card-bg: #151b2b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #88f091; /* The bright green from your logo */
    --accent-dark: #2d5a3f; /* The dark green from your logo */
    --border: #1e293b;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0a1114; /* Very dark teal/black */
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    /* We add a subtle gradient to the body so it's not entirely flat */
    background-image: linear-gradient(180deg, #0a1114 0%, #05080a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- Updated Header --- */
header {
    padding: 4rem 0 2rem 0; /* Added more padding to push content down */
    /* Fade from the green/teal at the very top into pure black */
    background: radial-gradient(ellipse at top, rgba(20, 50, 50, 0.6) 0%, rgba(10, 17, 20, 0) 70%);
    margin-bottom: 2rem; /* Gives space before the cards start */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

header p {
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-size: 1.1rem;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    /* Using a semi-transparent background so the gradient subtly shows through */
    background: rgba(21, 27, 43, 0.6); 
    backdrop-filter: blur(10px); /* Adds a nice glassmorphism effect */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(136, 240, 145, 0.1); /* Adds a subtle green glow on hover */
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score {
    font-size: 2.5rem;
    font-weight: 800;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.badge.low { background: rgba(16, 185, 129, 0.2); color: var(--green); }
.badge.medium { background: rgba(245, 158, 11, 0.2); color: var(--yellow); }
.badge.high { background: rgba(239, 68, 68, 0.2); color: var(--red); }
.badge.insufficient { background: rgba(148, 163, 184, 0.2); color: var(--text-muted); }

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

/* Details View */
.btn-back {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: background 0.2s;
}

.btn-back:hover {
    background: var(--card-bg);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.metrics-table th, .metrics-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.metrics-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-unmeasured {
    opacity: 0.5;
}

.hidden { display: none; }
.loading { text-align: center; padding: 4rem; color: var(--text-muted); font-size: 1.2rem; }