/*
 | Reference-derived colour overlay -- GENERATED, do not hand-edit.
 |
 | For every selector this theme shares with the reference design, the
 | reference's colour decisions are restated here. Layout is untouched.
 | Regenerate with scratchpad/theme_overlay.php.
 */

body {
    color: hsl(var(--body-color));
}

a {
    color: hsl(var(--info));
}

.text-muted {
    color: hsl(var(--black) / 0.6) !important;
}

.body-overlay {
    background-color: hsl(var(--black) / 0.6);
}

.gradient-text {
    background-image: linear-gradient(
    180deg,
    hsl(var(--base-d-200)) 0%,
    hsl(var(--base)) 100%
  );
}

.sidebar-overlay {
    background-color: hsl(var(--black) / 0.6);
}

.custom--accordion .accordion-item {
    border: 1px solid hsl(var(--black) / 0.05);
    background-color: hsl(var(--section-bg)) !important;
}

.custom--accordion .accordion-body {
    color: hsl(var(--body-color));
}

.custom--accordion .accordion-button {
    background-color: transparent;
}

.custom--accordion .accordion-button:not(.collapsed) {
    background-color: transparent !important;
}

.btn--light {
    border: 1px solid hsl(var(--border-color));
    background: hsl(var(--section-bg));
    color: hsl(var(--dark)) !important;
}

.btn-outline--dark {
    background-color: transparent !important;
    border: 1px solid hsl(var(--dark)) !important;
    color: hsl(var(--dark)) !important;
}

.custom--card {
    background-color: hsl(var(--white));
    border: 0;
    box-shadow: -1px 0px 9px hsl(var(--black) / 0.1);
}

.custom--card .card-header {
    background-color: hsl(var(--white));
}

.custom--card .card-body {
    background-color: hsl(var(--white));
}

.form--label {
    color: hsl(var(--heading-color));
}

.form--control {
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--black));
}

.form--control::-webkit-input-placeholder {
    color: hsl(var(--body-color) / 0.65);
}

.form--control::-moz-placeholder {
    color: hsl(var(--body-color) / 0.65);
}

.form--control:-ms-input-placeholder {
    color: hsl(var(--body-color) / 0.65);
}

.form--control::-ms-input-placeholder {
    color: hsl(var(--body-color) / 0.65);
}

.form--control::placeholder {
    color: hsl(var(--body-color) / 0.65);
}

.form--control:disabled,
.form--control[readonly] {
    background-color: hsl(var(--black) / 0.1);
}

.password-show-hide {
    color: hsl(var(--black) / 0.4);
}

.form--check .form-check-input {
    border: 1px solid hsl(var(--black) / 0.2);
}

.form--radio .form-check-input {
    border: 1px solid hsl(var(--black) / 0.2);
}

.form--switch .form-check-input {
    background-color: hsl(var(--black) / 0.2) !important;
}

.input-group {
    border: 1px solid hsl(var(--border-color));
}

.input-group-text::after {
    background-color: hsl(var(--border-color));
}

.input-group .form--control[readonly] {
    background: transparent !important;
}

.input-group .form--control[readonly]:focus {
    border-color: hsl(var(--black) / 0.1);
}

.input-group:has(.form--control[readonly]) {
    background: hsl(var(--black) / 0.1) !important;
}

.input-group:has(.form--control[readonly]):focus-within {
    border-color: hsl(var(--black) / 0.1) !important;
}

.custom--modal .modal-header {
    border-bottom: 1px solid hsl(var(--border-color) / 0.5);
}

.custom--modal .modal-header .btn-close:hover {
    color: hsl(var(--dark)) !important;
    border-color: hsl(var(--dark));
}

.custom--modal .modal-content {
    background-color: hsl(var(--white));
    border: 0;
}

.custom--modal .modal-footer {
    border-top: 1px solid hsl(var(--border-color) / 0.5);
}

.pagination .page-item .page-link {
    border: 1px solid hsl(var(--black) / 0.15);
}

.table thead tr th {
    background-color: hsl(var(--section-bg));
    color: hsl(var(--heading-color));
}

.table tbody {
    background-color: hsl(var(--white));
}

.table tbody tr td {
    color: hsl(var(--body-color));
    border-bottom: 1px solid hsl(var(--black) / 0.1);
}

.table tbody tr td::before {
    color: hsl(var(--black));
}

.empty-data .text {
    color: hsl(var(--base-two) / 0.5);
}

.empty-message-text {
    color: hsl(var(--black) / 0.3);
}

.custom--tab .nav-item .nav-link {
    background: hsl(var(--shape-bg));
    border: 1px solid hsl(var(--black) / 0.1);
    color: hsl(var(--heading-color));
}

.badge {
    background-color: hsl(var(--badge-color) / 0.1);
}

.alert {
    background-color: hsl(var(--white));
    border: 1px solid hsl(var(--black) / 0.05);
    border-left: 3px solid hsl(var(--alert-color));
}

.alert__icon {
    background: hsl(var(--alert-color));
    color: hsl(var(--white));
    box-shadow: 0 0 0 3px hsl(var(--white)),
    0 0 0 6px hsl(var(--alert-color) / 0.5), 0 0 0 9px hsl(var(--white)),
    0 0 0 12px hsl(var(--alert-color) / 0.15);
}

.modal .table-search .icon {
    background-color: hsl(var(--base) / 0.1);
}

.payment-balance {
    background: hsl(var(--base) / 0.05);
}

.header.fixed-header {
    background-color: hsl(var(--white));
    border-bottom: 1px solid hsl(var(--black) / 0.1);
}

.header .navbar-toggler.header-button {
    color: hsl(var(--black));
}

.lang-box-btn {
    color: hsl(var(--black));
}

.lang-box-btn .text {
    color: hsl(var(--black));
}

.lang-box-btn .icon {
    color: hsl(var(--black));
}

.lang-box-link:hover {
    background-color: hsl(var(--black) / 0.05);
    color: hsl(var(--black));
}

.dropdown-menu {
    border: 1px solid hsl(var(--black) / 0.1);
    background-color: hsl(var(--white));
}

.header .offcanvas-header {
    background-color: hsl(var(--white));
}

.footer-item__title {
    color: hsl(var(--white));
}

.footer-item__desc {
    color: hsl(var(--white) / 0.7);
}

.footer-menu__link {
    color: hsl(var(--white));
}

.footer-contact__info .text {
    color: hsl(var(--white));
}

.bottom-footer {
    background: hsl(var(--white) / 0.1);
}

.social-list__link {
    background-color: hsl(var(--white) / 0.1);
}

.blog-sidebar {
    background-color: hsl(var(--section-bg));
}

.blog-sidebar__title {
    color: hsl(var(--white));
    background-color: hsl(var(--base));
}

.banner-section {
    background: hsl(var(--base) / 0.08);
}

.banner-content__title {
    color: hsl(var(--heading-color));
}

.calculator-wrapper {
    background-color: hsl(var(--shape-bg));
    border: 1px solid hsl(var(--base));
}

.dashboard .sidebar-menu {
    background-color: hsl(var(--heading-color));
}

.dashboard .sidebar-menu::-webkit-scrollbar-thumb {
    background-color: hsl(var(--white) / 0.15);
}

.dashboard .sidebar-menu-list__link {
    color: hsl(var(--white));
}

.dashboard .sidebar-menu-list__link:hover {
    background-color: hsl(var(--white) / 0.05);
    color: hsl(var(--base));
}

.dashboard .sidebar-submenu-list__link {
    color: hsl(var(--white));
}

.dashboard .sidebar-submenu-list__link::before {
    border: 2px solid hsl(var(--white));
}

.select2-container--default .select2-results__option--selected {
    background-color: hsl(var(--black) / 0.05);
}

.select2-dropdown {
    border: 1px solid hsl(var(--black) / 0.2);
}

.select2-results__option {
    color: hsl(var(--black));
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid hsl(var(--select-border));
    color: hsl(var(--black));
}

.select2-results__options::-webkit-scrollbar-thumb {
    background-color: hsl(var(--black) / 0.2);
}

.slick-arrow {
    border: 2px solid hsl(var(--body-color));
    color: hsl(var(--body-color));
    background-color: transparent;
}

.slick-arrow:hover {
    color: hsl(var(--white));
}

.social-auth__title {
    color: hsl(var(--base-two));
}

.social-auth__link:hover {
    background-color: hsl(var(--base));
}

.dashboard {
    background-color: #eee;
}

.dashboard-header {
    background-color: hsl(var(--base));
}

.user-info {
    border-left: 1px solid #e8e9eb;
}

.user-info-content .name {
    color: hsl(var(--white));
}

.user-info-arrow {
    color: hsl(var(--white));
}

.user-dropdown .devide {
    border-top: 1px solid hsl(var(--border-color) / 0.5);
}


/*
 | Dark-fork corrections -- hand written.
 |
 | The overlay above fixes every component the reference also describes. What is
 | left is this theme's own furniture: plan cards, the referral tree, dashboard
 | widgets, the calculator. The reference never drew those, so they still carry
 | the decisions of the dark skin they were forked from, and on a white page
 | white ink is no ink at all.
 |
 | Each rule below was reached by resolving what ground the element actually
 | sits on after the palette flip. Anything that turned out to sit on the base
 | green, on the dark sidebar, on the black breadcrumb or on the footer was
 | deliberately left alone -- white is still correct there.
 */

/* ---------- forms ---------- */

/* Password fields inherited light ink meant for a dark card. */
.form--control[type=password],
.form--control[type=password]:focus {
    color: hsl(var(--black));
}

/* The accordion's plus/minus glyph, now over a near-white panel. */
.custom--accordion .accordion-button[aria-expanded=true]::after,
.custom--accordion .accordion-button[aria-expanded=false]::after {
    color: hsl(var(--heading-color));
}

/* An outline button keeps its own colour; only the dark skin forced white. */
.table .btn-outline--secondary {
    color: hsl(var(--secondary)) !important;
}

/* ---------- header ---------- */

/*
 | The header ground turned white with the rest of the theme, so the login and
 | register links and the divider between them had to come down with it. The
 | round icon is left alone: it fills itself with the base green and keeps the
 | white glyph main.css already gives it.
 */
.auth-btn-link {
    color: hsl(var(--heading-color));
}

.auth-btn-link.login-btn::before {
    background-color: hsl(var(--border-color));
}

/* ---------- listings and pagination ---------- */

.pagination-wrapper p {
    color: hsl(var(--body-color)) !important;
}

.pagination-wrapper p span {
    color: hsl(var(--heading-color)) !important;
}

.list--group .list-group-item {
    color: hsl(var(--body-color));
}

/* ---------- home sections ---------- */

.feature-card-desc {
    color: hsl(var(--body-color));
}

.why-choose-item .title {
    color: hsl(var(--heading-color));
}

.how-work-card__desc {
    color: hsl(var(--body-color));
}

.calculator-result-item .title,
.calculator-result-item .value {
    color: hsl(var(--heading-color));
}

.customer__text {
    color: hsl(var(--body-color));
}

.testimonial-item-desc,
.testimonial-item-auth .address {
    color: hsl(var(--body-color));
}

.testimonial-item-rating .value {
    color: hsl(var(--heading-color));
}

/*
 | The ranking cards were a translucent white wash over a black page, which on
 | a white page is no card at all. A tint of the base green gives them an edge
 | again without introducing a colour the theme does not already use.
 */
.top-investor-item {
    background-color: hsl(var(--base) / 0.06);
}

.top-investor-item::before {
    background-color: hsl(var(--white));
}

.top-investor-item .title {
    color: hsl(var(--body-color));
}

/* ---------- plans ---------- */

/*
 | --this-bg is the plan card's own ground, hard-coded to a dark navy by the
 | fork. It is the only place the card's colour is set, so it flips here.
 */
.plan-card {
    --this-bg: 0 0% 100%;
    border: 1px solid hsl(var(--border-color));
}

.plan-card-info .value .text {
    color: hsl(var(--heading-color));
}

/* ---------- blog ---------- */

.blog-item,
.blog-sidebar-wrapper {
    border: 1px solid hsl(var(--border-color));
}

.latest-blog__date,
.blog-details__date,
.blog-details__desc {
    color: hsl(var(--body-color));
}

/*
 | The sidebar heading sat on a dark panel. The reference fills its equivalent
 | with the base green, so it keeps white ink and gains a ground.
 */
.blog-sidebar-wrapper__title {
    background-color: hsl(var(--base));
    color: hsl(var(--white));
}

/* ---------- contact and auth ---------- */

.contact-card,
.contact-form,
.quote-text {
    border: 1px solid hsl(var(--border-color));
}

.contact-card__desc,
.account-form__desc {
    color: hsl(var(--body-color));
}

.social-auth__title .text {
    color: hsl(var(--body-color));
}

/* The "or continue with" divider was a hard-coded dark green. */
.another-login .text {
    background: hsl(var(--base-two));
    color: hsl(var(--white));
}

/* ---------- dashboard ---------- */

.dashboard-widget {
    border: 1px solid hsl(var(--border-color));
}

.dashboard-widget-title {
    color: hsl(var(--body-color));
}

/*
 | The referral tree's resting state is a light panel now, so its labels take
 | heading ink. The hover state fills with the base green and keeps white.
 */
.referral__level__item__inner .referral__level__name,
.referral__level__item__inner .referral__level__profit,
.referral__level__item__inner .referral__level__content {
    color: hsl(var(--heading-color));
}

.referral__tooltip {
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--body-color));
}

/* ---------- footer ---------- */

/*
 | The rule under each footer heading faded from the base green into the page
 | ground. That ground is now white, so it faded into a bright line across a
 | dark footer; base-two is the footer's own colour.
 */
.footer-item__title::before {
    background: linear-gradient(
        90deg,
        hsl(var(--base)) 0.04%,
        hsl(var(--base-two)) 71%
    );
}

/*
 | Deliberately not corrected: .how-work-card__title, .top-investor-item .count,
 | .contact-form__subtitle and .auth-btn-link .icon each paint themselves a
 | base-green ground, so the white ink main.css gives them is correct. They
 | look like plain text on a light card only if you match flat backgrounds and
 | miss the gradients.
 */

/*
 | The card title.
 |
 | The reference styles this selector too, but sets only its margin -- it never
 | names a colour, so there was nothing for the generated overlay to import and
 | the fork's white title survived onto a card that is now white. Invisible
 | headings on every dashboard card, and nothing about the page looks wrong.
 */
.custom--card .card-title {
    color: hsl(var(--heading-color));
}

/* ---------- ink that changed meaning when the tokens flipped ---------- */

/*
 | Both of these paint a variable onto the base green, and both were legible
 | until the variable itself changed underneath them.
 |
 | The file button asks for --body-color, which was white in the dark fork and
 | is grey here. The widget button asks for --base, which has always been the
 | green it is drawn on. Neither rule mentions a colour that looks wrong.
 */
.form--control[type=file]::file-selector-button,
.form--control[type=file]::-webkit-file-upload-button {
    color: hsl(var(--white)) !important;
}

.dashboard-widget-btn {
    color: hsl(var(--white));
}
