body {
    margin: 0;
}

.dashboard-page {
    min-height: 100vh;
    background-color: #F6BD32;
    background-image: url("/static/img/dashboard_bg_clean.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dashboard-overlay {
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(0px);
    padding: 48px;
    box-sizing: border-box;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 28px auto;
    padding: 28px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.dashboard-header > div {
    min-width: 0;
}

.dashboard-school-logo {
    display: block;
    flex: 0 0 auto;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 44px;
    letter-spacing: -0.5px;
}

.dashboard-header p {
    margin: 8px 0 0 0;
    font-size: 17px;
    color: #333;
}

.dashboard-main {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.dashboard-card {
    padding: 28px 32px 32px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.dashboard-card h2 {
    margin: 0 0 20px 0;
    font-size: 26px;
}

.class-grid,
.link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 16px;
}

.class-tile,
.link-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    border-radius: 20px;
    background: rgba(255,255,255,0.88);
    color: #111;
    text-decoration: none;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    border: 2px solid rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.link-tile {
    min-height: 72px;
    font-size: 20px;
}

.class-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.20);
    background: #54955C;
    color: #000;
}

.link-tile:hover {
    transform: translateY(-3px);
    background: #F6BD32;
    color: #1f1f1f;
}

.link-tile.muted,
.link-placeholder {
    opacity: 0.55;
    cursor: default;
}

.link-placeholder:hover {
    transform: none;
    background: rgba(255,255,255,0.88);
    color: #111;
}

@media (max-width: 850px) {
    .dashboard-overlay {
        padding: 24px;
    }

    .class-grid,
    .link-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .dashboard-header h1 {
        font-size: 34px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .dashboard-school-logo {
        width: 220px;
    }
}

@media (max-width: 420px) {
    .dashboard-header,
    .dashboard-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .class-grid,
    .link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .class-tile,
    .link-tile {
        font-size: 18px;
        overflow-wrap: anywhere;
    }
}
.archive-tile {
    background: rgba(246, 189, 50, 0.92);
}

.admin-tile {
    background: rgba(246, 189, 50, 0.92);
}

.dashboard-card p {
    font-size: 17px;
    line-height: 1.45;
}
