:root {
    --primary-color: #2E7D32; /* Academic Green */
    --accent-color: #4CAF50;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #F5F7FA;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    
    --score-good: #4CAF50;
    --score-mod: #FFC107;
    --score-poor: #F44336;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 40px;
}

/* Header */
.app-header {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.app-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.app-header p {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .app-container {
        grid-template-columns: 350px 1fr;
    }
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 0.5rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 2rem;
}

.form-group h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 1rem;
}

input[type="number"], 
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="number"]:focus, 
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Range Sliders */
.range-container {
    margin: 0.5rem 0 1.5rem;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
    accent-color: var(--primary-color);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    background: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkbox-group label:has(input:checked) {
    background: #E8F5E9;
    color: var(--primary-color);
    font-weight: 500;
}

/* Buttons */
.actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.1s, opacity 0.2s;
}

button:active {
    transform: scale(0.98);
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.secondary-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--text-light);
}

/* Output Dashboard */
.score-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.score-item {
    text-align: center;
    width: 100px;
}

.score-item h3 {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-light);
}

/* Circular Chart SVG */
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.percentage {
    fill: #666;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.5em; /* Scaled relative to SVG coord system */
    text-anchor: middle;
}

/* Metrics Summary */
.metrics-summary {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.metric-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-box .label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.metric-box .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Interpretation */
.interpretation-box {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-top: 1rem;
}

.interpretation-box h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.interpretation-box p {
    font-size: 0.95rem;
}

/* Educational Section */
.edu-card summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none; /* Hide default arrow */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edu-card summary::-webkit-details-marker {
    display: none;
}

.edu-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.edu-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.edu-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

/* Utilities */
.hidden { display: none; }
