/* 
    Created on : Jan 12, 2023, 2:06:44 PM
    Author     : bob
*/

/* Focus disable dotted box on focus */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Toast */
.toast-container {
    position: fixed;
    padding: 0 0.75rem;
    top: 7.188rem;
    left: 50%;
    z-index: 1020;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.toast-container .toast.show {
    display: flex;
}

.custom-accordion .card-header {
    background-color: transparent;
}

.custom-accordion .card-header a,
.list-group-item-action {
    transition: background-color 0.2s ease-in-out;
}

.custom-accordion .card-header {
    padding: 0;
}

.custom-accordion .card-header a {
    padding: 1rem 1.5rem;
}

.custom-accordion .accordion-arrow {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.input-group-text {
    cursor: pointer;
}

.dropdown-menu {
    padding: 10px 0;
}

.list-group-item i {
    font-size: 21px;
}

.navbar-custom .topnav-menu .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.navbar-custom .clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    font-size: 13px;
    width: 64px;
    text-align: center;
    margin-right: 20px;
}

.navbar-custom .weather-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    width: 100px;
}

.weatherwidget-io {
    width: 100%;
}

.navbar-custom .weather-box .currentDesc {
    display: none !important;
}

.navbar-custom .weather-box .booked-weather-160x36 {
    width: 70px !important;
}

.navbar-custom .weather-box .booked-bl-simple-city {
    display: none;
}

.navbar-custom .weather-box .booked-weather-160x36-degree {
    font-size: 13px !important;
}

.navbar-custom .weather-box .w160x36-01 {
    background-position: 30px -1px !important;
}

.nav-user>i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 21px;
    border-radius: 50%;
}

.left-side-menu #sidebar-menu ul li a .icon-holder {
    position: relative;
}

#sidebar-menu>ul>li>a i,
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li>a i {
    font-size: 21px;
    width: 21px;
}

.left-side-menu #sidebar-menu ul li a .badge {
    margin: 0 0 0 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0;
}

#sidebar-menu .menu-title {
    padding: 5px 20px 10px 20px;
}

#sidebar-menu>ul>li>a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 20px 8px 20px;
    font-size: 0.8125rem;
}

.nav-second-level li a {
    padding: 8px 34px 8px 18px;
}

.nav-second-level li a .menu-arrow {
    top: 50%;
    -webkit-transform: translateY(-50%) rotate(0deg);
    -moz-transform: translateY(-50%) rotate(0deg);
    -ms-transform: translateY(-50%) rotate(0deg);
    -o-transform: translateY(-50%) rotate(0deg);
    transform: translateY(-50%) rotate(0deg);
}

body[data-sidebar-size="condensed"] .nav-second-level li a .menu-arrow {
    right: 10px;
}

body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li>a span {
    padding-left: 0.5rem;
}

body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li>a span:first-of-type {
    padding-left: 25px;
}

.nav-second-level li>a[aria-expanded="true"]>span.menu-arrow {
    -webkit-transform: translateY(-50%) rotate(90deg);
    -moz-transform: translateY(-50%) rotate(90deg);
    -ms-transform: translateY(-50%) rotate(90deg);
    -o-transform: translateY(-50%) rotate(90deg);
    transform: translateY(-50%) rotate(90deg);
}


.breadcrumb-item>a:hover,
.footer a:hover,
.footer .footer-links a:hover {
    text-decoration: underline;
}

#sidebar-menu .menuitem-active>a {
    font-weight: 700;
}

body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu .nav-second-level li a .menu-arrow,
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu a:hover .badge {
    display: inline-block !important;
}

body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li {
    white-space: normal;
}

body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li:hover>a {
    box-shadow: 0 0 0 0 transparent;
}

.breadcrumb-holder {
    margin-top: 5px;
}

.breadcrumb-item.active {
    font-weight: 700;
}

body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li:hover>a,
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li>a:hover span:first-of-type {
    text-decoration: none;
}

.content-page {
    padding: 28px 8px 65px 8px;
}

.page-title-box {
    justify-content: flex-start;
    flex-wrap: wrap;
    height: auto;
    margin-bottom: 30px;
}

.page-title-box .page-title {
    flex-basis: 100%;
    line-height: 1 !important;
    font-size: 1.25rem;
    text-transform: none;
    font-weight: 500;
}

.header-title {
    font-size: 1rem;
}

/* ****************** */
/* Light color scheme */
/* ****************** */

/* Font colors */
/* *********** */

/* color #323a46 */
body,
.footer,
.footer .footer-links a,
body[data-topbar-color="light"] .navbar-custom .app-search .form-control,
body[data-topbar-color="light"] .navbar-custom .app-search .btn,
body[data-topbar-color="light"] .navbar-custom .topnav-menu .nav-link,
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li:hover>a,
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li>a:active,
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li:hover>.collapse>ul a:hover,
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li:hover>.collapsing>ul a:hover,
.dropdown-item,
.dropdown-item:focus,
.dropdown-item:hover,
.breadcrumb-item>a,
.breadcrumb-item+.breadcrumb-item::before,
.breadcrumb-item.active,
#sidebar-menu .menu-title,
#sidebar-menu>ul>li>a,
#sidebar-menu .menuitem-active>a,
.nav-tabs .nav-link.active,
.nav-pills>li>a,
.nav-tabs>li>a,
.nav-second-level li a,
.badge.bg-gray,
.btn-light,
.page-title-box .page-title,
.list-group-item-action,
.list-group-item-action:hover {
    color: #334659;
}

.custom-accordion .card-header a.collapsed {
    color: #334659 !important;
}

/* color #92929F */
.navbar-custom .app-search input::placeholder,
.text-gray {
    color: #92929F !important;
}

/* color #348cd4; */
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li:hover>a,
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li:hover>.collapse>ul a:hover,
body[data-sidebar-size="condensed"] .nav-second-level li:hover>a,
a,
.nav-link:focus,
.nav-link:hover,
#sidebar-menu .menuitem-active .active,
#sidebar-menu>ul>li>a:active,
#sidebar-menu>ul>li>a:focus,
#sidebar-menu>ul>li>a:hover,
.nav-second-level li a:focus,
.nav-second-level li a:hover,
.footer a:hover {
    color: #0065fa;
}

body[data-sidebar-size="condensed"] .left-side-menu .menuitem-active .menuitem-active a.active {
    color: #0065fa !important;
}


/* Background colors */
/* ***************** */

:root {
    --bs-red: #ff443d;
    --bs-danger: #ff443d;
    --bs-danger-rgb: 255, 68, 61;
    --bs-green: #2ac38a;
    --bs-success: #2ac38a;
    --bs-success-rgb: 42, 195, 138;
    --bs-blue: #0065fa;
    --bs-primary: #0065fa;
    --bs-primary-rgb: 0, 101, 250;
    --bs-orange: #feab4d;
    --bs-warning: #feab4d;
    --bs-warning-rgb: 254, 171, 77;
}

/* background #f3f3f3 */
body[data-topbar-color="light"] .navbar-custom .app-search .form-control,
body[data-topbar-color="light"] .navbar-custom .app-search .btn,
.nav-user>i,
.dropdown-item:focus,
.dropdown-item:hover,
.badge.bg-gray,
.btn-light,
.badge.bg-gray,
.modal-header {
    background-color: #f3f3f3;
}

/* background #dbe7ec */
.modal-header {
    background-color: #f3f3f3;
}

/* background #f2f8fb */
.custom-accordion .card-header a,
.custom-accordion .card-header a.collapsed,
.custom-accordion .card-header a.collapsed:hover,
.list-group-item-action:focus,
.list-group-item-action:hover {
    background-color: #f3f3f3;
}

.btn-primary,
.form-check.form-check-primary .form-check-input:checked {
    background-color: #0065fa !important;
    border-color: #0065fa !important;
}

/* background #ffffff */
body,
body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li:hover>a,
.footer {
    background-color: #ffffff;
}

/* border-color #ecf2f5 */
.btn-light {
    border-color: #f3f3f3;
}

body[data-topbar-color="light"] .navbar-custom,
.list-group-item,
.card {
    border: 1px solid #dbe2ea;
    border-radius: 0;
}

.list-group-item:first-child,
.list-group-item:last-child {
    border-radius: 0;
}

.left-side-menu {
    border-right: 1px solid #dbe2ea;
}

.nav-bordered a.active {
    border-bottom: 2px solid #0065fa !important;
}
.nav-bordered {
    border-bottom: 2px solid #dbe2ea !important;
}

body[data-topbar-color="light"] .navbar-custom,
.left-side-menu,
.card {
    box-shadow: 0 0 0 0 transparent;
}

body[data-sidebar-size="condensed"] .left-side-menu #sidebar-menu>ul>li:hover>a {
    box-shadow: inset 3px 3px 7px 0 rgba(0, 0, 0, 0.1);
}


/*********************/
/**** Media query ****/
/*********************/

@media (max-width: 991px) {
    .content-page {
        padding: 24px 15px 65px 4px;
    }

    .footer .footer-col {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-basis: 100%;
        width: 100%;
    }

    .footer .footer-col>a {
        margin: 0 5px;
    }

    .footer .footer-col:first-child {
        order: 2;
    }

    .footer .footer-col:last-child {
        order: 1;
    }

    .footer .footer-links {
        margin-bottom: 12px;
    }
}

/* ==========================
   Chatbot floating button
   ========================== */

.btn-chat-bot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: #1f6feb; /* primary color */
    color: #fff;
}

.btn-chat-bot svg {
    width: 26px;
    height: 26px;
}

.btn-chat-bot:hover,
.btn-chat-bot:focus {
    background: #1957b8;
    color: #fff;
}

/* ==========================
   Chatbot window container
   ========================== */

.chat-bot {
    position: fixed;
    right: 24px;
    bottom: 90px; /* above the button */
    z-index: 9999;
    width: 360px;
    max-width: calc(100% - 40px);
}

.chat-bot-dialog {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-bot-content {
    display: flex;
    flex-direction: column;
    height: 420px; /* adjust if needed */
}

/* ==========================
   Header
   ========================== */

.chat-bot-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #1f6feb;
    color: #ffffff;
}

.chat-bot-icon-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.chat-bot-icon-holder svg {
    width: 28px;
    height: 28px;
}

.chat-bot-header-content h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.chat-bot-header-content p {
    margin: 0;
    font-size: 11px;
    opacity: 0.9;
}

.chat-bot-header .btn.btn-close {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    color: #ffffff;
    background: transparent;
}

.chat-bot-header .btn.btn-close svg {
    width: 18px;
    height: 18px;
}

/* ==========================
   Messages area
   ========================== */

.chat-bot-body {
    flex: 1 1 auto;
    padding: 10px;
    background-color: #f5f5f7;
    overflow-y: auto;
    min-height: 0;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    font-size: 13px;
}

.message:last-child {
    margin-bottom: 0;
}

.message-time {
    font-size: 10px;
    color: #999999;
    margin-bottom: 4px;
}

.message-content {
    display: flex;
    align-items: flex-end;
}

.message-bubble {
    padding: 8px 10px;
    border-radius: 10px;
    line-height: 1.4;
    word-break: break-word;
}

/* Received */

.message-received .message-content {
    justify-content: flex-start;
}

.message-received .message-bubble {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 2px;
}

/* Sent */

.message-sent {
    text-align: right;
}

.message-sent .message-time {
    text-align: right;
}

.message-sent .message-content {
    justify-content: flex-end;
}

.message-sent .message-bubble {
    background-color: #1f6feb;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

/* Icon holder (if you ever use avatar/icon) */

.message-icon-holder {
    margin-right: 6px;
    display: flex;
    align-items: flex-end;
}

.message-icon-holder svg,
.message-icon-holder img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
}

/* ==========================
   Input area
   ========================== */

.chat-bot-input {
    border-top: 1px solid #e4e4e4;
    padding: 8px;
    background-color: #ffffff;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.chat-bot-input .form-control {
    resize: none;
    min-height: 36px;
    max-height: 80px;
    font-size: 13px;
    padding: 6px 8px;
}

/* Send button */

.btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background-color: #1f6feb;
    color: #ffffff;
}

.btn-send svg {
    width: 20px;
    height: 20px;
}

.btn-send:hover,
.btn-send:focus {
    background-color: #1957b8;
    color: #ffffff;
}

/* ==========================
   Small screens
   ========================== */

@media (max-width: 576px) {
    .chat-bot {
        right: 10px;
        left: 10px;
        bottom: 80px;
        width: auto;
    }

    .chat-bot-content {
        display: flex;
        flex-direction: column;
        height: 420px;          /* adjust if you want taller/shorter window */
    }

    .btn-chat-bot {
        right: 16px;
        bottom: 16px;
    }
}

.chat-bot-content form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}

