/**
 This file should contain bootstrap specific styling and variable overrides.
 */

.pretty .state label {
    height: 16px;
}

/* region Colors */
.text-bg-primary {
    color: var(--zf-accent-foreground) !important;
    background-color: var(--zf-accent) !important;
}
/* endregion */

/* region global HTML */
a {
    /*color: var(--zf-accent);*/
    text-decoration: none;
}

/*a:hover {*/
/*    color: var(--zf-accent-dark);*/
/*}*/
/* endregion */

/* region Form inputs */
.form-control, .form-select {
    --bs-border-color: transparent;
    border: none;
    background-color: var(--zf-form-background);
    font-weight: 500;
    /*letter-spacing: 1px;*/
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: var(--bs-border-radius-lg);
}

.form-control:focus, .form-select:focus {
    background-color: var(--zf-form-background);
    box-shadow: none;
}

.form-control.is-invalid:focus, .form-select.is-invalid:focus {
    box-shadow: none;
}

.input-group {
    transition: box-shadow .15s ease-in-out;
    border-radius: var(--bs-border-radius-lg);
}

.input-group > .input-group-text:is(:first-child) {
    padding-right: 1px;
}

.input-group > .input-group-text:is(:last-child) {
    padding-left: 1px;
}

.input-group:has(.form-control:focus), .input-group:has(.form-select:focus) {
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

.input-group:has(.form-control.is-invalid:focus), .input-group:has(.form-select.is-invalid:focus) {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb),.25);
}

.input-group:has(.form-control.is-invalid), .input-group:has(.form-select.is-invalid) {
    border: 1px solid var(--bs-danger);
}

.input-group-text {
    background-color: var(--zf-form-background);
    border: none;
    border-radius: var(--bs-border-radius-lg);
}

.input-group-text > img {
    max-width: 1.6rem;
}

.input-group>.dropdown-toggle:nth-last-child(n+3), .input-group>.form-floating:not(:last-child)>.form-control, .input-group>.form-floating:not(:last-child)>.form-select, .input-group>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.35); /*var(--bs-secondary-color);*/
    font-weight: 400;
}

.form-control[type=file]::-webkit-file-upload-button {
    display: none;
}

.input-group-text {
    color: var(--zf-input-group-color);
}
/* endregion */

.form-label {
    font-weight: 400;
    color: var(--bs-secondary-color);
}

.btn + .btn {
    margin-inline-start: 0.5rem;
}

/* region Badge */
.badge {
    /* top: -1px; */
    position: relative;
    font-weight: 400;
}
/* endregion */

/* region Tooltips */
.tooltip-inner {
    font-weight: 300;
    font-size: 0.8rem;
}
/* endregion */

/* region Carousel */
.carousel-item {
    transition: transform .35s ease-in-out;
}
/* endregion */

/* region Table */
.table {
    --bs-table-bg: transparent;
}

.table>:not(caption)>*>* {
    padding: 0.75rem 0.5rem;
}
/* endregion */

/* region Keyboard */
kbd {
    border-bottom: 2px solid var(--bs-primary-text-emphasis);
    background: var(--bs-primary);
}
/* endregion */

/* region Pager */
.pagination {
    --bs-pagination-color: var(--bs-black);
    --bs-pagination-focus-box-shadow: none;
    --bs-pagination-active-color: var(--zf-accent-foreground);
    --bs-pagination-hover-color: var(--bs-black);
    --bs-pagination-active-bg: var(--zf-accent);
    --bs-pagination-active-border-color: var(--zf-accent);
    --bs-pagination-focus-color: var(--zf-accent-dark);
}
/* endregion */

/* region Lead text */
.lead {
    color: var(--bs-secondary-color);
}
/* endregion */

/* region Mark */
mark {
    border-radius: 0.5rem;
    padding-block: 0.1rem;
    padding-inline: 0.2rem;
    color: inherit;
}
/* endregion */

/* region Buttons */
.btn {
    --bs-btn-border-radius: 0.75rem;
    /*--bs-btn-font-weight: 300;*/
}

.btn.btn-sm {
    --bs-btn-border-radius: 0.6rem;
    --bs-btn-font-size: 0.8rem;
    --bs-btn-font-weight: 300;
}

/* endregion */

/* region vertical rule */
.vr {
    padding: 0; /* When used inside stacks */
}
/* endregion */
