.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.card {
    box-shadow: 0px 2px 20px 0px rgb(193 193 193 / 20%);
}

.card-header {
    border-bottom: 1px solid #eee;
}

/* input style */
.form-label {
    margin-bottom: 0px;
}

.form-control {
    padding-inline: 12px;
    padding-block: 7px;
    background-color: var(--color-light);
    border-color: var(--color-gray-200);
    border-radius: 6px;

    &:is(:focus, :focus-visible) {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: none;
    }

    &::placeholder {
        color: var(--color-gray-300);
        font-size: 15px;
    }
}

/* checkbox */
.form-check-input {
    &:is(:focus, :focus-visible) {
        outline: none;
        border: none;
        box-shadow: none;
    }

    &:checked {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
    }
}

.dropdown-menu[data-bs-popper] {
    margin-top: 10px;
}

.dropdown-item {
    color: var(--color-dark);

    &:is(:hover, :focus, :focus-visible, :active, :first-child:active) {
        background-color: var(--color-primary);
        color: var(--color-light);
    }
}

.navbar-toggler {
    border: none;

    &:is(:hover, :focus, :focus-visible, :active, :first-child:active) {
        box-shadow: none;
    }
}

/* pagination */
.page-link {
    color: var(--color-dark);
    border-color: var(--color-gray-50);
    border-radius: 4px;
}

.page-link:focus,
.page-link:hover {
    color: var(--color-primary);
    background-color: var(--color-secondary-100);
    box-shadow: none;
}

.active>.page-link,
.active>.page-link:hover,
.page-link.active,
.page-link.active:hover {
    border-color: var(--color-primary);
    background-color: var(--color-secondary-100);
    color: var(--color-primary);
}


/* accordion */

.accordion-item:not(:first-of-type) {
    border-top: 1px solid var(--color-gray-100);
}

.accordion-item {
    border: 1px solid var(--color-gray-100);
    border-radius: 8px;
    overflow: hidden;

    &:not(:last-child) {
        margin-block-end: 16px;
    }
}

.accordion-item:first-of-type .accordion-button {
    border-radius: 0;
}

.accordion-button:not(.collapsed) {
    background-color: unset;
    box-shadow: none;
    border: none;
}

.accordion-button {
    color: var(--color-dark);
    border: none;

    &:is(:hover, :focus, :focus-visible, :active, :first-child:active) {
        box-shadow: none;
    }

    &::after {
        display: none;
    }
}

ol, ul {
    padding-right: 0;
}
