/* --- Beautified from common.css --- */

:root {
    --light-bg: #f8f9fa;
    --light-text: #333;
    --light-primary: #2c3e50;
    --light-secondary: #7f8c8d;
    --light-container-bg: white;
    --light-highlight: #3498db;
    --dark-bg: #222831;
    --dark-text: #e0e0e0;
    --dark-primary: #f0f0f0;
    --dark-secondary: #a0a0b0;
    --dark-container-bg: #393E46;
    --dark-highlight: #3498db;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--light-text);
    margin: 0;
    padding: 0;
    transition: background-color .3s, color .3s;
}

.nav-brand-text,
.nav-links li a.active,
.site-footer a {
    font-weight: 700;
}

.navbar {
    background-color: var(--light-primary);
    padding: 15px 30px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transition: background-color .3s;
}

.nav-left,
.nav-links {
    gap: 25px;
    display: flex;
    align-items: center;
}

.nav-brand a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 32px;
    width: auto;
    transition: height .3s;
}

.nav-brand-text {
    font-size: 1.5rem;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px 8px;
    font-weight: 500;
    background-color: transparent;
    transition: color .3s, text-shadow .3s;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-highlight);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease-out;
}

.nav-links li a.active,
.nav-links li a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 71, 171, .5);
}

.nav-links li a.active::after,
.nav-links li a:hover::after {
    transform: scaleX(1);
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    right: 0;
    top: 0;
    border-radius: 24px;
}

.slider,
.slider:before {
    position: absolute;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 2px;
    content: "";
    height: 20px;
    left: 2px;
    width: 20px;
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 24 24"><path fill="%23f39c12" d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.64 5.64c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L5.64 5.64zm12.72 12.72c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-1.06-1.06zM18.36 5.64l-1.06 1.06c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l1.06-1.06c.39-.39.39-1.02 0-1.41-.39-.39-1.02-.39-1.41 0zM6.7 17.3c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-1.06-1.06c-.39-.39-1.02-.39-1.41 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

input:checked+.slider {
    background-color: var(--dark-highlight);
}

input:checked+.slider:before {
    transform: translateX(26px);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 24 24"><path fill="%23f1c40f" d="M11.23 2.51c.42-.13.86-.13 1.28 0 3.99 1.27 6.49 5.32 5.22 9.32-1.27 3.99-5.32 6.49-9.32 5.22-3.99-1.27-6.49-5.32-5.22-9.32 1.27-3.99 5.32-6.49 9.32-5.22zm-2.09 13.56c.79.44 1.73.44 2.52 0 .53-.29.83-.88.7-1.48-.13-.6-.62-1.09-1.22-1.22-.6-.13-1.19.17-1.48.7-.29.53-.29 1.19 0 1.73.18.32.49.53.83.67z"/></svg>');
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode .navbar {
    background-color: var(--dark-container-bg);
}

.site-footer {
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
    background-color: #e9ecef;
    color: var(--light-secondary);
    font-size: .9rem;
    border-top: 1px solid #dee2e6;
    transition: background-color .3s, color .3s;
}

.site-footer a {
    color: var(--light-primary);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

body.dark-mode .site-footer {
    background-color: #2c3138;
    color: var(--dark-secondary);
    border-top: 1px solid var(--dark-container-bg);
}

body.dark-mode .site-footer a {
    color: var(--dark-primary);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: .3s ease-in-out;
}

.hamburger-menu.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .nav-brand-text {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        background-color: var(--light-primary);
        box-shadow: -3px 0 10px rgba(0, 0, 0, .2);
        transition: right .3s ease-in-out;
        gap: 0;
        padding-top: 80px;
    }

    body.dark-mode .nav-links {
        background-color: var(--dark-container-bg);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links li a {
        display: block;
        padding: 20px 30px;
        font-size: 1.2rem;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .nav-links li a::after {
        left: 30px;
        width: calc(100% - 60px);
    }

    .hamburger-menu {
        display: flex;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: sticky;
    }

    .nav-left {
        flex-direction: row;
        gap: 25px;
        width: auto;
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .nav-logo {
        height: 40px;
    }
}