:root {
    --bs-primary: #44d62c !important;
    --bs-primary-rgb: 68, 214, 44 !important;
    --bs-link-color: #44d62c !important;
    --bs-link-color-rgb: 68, 214, 44 !important;
    --bs-link-hover-color: #2fb51f !important;
    --bs-link-hover-color-rgb: 47, 181, 31 !important;
    --pe-primary: #44d62c !important;
    --pe-primary-rgb: 68, 214, 44 !important;
}

.btn-primary {
    background-color: #44d62c !important;
    border-color: #44d62c !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #3ab825 !important;
    border-color: #3ab825 !important;
    color: #fff !important;
}
.btn-outline-primary {
    color: #44d62c !important;
    border-color: #44d62c !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #44d62c !important;
    border-color: #44d62c !important;
    color: #fff !important;
}

.page-link {
    color: #44d62c !important;
}
.page-item.active .page-link {
    background-color: #44d62c !important;
    border-color: #44d62c !important;
}

.form-check-input:checked {
    background-color: #44d62c !important;
    border-color: #44d62c !important;
}
.form-check-input:focus {
    border-color: #44d62c !important;
    box-shadow: 0 0 0 0.25rem rgba(68, 214, 44, 0.25) !important;
}

.form-control:focus, .form-select:focus {
    border-color: #44d62c !important;
    box-shadow: 0 0 0 0.2rem rgba(68, 214, 44, 0.15) !important;
}

.nav-tabs .nav-link.active {
    color: #44d62c !important;
    border-bottom-color: #44d62c !important;
}
.nav-tabs .nav-link:hover {
    color: #44d62c !important;
}

.badge.bg-success {
    background-color: #44d62c !important;
}

a {
    color: #44d62c;
}
a:hover {
    color: #2fb51f !important;
}
.btn-link:hover {
    color: #2fb51f !important;
}
.page-link:hover {
    color: #2fb51f !important;
}

/* Light mode */
[data-bs-theme="light"] .btn-primary {
    background-color: #1a1c23 !important;
    border-color: #1a1c23 !important;
    color: #fff !important;
}
[data-bs-theme="light"] .btn-primary:hover, [data-bs-theme="light"] .btn-primary:focus {
    background-color: #2d3039 !important;
    border-color: #2d3039 !important;
    color: #fff !important;
}
[data-bs-theme="light"] .btn-outline-primary {
    color: #1a1c23 !important;
    border-color: #1a1c23 !important;
}
[data-bs-theme="light"] .btn-outline-primary:hover, [data-bs-theme="light"] .btn-outline-primary:focus {
    background-color: #1a1c23 !important;
    border-color: #1a1c23 !important;
    color: #fff !important;
}
[data-bs-theme="light"] a {
    color: #1a1c23;
}
[data-bs-theme="light"] a:hover {
    color: #333 !important;
}
[data-bs-theme="light"] .page-link {
    color: #1a1c23 !important;
}
[data-bs-theme="light"] .page-item.active .page-link {
    background-color: #1a1c23 !important;
    border-color: #1a1c23 !important;
    color: #fff !important;
}
[data-bs-theme="light"] .nav-tabs .nav-link.active {
    color: #1a1c23 !important;
    border-bottom-color: #1a1c23 !important;
}

/* Sidebar always dark */
[data-bs-theme="light"] .pe-app-sidebar,
[data-bs-theme="light"] .pe-app-sidebar-logo,
[data-bs-theme="light"] .pe-app-sidebar-menu,
[data-bs-theme="light"] .pe-main-menu,
[data-bs-theme="light"] .pe-nav-link,
[data-bs-theme="light"] .pe-slide-menu {
    background-color: #1a1c23 !important;
    color: #c9cdd4 !important;
}
[data-bs-theme="light"] .pe-app-sidebar {
    --pe-app-sidebar-bg: #1a1c23;
    --pe-app-sidebar-color: #c9cdd4;
    --pe-app-sidebar-caption-color: #c9cdd4;
    --pe-app-sidebar-menu-item-color: #8a92a6;
    --pe-app-sidebar-menu-item-color-hover: rgba(68, 214, 44, 0.12);
    --pe-app-sidebar-menu-item-color-active: rgba(68, 214, 44, 0.15);
    --pe-app-sidebar-border-color: rgba(255, 255, 255, 0.06);
}
[data-bs-theme="light"] .pe-app-sidebar-logo {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
[data-bs-theme="light"] .pe-nav-link:hover,
[data-bs-theme="light"] .pe-nav-link.active {
    color: #44d62c !important;
}
[data-bs-theme="light"] .pe-nav-icon,
[data-bs-theme="light"] .pe-nav-content,
[data-bs-theme="light"] .pe-nav-arrow {
    color: #c9cdd4 !important;
}
[data-bs-theme="light"] .pe-nav-link:hover .pe-nav-icon,
[data-bs-theme="light"] .pe-nav-link.active .pe-nav-icon,
[data-bs-theme="light"] .pe-nav-link:hover .pe-nav-content,
[data-bs-theme="light"] .pe-nav-link.active .pe-nav-content {
    color: #44d62c !important;
}

/* Admin sidebar stays dark in every admin theme. */
html .pe-app-sidebar,
html .pe-app-sidebar-logo,
html .pe-app-sidebar-menu,
html .pe-main-menu,
html .pe-slide-menu,
html[data-bs-theme="light"] .pe-app-sidebar,
html[data-bs-theme="light"] .pe-app-sidebar-logo,
html[data-bs-theme="light"] .pe-app-sidebar-menu,
html[data-bs-theme="light"] .pe-main-menu,
html[data-bs-theme="light"] .pe-slide-menu,
html[data-bs-theme="dark"] .pe-app-sidebar,
html[data-bs-theme="dark"] .pe-app-sidebar-logo,
html[data-bs-theme="dark"] .pe-app-sidebar-menu,
html[data-bs-theme="dark"] .pe-main-menu,
html[data-bs-theme="dark"] .pe-slide-menu {
    background-color: #070b09 !important;
    background-image: none !important;
    color: #d7ded9 !important;
}

html,
html[data-bs-theme="light"],
html[data-bs-theme="dark"] {
    --pe-app-sidebar-bg: #070b09 !important;
    --pe-app-sidebar-border-color: rgba(68, 214, 44, 0.16) !important;
    --app-sidebar-border-color: rgba(68, 214, 44, 0.16) !important;
    --pe-app-sidebar-caption-color: #ffffff !important;
    --pe-app-sidebar-menu-item-color: #b8c2bc !important;
    --pe-app-sidebar-menu-item-color-hover: #44d62c !important;
    --pe-app-sidebar-menu-item-color-active: #44d62c !important;
}

html .pe-app-sidebar {
    border-inline-end: 1px solid rgba(68, 214, 44, 0.16) !important;
}

html .pe-app-sidebar .pe-nav-link,
html .pe-app-sidebar .pe-nav-icon,
html .pe-app-sidebar .pe-nav-content,
html .pe-app-sidebar .pe-nav-arrow,
html[data-bs-theme="light"] .pe-app-sidebar .pe-nav-link,
html[data-bs-theme="light"] .pe-app-sidebar .pe-nav-icon,
html[data-bs-theme="light"] .pe-app-sidebar .pe-nav-content,
html[data-bs-theme="light"] .pe-app-sidebar .pe-nav-arrow {
    color: #b8c2bc !important;
}

html .pe-app-sidebar .pe-nav-link:hover,
html .pe-app-sidebar .pe-nav-link.active,
html .pe-app-sidebar .pe-nav-link:hover .pe-nav-icon,
html .pe-app-sidebar .pe-nav-link.active .pe-nav-icon,
html .pe-app-sidebar .pe-nav-link:hover .pe-nav-content,
html .pe-app-sidebar .pe-nav-link.active .pe-nav-content,
html .pe-app-sidebar .pe-nav-link:hover .pe-nav-arrow,
html .pe-app-sidebar .pe-nav-link.active .pe-nav-arrow {
    color: #44d62c !important;
}

html .pe-app-sidebar .pe-nav-link:hover,
html .pe-app-sidebar .pe-nav-link.active {
    background: rgba(68, 214, 44, 0.12) !important;
}

html .pe-app-sidebar-logo {
    border-bottom: 1px solid rgba(68, 214, 44, 0.16) !important;
}

/* Remove the two-tone sidebar strip caused by link/submenu backgrounds. */
html #sidebar.pe-app-sidebar,
html #sidebar.pe-app-sidebar .pe-app-sidebar-logo,
html #sidebar.pe-app-sidebar .pe-app-sidebar-menu,
html #sidebar.pe-app-sidebar .simplebar-wrapper,
html #sidebar.pe-app-sidebar .simplebar-mask,
html #sidebar.pe-app-sidebar .simplebar-offset,
html #sidebar.pe-app-sidebar .simplebar-content-wrapper,
html #sidebar.pe-app-sidebar .simplebar-content,
html #sidebar.pe-app-sidebar .pe-main-menu,
html #sidebar.pe-app-sidebar .pe-slide,
html #sidebar.pe-app-sidebar .pe-slide-menu,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .pe-app-sidebar-logo,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .pe-app-sidebar-menu,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .simplebar-wrapper,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .simplebar-mask,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .simplebar-offset,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .simplebar-content-wrapper,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .simplebar-content,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .pe-main-menu,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .pe-slide,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .pe-slide-menu {
    background-color: #070b09 !important;
    background-image: none !important;
}

html #sidebar.pe-app-sidebar .pe-nav-link,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .pe-nav-link {
    background: transparent !important;
    background-color: transparent !important;
    color: #b8c2bc !important;
}

html #sidebar.pe-app-sidebar .pe-nav-link.active,
html #sidebar.pe-app-sidebar .pe-nav-link:hover,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .pe-nav-link.active,
html[data-bs-theme="light"] #sidebar.pe-app-sidebar .pe-nav-link:hover {
    background: rgba(68, 214, 44, 0.13) !important;
    background-color: rgba(68, 214, 44, 0.13) !important;
}
