* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --theme-primary: #6536B1;
    --theme-primary-dark: #3b1d6b;
    --theme-font: "Inter", sans-serif;
    --theme-secondary: #3a8f19;
    --text-color: #949494;
    --header-height: 60px;
}


@media(min-width:1200px) {
    .container {
        max-width: 1250px;
    }
}


@media(min-width:1400px) {
    .container {
        max-width: 1550px
    }
}

a,
button {
    transition: all 400ms ease !important;
    text-decoration: none !important;
}

body {
    font-family: var(--theme-font);
    font-optical-sizing: auto;
    background-color: #f4f4f4;
    scroll-padding-top: 90px;
    font-weight: 300;
}

.cursor-pointer {
    cursor: pointer;
}


.preeti {
    font-size: 20px;
}

.smooth {
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    transition: all linear 0.2s;
}


.page-title {
    font-size: 1.5rem;
}

.border-primary {
    border: 1px solid var(--theme-primary) !important;
}

.btn-primary {
    background-color: var(--theme-primary) !important;
    color: #fff !important;
    border-color: var(--theme-primary) !important;

    &:hover,
    &:focus {
        background-color: var(--theme-primary-dark) !important;
    }
}


.btn:focus-visible {

    background-color: var(--theme-primary) !important;
}

.btn-outline-primary {
    border-color: var(--theme-primary) !important;
    background-color: transparent;
    color: var(--theme-primary);

    &:hover,
    &:focus {
        background-color: var(--theme-primary-dark);
        color: #fff;
    }
}

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

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


.btn-clean {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* .card-body {
    padding-bottom: 120px; /* So bottom buttons don’t cover last form field */

.form-group {
    margin-bottom: 20px;
}

.img-container {
    position: relative;
    overflow: hidden;
}

.ar-54 {
    aspect-ratio: 5/4;
}

.ar-53 {
    aspect-ratio: 5/3;
}

.img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-heading {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 600;
}

.breadcrumb-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.cursor-pointer {
    cursor: pointer;
}

[disabled]:not(input),
.disabled:not(input) {
    opacity: 0.25 !important;
    cursor: not-allowed !important;
    pointer-events: inherit !important;
}


.breadcrumb-bar .back-btn {
    color: #005792;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-bar .back-btn i {
    margin-right: 8px;
}

.breadcrumb-bar .page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.fit-content {
    width: fit-content;
}

.help-block {
    font-weight: 300;
    color: red;
}

.unset-animation {
    transform: unset !important;
    transition: unset !important;
}

.box-shadow {
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
        rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.sticky-bottom {
    position: sticky;
    bottom: 0;
}

.sticky-table th {
    position: sticky;
    top: 0;
}

.fit-content {
    width: fit-content !important;
}

.btn-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pagination .page-link {
    color: var(--theme-primary) !important;
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--theme-primary) !important;
    color: #fff !important;
    border-color: var(--theme-primary) !important;
    font-weight: 600;
}

.select2.select2-container {
    width: 100% !important;
}

.form-ui ::placeholder {
    color: #c7c7c7;
}

.form-ui label {
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.form-ui :is(input, textarea, select) {
    transition: all 0.3s ease;

    &:hover {
        padding-left: 1rem;
    }
}

.form-ui :is(input:focus, textarea:focus, select:focus),
input:focus {
    box-shadow: none;
    outline: 1px solid var(--theme-primary);
}


input[type="checkbox"] {
    cursor: pointer;
    appearance: none;

    &:checked {
        background-color: var(--theme-primary);
        border-color: var(--theme-primary);
        box-shadow: none;

        &::before {
            opacity: 1;
        }
    }

    &:focus {
        outline: none;
        box-shadow: none;
    }
}


.icon-wrap-avatar {
    width: 70px;
    height: 70px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--theme-primary);
    color: var(--theme-primary);
    border-radius: 50%;
    outline: 10px solid #f0f0f0;
    outline-offset: 1px;
}

.icon-wrap-avatar[data-varient="sm"] {
    width: 40px;
    height: 40px;
    outline: 4px;
}

.custom-bs-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: var(--theme-primary) !important;
}

.custom-bs-indicators button:not(.active) {
    opacity: 0.4 !important;
}

@media (min-width: 992px) {
    .root-doc-search-input {
        min-width: 400px;
    }
}

@keyframes forwardNudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-4px);
        /* moves slightly left */
    }
}

.animate-arrow:hover i {
    animation: forwardNudge 1.4s ease-in-out infinite;
}

.form-card-header {
    padding: 0.75rem 1rem 0.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    color: #343a40;
    text-align: center;
    /* 👈 Center the header text */
}


.w-fit {
    width: max-content;
}

.jump-top-button {
    position: fixed;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: var(--theme-primary);
    border: 2px solid var(--theme-primary);
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    font-size: 1.25rem;
    border-radius: 50%;
    z-index: 999;


    &:hover {
        background-color: var(--theme-primary);
        color: #fff;
    }

    &:hover i {
        margin-top: -0.15rem;
        transition: all 0.3s ease-out;
    }
}

table thead th {
    color: var(--text-color) !important;
    font-weight: 500 !important;
}



.pills-nav {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.pills-nav .nav-link {
    background: #f0f0f0;
    color: #444;
    padding: 0.5rem 1rem;
    font-weight: 400;

    &.active {
        color: #000;
        background-color: #dbe9f7;
        font-weight: 700;
        border-bottom: 2px solid var(--theme-primary);
    }

    &:hover {
        background-color: #dbe9f7;
    }
}