body {
    font-family: 'Pretendard', sans-serif;
    letter-spacing: -0.6px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 240px 1fr;
    grid-template-areas:
        "sidebar header"
        "sidebar main"
        "sidebar footer";
    min-height: 100dvh;
    max-height: 100dvh;
}

button {
    cursor: pointer;
}

header {
    grid-area: header;
    background: #003366;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

nav {
    grid-area: sidebar;
    background: #f4f4f4;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-right: 1px solid #ccc;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}

nav a:hover,
nav a.active {
    background: #e0e0e0;
    text-decoration: none;
}

main {
    grid-area: main;
    padding: 1rem;
    min-height: 300px;
}

footer {
    grid-area: footer;
    background: #f9f9f9;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Index */

main#app {
    padding: 1rem;
    overflow-y: scroll;
}

.nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

header button {
    background: none;
    border: none;
    cursor: pointer;
}

header .material-icons {
    font-size: 1.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Modules Grid */
.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
}

.card h2 {
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.card p {
    flex: 1;
    margin-bottom: 1rem;
}

.btn-enter {
    width: 100%;
    padding: 0.75rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.btn-enter:hover {
    opacity: 0.9;
}

.material-icons {
    vertical-align: middle;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

footer {
    margin: 0;
}