html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
}

.text-primary, .nav-link:hover, .nav-link:focus {
    color: #e92c32 !important;
}

.page-link {
    color: #e92c32;
}

.drop-zone {
    border: 2px dashed #6c757d;
    transition: background .2s, border-color .2s;
}

    .drop-zone.dragover {
        background: #e9f5ff;
        border-color: #0d6efd;
    }

/*Handle menu level 1*/
.sidebar-wrapper .sidebar-menu > .nav-item.menu-open > .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-expand-lg.layout-fixed .app-sidebar {
    background: #313233 !important;
}

    .sidebar-expand-lg.layout-fixed .app-sidebar .sidebar-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

.sidebar-wrapper .nav-link {
    align-items: center;
    color: #ccc;
}

    .sidebar-wrapper .nav-link:hover {
        color: #fff !important;
    }
/*---footer------*/
.app-footer {
    background: transparent;
    padding: 20px 0 10px;
    text-align: center;
}
/*Handle list uploaded files*/
.list-group {
    height: 300px;
    max-height: 350px;
    overflow-y: auto;
}

::placeholder {
    color: #999 !important;
    font-style: italic;
    opacity: 1;
}

.readonly-control {
    pointer-events: none;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    opacity: 1; /* Prevent Bootstrap's .disabled opacity */
    cursor: not-allowed;
}

#field-list .btn-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: #ccc;
    opacity: 1;
    padding: 0.4rem;
    font-size: 12px;
    border-radius: 0.25rem;
    z-index: 1;
}

    #field-list .btn-close:hover {
        background-color: darkred;
    }

.field-item {
    position: relative;
    padding-right: 3rem;
}

.form-check-input {
    width: 2rem;
    height: 1.2rem;
}

    .form-check-input:checked, .form-check-input:focus {
        background-color: #e92c32;
        border-color: #e92c32;
        outline: none;
        box-shadow: none;
    }
/* Ignore style AdminLTE default for radio */
.no-adminlte[type="radio"] {
    appearance: auto !important;
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    background-color: initial !important;
    border: 1px solid #adb5bd !important;
    border-radius: 50% !important;
    width: 1em !important;
    height: 1em !important;
    cursor: pointer;
}

    /* Color for checked */
    .no-adminlte[type="radio"]:checked {
        accent-color: #e92c32; /* Primary */
    }

/*Toast*/
.toast-custom {
    border-radius: 0.5rem;
    overflow: hidden;
}

.toast-header {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    color: #202020;
}

.toast-body {
    padding: 0.75rem;
}

.one-line-ellipsis {
    display: -webkit-box; /* enable the webkit box model */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* limit to 1 lines */
    overflow: hidden; /* hide overflow */
    text-overflow: ellipsis; /* add “…” */
    white-space: normal; /* allow wrapping */
}

.two-line-ellipsis {
    display: -webkit-box; /* enable the webkit box model */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* limit to 2 lines */
    overflow: hidden; /* hide overflow */
    text-overflow: ellipsis; /* add “…” */
    white-space: normal; /* allow wrapping */
}

.three-line-ellipsis {
    display: -webkit-box; /* enable the webkit box model */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* limit to 3 lines */
    overflow: hidden; /* hide overflow */
    text-overflow: ellipsis; /* add “…” */
    white-space: normal; /* allow wrapping */
}

/*Chat log*/
.chat-sidebar {
    height: calc(100vh - 56px); /* full-height minus header */
    overflow-y: auto;
    min-height: 600px;
    max-height: 600px;
}

    .chat-sidebar .nav-link {
        white-space: normal;
    }

.custom-scrollable {
    min-height: 600px;
    max-height: 600px;
    overflow-y: auto; /* Vertical scrollbar when needed */
}

.bot-message {
    background-color: #f1f0f0;
    border-radius: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
}

    .icon-circle i {
        font-size: 1rem;
    }


/*Custom override success color*/
.btn-success {
    background-color: #198754 !important;
    border-color: #fff;
    box-shadow: none;
    border-radius: 10px;
    padding: 8px 20px;
}

    .btn-success:hover, .btn-success:focus {
        outline: none;
        box-shadow: none;
        border-color: #198754;
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus {
    outline: none;
    box-shadow: none;
    border-color: #666;
}
/*Custom override primary color*/
.btn-primary {
    background-color: #e92c32 !important;
    border-color: #fff;
    box-shadow: none;
    border-radius: 10px;
    padding: 8px 20px;
}

.btn-secondary {
    border-radius: 10px;
    padding: 8px 20px;
}

.btn-primary:hover, .btn-primary:focus {
    outline: none;
    box-shadow: none;
    border-color: #e92c32;
}

.btn-outline-primary {
    border-color: #e92c32;
    color: #e92c32;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:focus-visible,
    .btn-outline-primary:first-child:active {
        background: #e92c32;
        border-color: #e92c32;
        color: #fff;
        outline: none;
    }

.user-query .card,
.icon-circle.bg-primary,
.badge.bg-primary {
    background: #e92c32 !important;
    border-color: #fff;
}

.user-query .card {
    border: none;
    border-radius: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.button-group {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.delete-file {
    display: flex;
    padding: 8px;
}

    .delete-file i {
        height: 15px;
    }


.bg-whatsapp {
    background: #1da1f2;
    box-shadow: none;
    border-radius: 10px;
}

    .bg-whatsapp i {
        background: #198754;
    }

.bg-webchat i {
    background: #0d6efd;
}

.btn-channel i {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    line-height: 25px;
    text-align: center;
    font-size: 12px;
    color: #fff;
}

.btn-channel {
    text-align: center;
    justify-content: center;
    justify-self: center;
    padding: 8px 10px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 5px 0 #00000021;
    color: #211212;
    cursor: pointer;
    min-width: 120px;
}
.btn-help {
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: #fff;
    border: none;
}

.btn-help:hover,
.btn-help:focus {
    background-color: #0b5ed7;
    color: #fff;
}

.bg-whatsapp:hover, .bg-whatsapp:focus {
    background: #1da1f2;
    color: #fff;
}
/*tabs menu*/
.tabs-mennu {
    gap: 15px;
    border: 0;
    margin-bottom: 2px;
}

    .tabs-mennu .nav-item .nav-link {
        border: 1px solid #ccc;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 0 5px 0 #00000021;
        color: #211212;
        cursor: pointer;
    }

        .tabs-mennu .nav-item .nav-link.active,
        .tabs-mennu .nav-item .nav-link:hover,
        .tabs-mennu .nav-item .nav-link:active {
            background: rgba(0, 0, 0, 0.2);
            font-weight: 600;
            color: rgb(33, 18, 18) !important;
        }

.chatList > li > a {
    color: #202020;
}
/*------table-------*/
.table-overflow {
    overflow-x: auto;
    position: relative;
}

table.dataTable {
    margin-top: 15px !important;
    margin-bottom: 20px !important;
}

table.table-bordered.dataTable td {
    vertical-align: middle;
}

table.dataTable thead > tr > th {
    background: #f8f9fa;
    text-align: center;
    white-space: nowrap;
}

table.table-bordered.dataTable tr > td:first-child, table.table-bordered.dataTable tr > td:last-child {
    text-align: center;
}

table.dataTable td .form-switch {
    display: flex;
    justify-content: center;
}

#customButtonTable_wrapper .dt-buttons,
#customSuggestionTable_wrapper .dt-buttons {
    float: left;
}

#customButtonTable_wrapper #customButtonTable_filter,
#customSuggestionTable_wrapper #customButtonTable_filter {
    float: right;
}

#customButtonTable,
#customSuggestionTable {
    clear: both;
    margin-top: 20px !important;
    display: inline-table;
}

.btn-details {
    padding: 5px 11px;
    white-space: nowrap;
}

.edit-button {
    background: #ccc;
    border-color: #ccc;
    line-height: 23px;
    min-width: 55px;
    line-height: 22px;
    height: 30px;
    vertical-align: middle;
    text-align: center;
}

    .edit-button:hover, .edit-button:focus {
        background: #eee;
        border-color: #ccc;
    }

.delete-button {
    background: #e12033;
    border-color: #e12033;
    line-height: 23px;
    min-width: 55px;
    line-height: 22px;
    height: 30px;
    vertical-align: middle;
    text-align: center;
}
/*-------modal----------*/
.modal-footer {
    border-top: 0;
    justify-content: center;
}

.col-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .col-right button {
        white-space: nowrap;
    }

#detailModal .card-header {
    background: #f1f1f1;
    border-bottom: 0;
}

#detailModal .modal-body {
    padding: 40px 40px 50px;
}

.form-search .form-control,
.form-date .form-control,
.form-score select {
    height: 42px;
}

.form-control {
    font-size: 14px;
}

.icon-filter {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-circle.bg-primary.icon-filter {
    background: #0d6efd !important;
}

.icon-filter > i {
    font-size: 0.8rem;
}

.modal-footer-right {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

#fileList .dropdown-item {
    padding: 8px 15px;
}

@media screen and (min-width: 1550px) {
    .form-search, .form-date {
        min-width: 300px;
    }
}

/*-------Disable origin show password origin icon of input----------*/
/* Microsoft Edge / IE */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

/* Blink (Chrome, Edge (Chromium), Safari variants) */
/* Different engines expose different pseudo-elements; hide common candidates */
input[type="password"]::-webkit-textfield-decoration-container,
input[type="password"]::-webkit-textfield-decoration-wrapper,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-password-toggle-button {
    display: none !important;
}

/* General: remove default appearance (may affect other controls) */
input[type="password"] {
    -webkit-appearance: none;
    appearance: none;
}
/*Account Tab In Account Setting*/
.tab-content .tab-pane {
    min-height: 28rem;
}

.daterangepicker td.active, .daterangepicker td.active:hover {
    background-color: #eb2637;
}
/*Custom Chat Playground*/
#playground .ichat-widget {
    width: 440px;
}