/* ── Base styles ── */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
    padding-bottom: 90px;
    box-sizing: border-box;
}

html.dark body {
    background-color: #0f172a;
    color: #e2e8f0;
}

main {
    min-height: 100vh;
    padding: 1.25rem;
    max-width: 42rem;
    margin: 0 auto;
}

/* ── Bottom navigation ── */
.bottom-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

html.dark .bottom-nav {
    background-color: rgba(30, 41, 59, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.bottom-nav.expanded {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
}

.bottom-nav.expanded .top-buttons-row {
    display: flex !important;
}

.bottom-nav.expanded #nav-toggle {
    display: none !important;
}

/* ── Navigation items ── */
.top-buttons-row {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    width: 100%;
}

.top-buttons-row > div:nth-child(2) {
    text-align: center;
}

.nav-items-row {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item:hover {
    color: #3b82f6;
    transform: translateY(-0.125rem);
}

html.dark .nav-item {
    color: #6b7280;
}

html.dark .nav-item:hover {
    color: #60a5fa;
}

.nav-item i {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.25rem;
}

/* ── Nav items wrapper ── */
.nav-items-wrapper {
    display: flex;
    gap: 1.875rem;
    justify-content: space-around;
    width: 100%;
}

/* ── Navigation buttons (campus, language, dark mode) ── */
.nav-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0;
}

.nav-button:hover {
    color: #3b82f6;
}

html.dark .nav-button {
    color: #6b7280;
}

html.dark .nav-button:hover {
    color: #60a5fa;
}

.nav-button i {
    width: 1rem;
    height: 1rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .bottom-nav {
        padding: 0.75rem 1rem;
    }

    main {
        padding: 1rem 0.75rem;
    }
}