/* Custom CSS to replicate Tailwind's specific values */
:root {
    --color-primary: #4B579F;
    --color-primary-dark: #363F72;
    --bs-gray-200: #D5D7DA;
    --bs-gray-500: #667085;
    --bs-gray-600: #475467;
    --bs-gray-700: #344054;
    --bs-error-50: #fef2f2;
    --bs-error-600: #ef4444;
    --bs-yellow-50: #fffbeb;
    --bs-yellow-600: #d97706;
    --bs-yellow-200: #fde68a;
    --bs-primary-500: #007bff;
    --bs-primary-100: #EAECF5;
    --bs-red-error-color: #D92D20;
    --bs-red-strong-color: #B42318;
    --bs-yellow-strong-color: #DC6803;
    --bs-gray-medium-color: #667085;
    --bs-gray-100-custom: #f1f1f1;
    --bs-success-500: #12b76a;
}

/* Replicate custom spacing and font sizes */
body {
    background: #F9F9F9 !important;
}

.py-40 {
    padding-top: 10rem !important;
    padding-bottom: 10rem !important;
}

.text-24px {
    font-size: 24px;
}

.text-20px {
    font-size: 20px;
}

.text-14px {
    font-size: 14px;
}

.text-sm-16px {
    font-size: 16px;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm-14px {
    font-size: 14px;
}


@media (min-width: 1024px) {
    .lg\:text-\[32px\] {
        font-size: 32px;
    }

    .lg\:text-\[22px\] {
        font-size: 22px;
    }
}

.bg-gray-100-custom {
    background-color: var(--bs-gray-100-custom);
}

.text-success-500 {
    color: var(--bs-success-500);
}

/* Replicate custom width and z-index */
.z-20 {
    z-index: 20;
}

.h-0 {
    height: 0;
}

/* Replicate complex hover/focus states and transitions */
.custom-favicon {
    width: 37px;
    height: 37px;
}

img.logo {
    width: 61.586px;
    height: 16px;
}

.textarea-container {
    width: 100%;
    height: 30px;
}

.form-control-container {
    min-height: 89px;
    transition: all 0.5s ease-in-out;
    border: 1px solid var(--bs-gray-200);
}

.form-control-container:hover {
    --tw-border-opacity: 1;
    border-color: rgb(78 91 166 / var(--tw-border-opacity, 1));
}

.form-control-container:focus-within {
    --tw-shadow-color: rgb(78 91 166 / 0.2);
    --tw-shadow: var(--tw-shadow-colored);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-border-opacity: 1;
    border-color: rgb(78 91 166 / var(--tw-border-opacity, 1));
}

.form-control-container textarea:focus {
    box-shadow: none;
}

/* Replicate animations and transitions for alerts */
.alert-transition {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    transform: translateY(-100%);
    overflow: hidden;
}

.alert-transition.show {
    max-height: 200px;
    /* Adjust to a value that fits content */
    opacity: 1;
    transform: translateY(0);
}

/* Replicate placeholder styling */
.form-control::placeholder {
    color: var(--bs-gray-500);
}

/* Replicate button and badge styles */
.btn-icon {
    color: #535862;
    border-radius: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.btn-icon:hover {
    background-color: #fafafa;
    color: #414651;
}

.btn-icon:disabled {
    color: #a4a7ae;
}

.badge-mode {
    background-color: var(--bs-primary-100) !important;
    color: var(--bs-gray-500) !important;
    font-weight: bold;
    border-radius: 8px;
}

.badge-mode span {
    font-size: 0.75rem;
}

/* Replicate hover effect for the suggestion button */

.suggestion-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    border-radius: 1rem;
    transition: all 0.2s ease-in-out;
}

.suggestion-btn:hover {
    background-color: #e2e6ea;
    color: #495057;
}

.main-header__documentation li a {
    color: var(--bs-gray-700);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
}

.btn-outline-custom {
    padding: 11px 14px !important;
    border: 1px solid var(--bs-gray-200) !important;
    color: var(--bs-gray-600) !important;
    background-color: #FFF !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    box-shadow: var(--shadow-xs);
    border-radius: 4px;
    line-height: 24px;
}

.btn-outline-custom:hover,
.button-second:hover {
    background-color: #fafafa !important;
    color: #252b37 !important;
    border-color: var(--bs-gray-200) !important;
}

.custom-button-points {
    height: fit-content;
    display: flex;
    padding: 4px 12px;
    justify-content: center;
    align-items: center;
    margin-inline-end: 8px;
    gap: 10px;
    border-radius: 16px;
    background: #F1F1F1;
    color: var(--Gray-500);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    border: none;
}

.main-header__end .button+.button {
    margin-inline-start: 8px;
}

.button-second {
    background-color: #fff;
    color: var(--bs-gray-600);
    border-radius: .5rem;
    border: 1px solid #d5d7da;
    font-style: normal;
    font-weight: 500;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    height: 2.25rem;
}

.button-register {
    background-color: var(--color-primary-dark);
    border-radius: .5rem;
    border: 2px solid var(--color-primary-dark);
    color: var(--Primary-25, #FCFCFD);
    font-style: normal;
    font-weight: 500;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    height: 2.25rem;
}

/* New classes for migrated styles */
.text-primary-700 {
    color: var(--color-primary-dark);
}

.text-gray-600 {
    color: var(--bs-gray-600);
}

.bg-error-50 {
    background-color: var(--bs-error-50);
}

.text-error-600 {
    color: var(--bs-error-600);
}

.text-red-error {
    color: var(--bs-red-error-color);
}

.text-red-strong {
    color: var(--bs-red-strong-color);
}

.bg-yellow-50 {
    background-color: var(--bs-yellow-50);
}

.border-yellow-200 {
    border-color: var(--bs-yellow-200);
}

.text-yellow-600 {
    color: var(--bs-yellow-600);
}

.text-yellow-strong {
    color: var(--bs-yellow-strong-color);
}

.text-gray-medium {
    color: var(--bs-gray-medium-color);
}

.textarea-style {
    height: 24px;
    min-height: 24px;
    max-height: 24vh;
}

@media (min-width: 1200px) {
    .main-header {
        padding: 8px 20px;
    }
}

.box-chat {
    margin-top: 36px;
    margin-bottom: 36px;
}

.box-chat-container {
    width: 750px;
    margin: auto;
    padding: .75rem .75rem .5rem !important;
    gap: .5rem;
    border: 1px solid #F2F2F2;
}

@media (max-width: 767px) {
    .box-chat-container {
        width: 90%;
    }
}

.box-chat-container textarea {
    min-height: auto;
    height: 24px;
    padding: 5px;
    font-size: 1rem;
    color: var(--bs-gray-700) !important;
    resize: none;
}

.box-chat-container textarea:focus {
    border: 0 !important;
}

.box-chat-container textarea::placeholder {
    color: #D0D5DD !important;
}

.footer-wrapper {
    margin-top: auto;
}

.main-footer {
    padding: 24px 0 16px;
}

img.main-footer__logo {
    margin-bottom: 24px;
    width: 96px;
    height: 25px;
}

.main-footer__text {
    font-size: 14px !important;
}

.copyright a.main-footer__text {
    color: var(--color-primary);
}

.copyright a.main-footer__text:hover {
    color: var(--color-primary-dark);
}

@media (max-width: 991.98px) {
    /* .main-header__end {
        display: none;
    } */
}

@media (min-width: 992px) {
    .main-header__end {
        display: flex;
    }
}

.modal-body div iframe {
    border-radius: var(--border-radius-soft);
    width: 100%;
    height: 100%;
}

.main-header__documentation li:hover a {
    color: var(--color-primary);
}

.text-gray-custom {
    color: rgba(0, 0, 0, 0.50);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

@media (min-width: 576px) {
    .modal .modal-dialog {
        max-width: 600px;
        width: 600px;
    }
}

.main-header__logout ul {
    display: flex;
    gap: .75rem;
    flex-direction: column;
    padding: 0.75rem 0;
}

.main-header__logout hr {
    margin-bottom: 0;
}

.main-header__logout ul li {
    margin-bottom: 0;
    display: flex;
    width: 100%;
    height: 30px;
    align-items: center;
    transition: padding .3s linear;
}

.main-header__logout ul li:hover {
    background-color: #F9FAFB;
    padding-inline-start: .5rem;
}

.main-header__logout ul li:hover a {
    color: var(--color-primary);
}

.main-footer__start>div>a {
    margin-right: auto;
}

.main-footer__end a {
    color: var(--color-primary);
}

.custom-page-padding {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

@media (min-width: 992px) {
    .main-header__start {
        align-items: center;
        flex: 1;
    }

    body .navbar {
        flex: auto;
        justify-content: center;
    }

    .main-header__end {
        flex: 1;
        justify-content: end;
    }
}

@media (min-width: 1800.98px) {
    body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100vh;
    }
}

@media (max-width: 767px) {
    .text-24px {
        font-size: 20px;
    }

    .text-20px {
        font-size: 16px;
    }

    .text-14px {
        font-size: 12px;
    }

    .text-sm-16px {
        font-size: 12px;
    }

    .main-footer__start>div>a {
        margin-right: 0;
    }
}

@media (min-width: 992px) and (max-width:1030px) {
    .main-header__end .button {
        font-size: 13px;
    }
}