:root {
    --primary: #1E3A5F;
    --accent: #00C853;
    --warn: #FF6D00;
    --bg: #F5F7FA;
    --text: #212121;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container { max-width: 960px; margin: 0 auto; padding: 20px; }

header {
    background: var(--primary);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout { color: white; text-decoration: none; opacity: 0.8; }
.logout:hover { opacity: 1; }

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nav a {
    background: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav a:hover { background: #e8f0fe; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card span {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.card small { color: #666; font-size: 12px; text-transform: uppercase; }

.section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section h2 { font-size: 18px; margin-bottom: 12px; color: var(--primary); }

.login-box { text-align: center; padding: 60px 20px; }
.hint { color: #888; margin-top: 12px; font-size: 14px; }

table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; }
th { font-weight: 600; color: var(--primary); font-size: 12px; text-transform: uppercase; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-student { background: #e3f2fd; color: #1565c0; }
.badge-parent { background: #fce4ec; color: #c62828; }

/* Landing page features */
.landing-hero {
    text-align: center;
    padding: 20px 0 10px 0;
}
.landing-hero h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}
.landing-hero p {
    color: #555;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.feature-card {
    background: white;
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.feature-card .icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}
.feature-card h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 6px;
}
.feature-card p {
    font-size: 13px;
    color: #666;
}

.landing-cta {
    text-align: center;
    margin: 24px 0 16px 0;
}
.landing-cta a {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 4px;
    transition: background 0.2s;
}
.landing-cta a:hover {
    background: #152a47;
}
.landing-cta a.secondary {
    background: var(--accent);
}
.landing-cta a.secondary:hover {
    background: #00b548;
}

/* Footer */
.main-footer {
    background: #1E3A5F;
    color: #fff;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.85;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

.footer-copy a {
    color: #fff;
}
