:root {
    /*========== Colors ==========*/
    --primary-color: #1e1d4b;
    --secondary-color: rgb(200, 209, 229);
    --third-color: rgb(20, 48, 180);
    --fourth-color: rgb(237, 243, 249);
    --fifth-color: #483EAD;
    --sixth-color: rgba(237, 243, 248, 1);
    --seventh-color: #7368E1;
    --gray-info: #404040;
    --primary-light: #e2e1ef;
    --action-color: #1c7cd5;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.grey-info-text {
    color: var(--gray-info);
}

.overflow-justify {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BTNs,dropdown,select2 boxes */
.btn-primary, .btn-primary.disabled, .btn-primary:disabled {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary{
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.show>.btn-outline-primary.dropdown-toggle{
    color: whitesmoke;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted){
    color: var(--primary-color);
    background: rgb(183, 181, 229);
}

.select2-container--bootstrap-5 .select2-dropdown{
    border-color: var(--primary-color);
}

.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary.focus,
.btn-primary:focus,
.btn:focus,
.show>.btn-primary.dropdown-toggle:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary.focus,
.btn-outline-primary:focus,
.show>.btn-outline-primary.dropdown-toggle:focus{
    box-shadow: 0 0 0 0.2rem rgb(194, 204, 243)
}

.form-control:focus,
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection{
    box-shadow: 0 0 0 0.2rem rgb(194, 204, 243);
    border: 1px solid var(--primary-color);
}

.dropdown-item.active, .dropdown-item:active{
    color: black;
    background-color: var(--primary-light);
}

.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Prevent chrome button borders */
button, button:active, button:hover, button:focus, input, input:active, input:hover, input:focus, a, a:active, a:hover, a:focus {
    outline: None;
}

/*Spinners*/
.smt-spinner-circle {
    width: 50px;
    height: 50px;
    position: relative;
    margin: 20px;
    border-radius: 50%;
}

.smt-spinner {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    animation: rotate--spinner 1.6s infinite;
}

.message-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 30px;
    height: 30px;
    animation: rotate--spinner linear 1.6s infinite;
}

.message-spinner-text {
    text-align: center;
    font-size: 14px;
    color: grey;
}

@keyframes rotate--spinner {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

#load-spinner {
    position: fixed;
    z-index: 999999; /* make sure it's on top of everything else */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(239, 240, 241, 0.95);
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center; /* center vertically */
}

#load-spinner .load-spinner-loader {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: rotate 1s linear infinite
}

#load-spinner .load-spinner-loader::before, #load-spinner .load-spinner-loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #FFF;
    animation: prixClipFix 2s linear infinite;
}

#load-spinner .load-spinner-loader::after {
    border-color: var(--primary-color);
    animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
    inset: 6px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }
    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }
    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }
    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
    }
    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
    }
}