body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

#dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 9999;
}

body.dark-mode {
    --docspress--navigation--link--color: #bbbbbb;
    --docspress--navigation--link--font-weight: 500;
    --docspress--navigation--link--padding: 10px 15px;
    --base-3: #121212;
    /* Background for containers */
}

body.dark-mode .docspress-nav-list a {
    color: var(--docspress--navigation--link--color);
    font-weight: var(--docspress--navigation--link--font-weight);
    padding: var(--docspress--navigation--link--padding);
    text-decoration: none;
}

body.dark-mode .separate-containers .inside-article,
body.dark-mode .separate-containers .comments-area,
body.dark-mode .separate-containers .page-header,
body.dark-mode .one-container .container,
body.dark-mode .separate-containers .paging-navigation,
body.dark-mode .inside-page-header {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode p.docpress-category-description {
    font-size: 15px;
    color: #e0e0e0;
    letter-spacing: 0.5px;
}

body.dark-mode .main-title a,
body.dark-mode .main-title a:hover {
    color: #e0e0e0;
}

body.dark-mode .docspress-single-breadcrumbs a {
    color: #e0e0e0;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="url"],
body.dark-mode input[type="password"],
body.dark-mode input[type="search"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="number"],
body.dark-mode textarea,
body.dark-mode select {
    color: #e0e0e0;
    background-color: var(--base-2);
    background-color: #121212;
}

body.dark-mode .docspress-single-articles a {
    color: #2196F3;
}

body.dark-mode .main-navigation ul .sub-menu {
    background-color: #121212;
}

/* Toggle container */
#themeSwitch {
    /* position: fixed;
    top: 20px; */
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

/* Sun & Moon icons */
.icon-sun,
.icon-moon {
    color: #f5f5f5;
}

/* Hide the checkbox but keep it clickable */
.checkbox {
    opacity: 0;
    width: 64px;
    height: 55px;
    position: absolute;
    top: -10px;
    left: 0;
    z-index: 2;
    cursor: pointer;
}

/* Switch container */
.button {
    position: relative;
    width: 60px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    transition: background 0.3s ease;
}

/* Knob element */
.knobs {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.3s ease;
    z-index: 1;
}

/* Move knob when checked */
.checkbox:checked+.knobs {
    left: 37px;
}

/* Label container */
.label-light,
.label-dark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: bold;
    color: #333;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Light label (default) */
.label-light {
    left: 25px;
    opacity: 1;
}

/* Dark label (hidden by default) */
.label-dark {
    right: 25px;
    opacity: 0;
}

/* When dark mode is active */
body.dark-mode .button {
    background: #444;
}

body.dark-mode .knobs {
    background: #222;
}

body.dark-mode .label-light {
    opacity: 0;
}

body.dark-mode .label-dark {
    opacity: 1;
    color: #eee;
}

/* Optional icon styling */
i.fas {
    font-size: 24px;
    margin-bottom: 8%;
}

body.dark-mode .docspress-btn {
    background-color: #008f4f;
    color: #f0f0f0;
    border: 1px solid #008f4f;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .docspress-btn:hover {
    background-color: #444;
    /* Slightly lighter on hover */
    color: #ffffff;
    border-color: #666;
}

body.dark-mode .main-navigation ul .sub-menu li a {
    background-color: #444;
    color: #f0f0f0 ! important;
}

body.dark-mode .main-navigation .main-nav ul ul li[class*="current-menu-"]>a {
    color: #008f4f ! important;
    background-color: #444 ! important;
}

body.dark-mode .main-navigation .main-nav ul li[class*="current-menu-"]>a {
    color: #f0f0f0 ! important;
}

body.dark-mode .docspress-single-breadcrumbs .delimiter {
    opacity: .2;
    color: #f0f0f0 ! important;
}

/* Tablet view (768px and below) */
@media (max-width: 980px) {
    .button {
        opacity: 0;
    }

    i.fas.fa-sun {
        opacity: 0;
    }

    i.fas.fa-moon {
        margin-left: -11%;
    }

    div#google_translate_element {
        display: none;
    }
}