* {
    box-sizing: border-box;
}

:root {
    --white-color: #fff;
    --grey-color: #c3c3c3;
    --black-color: #000;
    --primary-color: #0f7dcd;
    --success-color: #1bd465;
    --danger-color: #f0360d;
    --danger-bright-color: rgba(255, 63, 63, 0.3);
    --bg-color: #dde9f1;
    --bg-input-color: #edf2f5;
}

.col-2-4,
.col-sm-2-4,
.col-md-2-4,
.col-lg-2-4,
.col-xl-2-4,
.col-xxl-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

.offset-2-4,
.offset-sm-2-4,
.offset-md-2-4,
.offset-lg-2-4,
.offset-xl-2-4,
.offset-xxl-2-4 {
    margin-left: 20%;
}
html,
body {
    scroll-behavior: smooth;
}
html {
    font-size: 62.5%;
}
body {
    font-family: Inter;
}
a {
    text-decoration: none;
}
textarea {
    resize: none;
}
#toast-container > .toast-success {
    background-image: linear-gradient(#04a2e0, var(--primary-color)) !important;
}
#toast-container > div {
    padding: 15px;
    background-position: 0 center;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}
.bg-success {
    background-color: var(--success-color) !important;
}
.bg-danger {
    background-color: var(--danger-color) !important;
}
.bg-danger-bright {
    background-color: var(--danger-bright-color) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.text-success {
    color: var(--success-color) !important;
}
.text-danger {
    color: var(--danger-color) !important;
}
.btn-success {
    min-width: 100px;
    height: 50px;
    flex-shrink: 0;
    border: none;
    border-radius: 5px;
    background: var(--success-color) !important;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}
.btn-primary {
    min-width: 100px;
    height: 50px;
    flex-shrink: 0;
    border: none;
    border-radius: 5px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}
.btn-primary__small {
    height: 35px;
    padding: 12px 16px;
    border-radius: 180px;
    font-size: 1rem;
    line-height: 1;
    margin-right: 9px;
}
.btn-secondary {
    min-width: 100px;
    height: 50px;
    flex-shrink: 0;
    border: none;
    background: #dde9f1;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}
.btn-warning {
    min-width: 100px;
    height: 50px;
    flex-shrink: 0;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    line-height: 1;
}
.btn-danger,
.btn-delete {
    min-width: 100px;
    height: 50px;
    flex-shrink: 0;
    border: none;
    border-radius: 5px;
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}
.btn-danger:hover,
.btn-delete:hover {
    background: #bb2d3b;
    border-color: #b02a37;
    color: #fff;
}
.btn-submit {
    min-width: 204px;
}
.btn-link {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-family: Inter;
    text-decoration: none;
}
.btn-back {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 5px;
    bottom: 0;
    padding: 15px;
    color: #21272a;
}
.form-group {
    margin-bottom: 13px;
}
.form-group.form-group-sm {
    margin-bottom: 10px;
}
.form-label {
    color: var(--black-color);
    font-size: 1.2rem;
}
.form-control {
    height: 50px;
    border-radius: 5px;
    font-size: 1.2rem;
    background: var(--bg-input-color);
}
.form-control.form-control-sm {
    height: 38px;
}
textarea.form-control {
    min-height: 100px;
}
.form-control-date {
    padding-left: 24px;
}
.form-control-title {
    color: var(--black-color);
    font-size: 1.2rem;
    font-weight: 500;
}
.form-control::placeholder {
    color: #bfbfbf;
    font-size: 1.2rem;
}
.form-control.form-control-plaintext {
    background-color: transparent;
}
.form-control.form-control-plaintext:focus {
    box-shadow: none;
    border: none;
}

.input-group .form-control {
    padding-left: 3px;
    border-left: none;
    border-radius: 5px;
}
.input-group .form-control.is-invalid {
    border-left: 1px solid var(--bs-form-invalid-border-color);
}
.form-group:has(.input-suffix-text) {
    position: relative;
    flex-wrap: wrap;
}
.form-control + .input-suffix-text {
    position: absolute;
    right: 24px;
    color: var(--black-color);
    font-size: 1.2rem;
}
.form-control.is-invalid + .input-suffix-text {
    transform: translateY(-6.5px);
}
.input-group .form-control::placeholder {
    color: #bfbfbf;
    font-size: 1.2rem;
}
.input-group .input-group-text {
    height: 50px;
    padding: 0.375rem 18px 0.375rem 21px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    background-color: var(--bg-input-color);
    border-right: none;
}

.input-group .input-group-text .input-icon {
    width: 14px;
}

.icon-danger {
    width: 12px;
    height: 12px;
    background: var(--danger-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 6px;
}
.icon-success {
    width: 11px;
    height: 11px;
    background: #21d96b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 6px;
}

/* Datepicker */
.dtpicker-buttonCont {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}
.datetimepicker-wrap {
    display: flex;
    align-items: center;
}
.datetimepicker-input {
    position: relative;
    flex-grow: 1;
    text-align: center;
    color: var(--black-color);
    font-size: 1.2rem;
    font-weight: 500;
}
.datetimepicker-input:before {
    position: absolute;
    content: "\f073";
    color: var(--primary-color);
    font-size: 14px;
    font-family: "Font Awesome 5 Pro";
    top: 50%;
    left: calc(50% - 32px);
    transform: translate(-50%, -50%);
}
.datetimepicker-icon {
    cursor: pointer;
    padding: 20px;
    font-size: 1.2rem;
}
#liveToast {
    max-width: 250px;
}
.min-w-120 {
    min-width: 120px;
}
.min-w-200 {
    min-width: 200px;
}

/* Loading */
.lds-hourglass {
    margin: 0 auto;
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
}
.lds-hourglass:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 24px solid var(--primary-color);
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    animation: lds-hourglass 1.2s infinite;
}

/* FilePond */
.filepond--root {
    margin-bottom: 0;
}

@keyframes lds-hourglass {
    0% {
        transform: rotate(0);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    50% {
        transform: rotate(900deg);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    100% {
        transform: rotate(1800deg);
    }
}
