/* Minimal navbar styling - let LaTeX.css handle content */

/* Sticky Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 80ch;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-home {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B0000;
    text-decoration: none;
    padding: 1rem 0;
}

.nav-home:hover {
    color: #b91c1c;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #8B0000;
    text-decoration: none;
    padding: 1rem 0;
    display: block;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:visited {
    color: #8B0000;
}

.nav-links a:hover {
    color: #b91c1c;
    text-decoration: none;
}

/* Add padding to account for fixed navbar - LaTeX.css handles the rest */
body {
    padding-top: 60px !important;
}

/* Dark Mode Toggle Button */
.dark-mode-btn {
    background: none;
    border: 1px solid #8B0000;
    color: #8B0000;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s;
    line-height: 1;
}

.dark-mode-btn:hover {
    background-color: #8B0000;
    color: white;
}

/* Dark mode navbar styles */
.latex-dark .navbar {
    background-color: #1a1a1a;
    border-bottom-color: #333;
}

.latex-dark .nav-home,
.latex-dark .nav-links a {
    color: #e5e5e5;
}

.latex-dark .nav-home:hover,
.latex-dark .nav-links a:hover {
    color: #ffffff;
}

.latex-dark .dark-mode-btn {
    border-color: #e5e5e5;
    color: #e5e5e5;
}

.latex-dark .dark-mode-btn:hover {
    background-color: #e5e5e5;
    color: #1a1a1a;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        margin-top: 0.5rem;
    }
}
