/* --- Modern Mode Styles --- */
body.modern-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.modern-mode header {
    background: #242424;
    color: #ffffff;
    border-bottom: 1px solid #333;
    padding: 1.5rem 0;
}

body.modern-mode nav {
    background: transparent;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
}

body.modern-mode nav ul li a {
    color: #e0e0e0;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 20px;
    padding: 8px 15px;
}

body.modern-mode nav ul li a:hover {
    background: #007aff;
    color: #ffffff;
}

body.modern-mode main {
    background: #242424;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 12px;
}

body.modern-mode h1, body.modern-mode h2 {
    color: #ffffff;
}

body.modern-mode a {
    color: #007aff;
}

body.modern-mode a:hover {
    color: #0056b3;
}

body.modern-mode .content-section {
    border-bottom: 1px solid #333;
}

body.modern-mode footer {
    color: #888;
    border-top: 1px solid #333;
}

/* Style for the modern mode toggle button */
#modern-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 2000;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#modern-mode-toggle:hover {
    background-color: #007aff;
}
