/** CSS for adding scroll bar to the top of each page */
#sapmfly-progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 9999;
}

#sapmfly-progress-bar {
    height: 100%;
    background: #4CAF50;
    width: 0%;
}

#sapmfly-close-bar {
    position: fixed;
    top: 5px;
    right: 10px;
    background: #f44336;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    z-index: 10000;
}

/* CSS for scroll to top button */
#sapmfly-back-to-top {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.2s ease;
}

#sapmfly-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#sapmfly-back-to-top:hover {
    background-color: #419f44;
    transform: scale(1.1);
}

/* Front end dark mood related CSS goes here */
#sapmfly-dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #2d2d2d;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

#sapmfly-dark-mode-toggle:hover {
    background: #444;
}

body.sapmfly-dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.sapmfly-dark-mode a {
    color: #9ecbff !important;
}