/* GPA Calculator - mygpacalc.org */
:root {
    --bg-primary: #f8fafc; --bg-secondary: #ffffff; --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b; --text-secondary: #64748b; --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-primary: #8b5cf6; --accent-secondary: #ec4899;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --radius-sm: 6px; --radius-md: 12px; --radius-lg: 16px;
}
[data-theme="dark"] {
    --bg-primary: #0f172a; --bg-secondary: #1e293b; --bg-tertiary: #334155;
    --text-primary: #f1f5f9; --text-secondary: #94a3b8; --text-muted: #64748b;
    --border-color: #334155;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
.theme-toggle { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--bg-secondary); box-shadow: 0 4px 6px rgba(0,0,0,0.1); cursor: pointer; z-index: 1000; }
.sun-icon, .moon-icon { font-size: 1.5rem; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: opacity 0.3s; }
.moon-icon { opacity: 0; } [data-theme="dark"] .sun-icon { opacity: 0; } [data-theme="dark"] .moon-icon { opacity: 1; }
.container { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
header { text-align: center; margin-bottom: 40px; }
h1 { font-size: 2.5rem; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: var(--text-secondary); font-size: 1.1rem; margin-top: 10px; }
.calculator-card { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2 { font-size: 1.2rem; }
.course-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; margin-bottom: 10px; align-items: center; }
.course-row input, .course-row select { padding: 10px; border: 2px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-primary); color: var(--text-primary); font-size: 0.95rem; }
.course-row input:focus, .course-row select:focus { outline: none; border-color: var(--accent-primary); }
.remove-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; padding: 10px; }
.remove-btn:hover { color: #ef4444; }
.btn { padding: 10px 20px; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--accent-gradient); color: white; }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); }
.add-btn { padding: 8px 16px; }
.result-section { margin: 30px 0; padding: 30px; background: var(--accent-gradient); border-radius: var(--radius-md); text-align: center; color: white; }
.gpa-display { margin-bottom: 20px; }
.gpa-label { display: block; font-size: 0.9rem; opacity: 0.9; }
.gpa-value { font-size: 4rem; font-weight: 800; display: block; }
.gpa-scale { font-size: 1.2rem; opacity: 0.8; }
.stats { display: flex; justify-content: center; gap: 40px; }
.stat { text-align: center; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.85rem; opacity: 0.8; }
.actions { display: flex; gap: 15px; justify-content: center; }
.grade-scale { margin: 50px 0; }
.grade-scale h2 { text-align: center; margin-bottom: 20px; }
.scale-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; }
.scale-item { text-align: center; padding: 15px 10px; background: var(--bg-secondary); border-radius: var(--radius-sm); }
.grade { display: block; font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.points { font-size: 0.85rem; color: var(--text-secondary); }
.trust-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin: 50px 0; }
.badge { text-align: center; padding: 20px 15px; background: var(--bg-secondary); border-radius: var(--radius-md); }
.badge-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.badge-text { font-weight: 700; }
.faq-section { margin: 50px 0; }
.faq-section h2 { text-align: center; font-size: 1.8rem; margin-bottom: 30px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.faq-item { background: var(--bg-secondary); padding: 25px; border-radius: var(--radius-md); }
.faq-item h3 { font-size: 1rem; margin-bottom: 12px; }
.faq-item p { color: var(--text-secondary); font-size: 0.9rem; }
footer { text-align: center; padding: 40px 20px; border-top: 1px solid var(--border-color); }
footer p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 10px; }
footer a { color: var(--accent-primary); text-decoration: none; }
@media (max-width: 600px) { .course-row { grid-template-columns: 1fr 1fr; } h1 { font-size: 2rem; } }
