body {
    background-color: #ffffff;
}

.fw-bold {
    font-weight: bold;
}

.fw-semibold {
    font-weight: 600;
}

/* .fs-14 {
    font-size: 14px;
}

.fs-8 {
    font-size: 8px;
}

.fs-12 {
    font-size: 12px;
}

.fs-header {
    font-size: 50px;
} */

.fs-14 {
    font-size: clamp(13px, 1vw, 14px);
}

.fs-8 {
    font-size: clamp(7px, 0.5vw, 8px);
}

.fs-12 {
    font-size: clamp(11px, 0.9vw, 12px);
}

.fs-header {
    font-size: clamp(30px, 6vw, 50px);
}

.fs-header-faq {
    font-size: clamp(32px, 6vw, 64px);
}

.rounded-2 {
    border-radius: 2px !important;
}

.rounded-4 {
    border-radius: 4px !important;
}
.rounded-5 {
    border-radius: 5px;
}
.rounded-6 {
    border-radius: 6px;
}
.rounded-7 {
    border-radius: 7px;
}
.rounded-8 {
    border-radius: 7px;
}
.rounded-10 {
    border-radius: 10px;
}

.border-primary {
    border: solid 1px #3e97fc;
}

.nav-link:hover {
    background-color: #e9ecef;
    transition: background-color 0.3s ease;
}

.border-start-0 {
    border-left: 0 !important; /* For LTR layouts */
}

.border-end-0 {
    border-right: 0 !important; /* For LTR layouts */
}

.rounded-start-0 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.rounded-end-0 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.rounded-bottom-0 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.border-start-0 {
    border-left: 0 !important; /* For LTR layouts */
}

.border-bottom-0 {
    border-bottom: 0 !important; /* For LTR layouts */
}

.border-end-0 {
    border-right: 0 !important; /* For LTR layouts */
}

.rounded-start-10 {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.rounded-end-10 {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.shadow-success {
    text-shadow: 0 0 5px #90ee90, 0 0 10px #90ee90, 0 0 20px #90ee90;
}

.gradient-tab {
    background: #ffffff;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 0 !important;
    transition: all 0.3s ease;
    width: 10%;
    border: 1px solid #c6c6c6;
}

/* Small devices (phones) */
@media (max-width: 576px) {
    .gradient-tab {
        width: 100%;
        text-align: center;
    }
}

/* Medium devices (tablets) */
@media (min-width: 577px) and (max-width: 768px) {
    .gradient-tab {
        width: 50%;
    }
}

/* Large devices (desktops) */
@media (min-width: 769px) and (max-width: 992px) {
    .gradient-tab {
        width: 30%;
    }
}

/* Extra large devices */
@media (min-width: 993px) {
    .gradient-tab {
        width: 10%;
    }
}

.gradient-tab:hover {
    background: #bbbed1;
    opacity: 0.9;
}

.gradient-tab:focus {
    color: #ffffff;
    background: #001076;
}

.gradient-tab.active {
    color: #ffffff;
    background: linear-gradient(90deg, #001076, #1582a9);
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

/* #sidebar {
    min-width: 250px;
    max-width: 250px;
    height: 100vh;
    background: #002c50;
    color: #fff;
    overflow-y: auto;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
} */

/* ===== BASE (DESKTOP) ===== */
#sidebar {
    position: relative; /* stays in layout on desktop */
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #002c50;
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: margin-left 0.3s ease;
}

#closeSidebar {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-header .d-flex {
    gap: 10px; /* optional spacing */
}
.sidebar-logout {
    list-style: none;
    color: #fff;
}

/* THIS IS IMPORTANT */
#sidebar .sidebar-content {
    flex: 1;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    overflow-x: hidden;
}

#sidebar.active {
    margin-left: -280px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #002c50;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul p {
    color: #fff;
    padding: 8px;
    padding-left: 20px;
    padding-right: 20px;
}

#sidebar ul li a {
    padding: 8px;
    font-size: 1em;
    display: block;
    color: #ffffff;
    margin: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

#sidebar ul li a:hover {
    color: #7386d5;
    background: #fff;
    text-decoration: none;
    border-radius: 4px;
}

#sidebar ul li.active > a {
    color: #fff;
    background: #b24747;
    border-radius: 4px;
}

#sidebar a[aria-expanded="true"] {
    color: #fff;
    background: transparent;
    border-radius: 4px;
}

/* ============================= */
/* MOBILE RESPONSIVE SIDEBAR */
/* ============================= */

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: transparent !important;
    border-radius: 4px;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386d5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    padding: 20px;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
}

.card-software {
    transition: background-color 0.3s ease, box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: #dbfafd;
    border-color: #5077f5;
}

.card-software:hover,
.card-software:focus-visible {
    background-color: #5bc5f7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    outline: none;
}

.card-software:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-software:focus-visible::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #4c90f5;
    border-radius: inherit;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .card-software,
    .card-software:hover,
    .card-software:focus-visible,
    .card-software:active {
        transition: none;
        transform: none;
    }
}

/* HARDWARE */

.card-hardware {
    transition: background-color 0.3s ease, box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: #fdf2db;
    border-color: #f4c79a;
}

.card-hardware:hover,
.card-hardware:focus-visible {
    background-color: #f8cb6b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    outline: none;
}

.card-hardware:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-hardware:focus-visible::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #4c6ef5;
    border-radius: inherit;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .card-hardware,
    .card-hardware:hover,
    .card-hardware:focus-visible,
    .card-hardware:active {
        transition: none;
        transform: none;
    }
}

/* LICENSE */

.card-license {
    transition: background-color 0.3s ease, box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: #a1efaa;
    border-color: #6fcf75;
}

.card-license:hover,
.card-license:focus-visible {
    background-color: #42eb6c;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    outline: none;
}

.card-license:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-license:focus-visible::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #4c6ef5;
    border-radius: inherit;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .card-license,
    .card-license:hover,
    .card-license:focus-visible,
    .card-license:active {
        transition: none;
        transform: none;
    }
}

/* OTHER */

.card-other {
    transition: background-color 0.3s ease, box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: #fddbf7;
    border-color: #f49aeb;
}

.card-other:hover,
.card-other:focus-visible {
    background-color: #ffc0e3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    outline: none;
}

.card-other:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-other:focus-visible::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #4c6ef5;
    border-radius: inherit;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .card-other,
    .card-other:hover,
    .card-other:focus-visible,
    .card-other:active {
        transition: none;
        transform: none;
    }
}

.gap-1 > * + * {
    margin-left: 0.25rem;
}

.gap-2 > * + * {
    margin-left: 0.5rem;
}

.gap-3 > * + * {
    margin-left: 1rem;
}

.gap-4 > * + * {
    margin-left: 1.5rem;
}

.gap-5 > * + * {
    margin-left: 3rem;
}

/* New Button Classes */

a.btn {
    vertical-align: middle;
    line-height: 1.5; /* Match button line-height */
}

.btn-darkblue {
    color: #fff;
    background-color: #0039b6;
    border-color: #0039b6;
}

.btn-darkblue:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}
.btn-darkblue.focus,
.btn-darkblue:focus {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}
.btn-darkblue.disabled,
.btn-darkblue:disabled {
    color: #fff;
    background-color: #0039b6;
    border-color: #0039b6;
}
.btn-darkblue:not(:disabled):not(.disabled).active,
.btn-darkblue:not(:disabled):not(.disabled):active,
.show > .btn-darkblue.dropdown-toggle {
    color: #fff;
    background-color: #0062cc;
    border-color: #005cbf;
}
.btn-darkblue:not(:disabled):not(.disabled).active:focus,
.btn-darkblue:not(:disabled):not(.disabled):active:focus,
.show > .btn-darkblue.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.btn-purple {
    color: #fff;
    background-color: #5e41e0;
    border-color: #5e41e0;
}

.btn-purple:hover {
    color: #fff;
    background-color: #250d92;
    border-color: #250d92;
}
.btn-purple.focus,
.btn-purple:focus {
    color: #fff;
    background-color: #250d92;
    border-color: #250d92;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}
.btn-purple.disabled,
.btn-purple:disabled {
    color: #fff;
    background-color: #5e41e0;
    border-color: #5e41e0;
}
.btn-purple:not(:disabled):not(.disabled).active,
.btn-purple:not(:disabled):not(.disabled):active,
.show > .btn-purple.dropdown-toggle {
    color: #fff;
    background-color: #0062cc;
    border-color: #005cbf;
}
.btn-purple:not(:disabled):not(.disabled).active:focus,
.btn-purple:not(:disabled):not(.disabled):active:focus,
.show > .btn-purple.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

/* New text color */
.text-darkblue {
    color: #0039b6;
}

/* Datatable */

table.dataTable {
    border: 1px solid #e9edf5; /* Bootstrap gray border */
    border-radius: 3px; /* Optional: rounded corners */
    border-collapse: separate !important;
    border-spacing: 0; /* Prevent cell gaps unless specified */
    overflow: hidden;
    box-sizing: border-box; /* Hide overflow on rounded corners */
}

/* Remove borders from header and body cells */
table.dataTable thead th,
table.dataTable tbody td,
table.dataTable tr {
    border: none !important;
}

table.dataTable thead th {
    background-color: #f7f9fd;
    color: #343a40;
    padding: 12px 24px;
    font-size: 12px;
    letter-spacing: 0.48px;
    text-transform: uppercase;
    border-bottom: 1px solid #e9edf5 !important;
    text-align: left;
}
table.dataTable tbody tr {
    background-color: #ffffff;
    color: #343a40; /* padding-y: 12px, padding-x: 24px */
    font-size: 14px;
    letter-spacing: 4%;
    text-transform: uppercase;
}

#knowledge_base_table td {
    text-transform: none !important;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    display: none !important;
}

table.dataTable thead th.sorting::before {
    content: "⇅";
    float: right;
    margin-left: 8px;
    margin-bottom: 5px;
    color: #999;
    font-size: 10px;
}

table.dataTable thead th.sorting_asc::before {
    content: "↑";
    float: right;
    margin-left: 8px;
    margin-bottom: 5px;
    color: #007bff;
}

table.dataTable thead th.sorting_desc::before {
    content: "↓";
    float: right;
    margin-left: 8px;
    margin-bottom: 5px;
    color: #007bff;
}

.custom-tooltip {
    position: relative;
    cursor: pointer;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    z-index: 99999;
    bottom: 125%; /* Show above the button */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;

    /* Fade in animation */
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* SELECT 2 Custom Design */

.select2-container--default .select2-selection--single {
    display: block !important;
    width: 100% !important;
    min-height: calc(1.875em + 0.75rem + 2px) !important;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important; /* left and right padding */
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    background-color: #fff !important;
    border: 1px solid #d5d7da !important;
    border-radius: 0.5rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 12l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem !important;
    appearance: none !important;
}

.select2-selection__arrow {
    display: none !important;
}

.select2-container--default .select2-selection--multiple {
    display: block !important;
    width: 100% !important;
    min-height: calc(1.875em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    background-color: #fff !important;
    border: 1px solid #d5d7da !important;
    border-radius: 0.5rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.select2-container--default .select2-selection--multiple {
    padding-right: 2.5rem !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Individual selected items (tags) */
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #007bff !important;
    border: 1px solid #007bff !important;
    color: #fff !important;
    margin-top: 0.25rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Close (×) icon color */
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 4px !important;
    font-weight: bold !important;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    color: #ccc !important;
}

.select2-service
    + .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #b24747 !important;
    border: 1px solid #b24747 !important;
    color: #fff !important;
    margin-top: 0.25rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Close (×) button for red tags */
.select2-service
    + .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 4px !important;
    font-weight: bold !important;
}

.select2-service
    + .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    color: #f8d7da !important;
}

.chat-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: fixed;
}

.chat-card {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.chat-body {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 1rem;
}

.chat-box {
    display: flex;
    flex-direction: column;
    height: 70vh;
    justify-content: space-between;
}

.chat-intro button {
    width: 100%;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 70%;
}

.message.left {
    align-self: flex-start;
}

.message.right {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.bubble {
    background-color: #e5e5ea;
    color: #000;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
}

.bubble ol {
    padding-left: 20px;
    margin: 10px 0;
}

.bubble li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.typing-loader .loading::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.message.right .bubble {
    background-color: #0039b6;
    color: #fff;
}

.chat-input {
    border-top: 1px solid #ddd;
    padding: 1rem;
    background-color: #fff;
}

.chat-input form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 999px;
    outline: none;
    font-size: 1rem;
    background-color: #fff;
}

.chat-input button {
    background-color: #0039b6;
    border: none;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background-color: #0039b6;
}

.form-check-input-lg {
    width: 1.5em;
    height: 1.5em;
}
.profile-btn {
    background-color: transparent;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

.no-spacing {
    margin: 0 !important;
    padding: 0 !important;
}

.blink-red {
    color: red;
    font-weight: bold;
    animation: blink 5s infinite;
}

@keyframes blink {
    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}
