:root {
    --primary: #FFF8F5;
    --secondary: #EC7344;
    --orange-100: #FDEEE8;
    --orange-200: #F8CBBA;
    --orange-300: #FFF4CC;
    --blue-200: #CDE9E7;
    --blue-300: #E8E9FD;
    --blue-400: #F3F4F6;
    --grenn-100: #EDF7F7;
    --green: #3A827E;
    --sbw: 330px;
    --sbw-mini: 110px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #4E4E4E;
}

.custom-font {
    font-family: 'Kumbh Sans', sans-serif !important;
}

/*common css*/
.fs-14px {
    font-size: 14px !important;
}

.fs-13px {
    font-size: 13px;
}

.fs-12px {
    font-size: 12px;
}

.fs-10px {
    font-size: 10px;
}

.rounded-18px {
    border-radius: 18px !important;
}

.sidebar-shadow {
    box-shadow: 0px 4px 4px 0px #00000040;
    border-right: 1px solid #E5E3E3 !important;
}

.circle-34px {
    width: 34px;
    height: 34px;
}

.circle-45px {
    width: 45px;
    height: 45px;
}

.circle-61px {
    width: 61px;
    height: 61px;
}

.form-control:focus {
    box-shadow: none !important;
}

.rounded-bottom-end-0 {
    border-bottom-right-radius: 0 !important;
}

.rounded-top-start-0 {
    border-top-left-radius: 0 !important;
}

.shadow-circle {
    box-shadow: 0px 0px 8px 0px #00000040;
}

.custom-shadow {
    box-shadow: 0px 4px 4px 0px #00000033;
}

.border-green {
    border: 2px solid var(--green) !important;
}

.border-orange {
    border: 3px solid var(--orange-200) !important;
}

.text-orange {
    color: var(--secondary) !important;
}

.text-grey {
    color: #4E4E4E !important;
}

.text-green {
    color: var(--green);
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-gradient {
    background: radial-gradient(circle,rgba(222, 81, 26, 1) 0%, rgba(158, 44, 0, 1) 100%) !important;
}

.bg-gradient-green {
    background: linear-gradient(180deg, #C3DBDA 0%, #FFFFFF 26.74%);
}

.bg-gradient-orange {
    background: linear-gradient(180deg, #FEE9E0 0%, #FFFFFF 37.54%);
}

.gardient-shadow {
    box-shadow: 2px 2px 4px 2px #F2D7CC inset;
}

.orange-100 {
    background-color: var(--orange-100);
}

.orange-200 {
    background-color: var(--orange-200);
}

.orange-300 {
    background-color: var(--orange-300);
}

.blue-200 {
    background-color: var(--blue-200);
}

.blue-300 {
    background-color: var(--blue-300);
}

.blue-400 {
    background-color: var(--blue-400);
}

.greem-100 {
    background-color: var(--grenn-100);
}

.w-fit-content {
    width: fit-content !important;
}

.btn-primary {
    background: radial-gradient(circle,rgba(222, 81, 26, 1) 0%, rgba(158, 44, 0, 1) 100%) !important;
    border: none;
}

.btn-secondary {
    background: #FFFFFF !important;
    border: 0;
    color: var(--secondary);
}

    .btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus {
        background: #fff !important;
        color: var(--secondary) !important;
    }

.btn-img {
    background-image: url('/images/QuantumCopilot/btn-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card .card-body > div:last-child {
    margin-bottom: 0 !important;
}

/*offcanvas sidebar*/
.sidebar-scroll {
    max-height: calc(100vh - 348px);
}

.offcanvas.visible {
    width: var(--sbw);
}

@media (min-width: 992px) {
    .main-section {
        margin-left: var(--sbw);
        transition: margin-left 0.3s ease;
        min-height: 100vh;
    }

    .offcanvas.visible.mini ~ .main-section {
        margin-left: var(--sbw-mini);
    }

    .offcanvas.visible {
        transform: none !important;
        width: var(--sbw);
        max-width: 100%;
        transition: width .28s ease;
    }
}

.offcanvas.visible.mini {
    width: var(--sbw-mini);
}

    .offcanvas.visible.mini .offcanvas-header {
        padding: 0 !important;
        align-items: center !important;
    }

.hide-when-mini {
    display: block;
}

.offcanvas.visible.mini .hide-when-mini {
    display: none !important;
}

.logo-mini {
    display: none;
}

.logo-full {
    display: block;
}

.offcanvas.visible.mini .logo-full {
    display: none;
}

.offcanvas.visible.mini .logo-mini {
    display: block;
}

.offcanvas.visible.mini .offcanvas-body {
    opacity: 0;
}

.offcanvas.visible.mini .btn.btn-primary.btn-lg {
    padding: .5rem !important;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.offcanvas.visible.mini .btn-img {
    background-image: none;
    padding: 0;
}

    .offcanvas.visible.mini .btn-img > div > a {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(222, 81, 26, 1) 0%, rgba(158, 44, 0, 1) 100%);
    }

/* Mini mode default: show mini logo, hide toggle */
.offcanvas.visible.mini .sidebar-logo .logo-mini {
    opacity: 1;
    pointer-events: auto;
    transition: opacity .18s ease;
}

.offcanvas.visible.mini .sidebar-logo .sidebar-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

/* When hovering the offcanvas, header, or body → show toggle, hide mini logo */
.offcanvas.visible.mini:hover .sidebar-logo .logo-mini,
.offcanvas.visible.mini .offcanvas-header:hover .sidebar-logo .logo-mini,
.offcanvas.visible.mini .offcanvas-body:hover .sidebar-logo .logo-mini {
    opacity: 0;
    pointer-events: none;
}

.offcanvas.visible.mini:hover .sidebar-logo .sidebar-btn,
.offcanvas.visible.mini .offcanvas-header:hover .sidebar-logo .sidebar-btn,
.offcanvas.visible.mini .offcanvas-body:hover .sidebar-logo .sidebar-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Center mini/toggle in mini (keep them stacked at same spot) */
.offcanvas.visible.mini .sidebar-logo {
    position: relative;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 56px;
    cursor: e-resize;
}

    .offcanvas.visible.mini .sidebar-logo .logo-mini,
    .offcanvas.visible.mini .sidebar-logo .sidebar-btn {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        cursor: e-resize;
    }

/* Pointer cursor when mini and hoverable areas should feel clickable */
.offcanvas.visible.mini, .offcanvas.visible.mini .offcanvas-header, .offcanvas.visible.mini .offcanvas-body,
.offcanvas.visible.mini .offcanvas-body .card .card-body .sidebar-scroll a {
    cursor: e-resize !important;
}

.chat-section {
    box-shadow: 0px -1px 10px 0px #EC734426;
}

/*chat section*/
.chat-bubble {
    border-radius: 20px;
    border-bottom-left-radius: 2px;
}

.typing {
    height: 17px;
}

    .typing .dot {
        animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
        height: 7px;
        width: 7px;
    }

        .typing .dot:nth-child(1) {
            animation-delay: 200ms;
        }

        .typing .dot:nth-child(2) {
            animation-delay: 300ms;
        }

        .typing .dot:nth-child(3) {
            animation-delay: 400ms;
        }

        .typing .dot:last-child {
            margin-right: 0;
        }

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color: #0a3622;
    }

    28% {
        transform: translateY(-7px);
        background-color: #0a3622;
    }

    44% {
        transform: translateY(0px);
        background-color: #0a3622;
    }
}

.nav-pills .nav-link.active {
    background-color: #fff;
    font-weight: 600;
    color: #000;
}

.nav-pills .nav-link {
    color: #4E4E4E;
    border: none;
}

.custom-list-green li::before {
    content: "";
    background-image: url(/images/QuantumCopilot/right-green-icon.svg);
    top: 5px;
    width: 14px;
    height: 14px;
    position: absolute;
    left: 0;
    background-repeat: no-repeat;
    background-size: 14px;
}

.custom-list-orange li::before {
    content: "";
    background-image: url(/images/QuantumCopilot/right-orange-icon.svg);
    top: 5px;
    width: 14px;
    height: 14px;
    position: absolute;
    left: 0;
    background-repeat: no-repeat;
    background-size: 14px;
}

.min-h-100 {
    min-height: 100%;
}

.overflow-y-auto {
    padding-right: 8px;
}

    .overflow-y-auto::-webkit-scrollbar {
        width: 0px;
    }

    .overflow-y-auto::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
    }

    .overflow-y-auto::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
    }

.input-container {
    height: 148px;
}

textarea.form-control {
    overflow-y: hidden;
    max-height: calc(1.5em * 9 + 0.8rem);
    line-height: 1.5em;
}

textarea.scrollable {
    overflow-y: auto !important;
}

.chat-scroll {
    height: calc(100vh - 311px);
    padding-bottom: 0;
    transition: padding-bottom 0.2s ease;
}

/*App switch CSS*/
.custom-switch .form-check-input {
    transition: background-position .25s ease-in-out;
    background-color: #FFF3EE;
    box-shadow: 0px 0px 5px 0px #BA360040 inset;
    width: 170px;
    height: 44px;
    background-image: url(/images/QuantumCopilot/robot-icon.svg);
    background-repeat: no-repeat;
    background-size: 34px;
    background-position: 5px center;
}

    .custom-switch .form-check-input:checked {
        background-image: url(/images/QuantumCopilot/loanquntum-icon.svg);
        background-position: 128px center;
    }

    .custom-switch .form-check-input:focus {
        border-color: transparent;
    }

    .custom-switch .form-check-input:checked {
        background-color: #fff;
        border-color: transparent;
        box-shadow: 2px 2px 4px 2px #EDF7F7 inset;
    }

.custom-switch .chat-message {
    position: absolute;
    top: 17px;
    right: 15px;
    width: auto;
    font-size: 13px;
}

    .custom-switch .chat-message .copilot-link.two {
        display: none;
    }

.custom-switch .form-check-input:checked + .chat-message {
    left: 19px;
    right: auto;
}

    .custom-switch .form-check-input:checked + .chat-message .copilot-link.one {
        display: none;
    }

    .custom-switch .form-check-input:checked + .chat-message .copilot-link.two {
        display: inline-block;
    }

/*Voice Assistant CSS*/
.custom-switch-voice .form-check-input {
    border: none;
    transition: width 0.40s ease-in-out, background-position 0.40s ease-in-out, background-size 0.40s ease-in-out;
    background-color: #fff;
    width: 34px;
    height: 34px;
    background-image: url(/images/QuantumCopilot/mic.svg);
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: center;
}

    .custom-switch-voice .form-check-input:checked {
        background-image: url(/images/QuantumCopilot/mute-icon.svg);
        background-position: 138px center;
        width: 170px;
        background-size: 30px;
    }

    .custom-switch-voice .form-check-input:focus {
        border-color: transparent;
        box-shadow: none;
    }

    .custom-switch-voice .form-check-input:checked {
        background-color: #fff;
        border-color: transparent;
    }

    .custom-switch-voice .form-check-input:active {
        filter: none;
    }

.custom-switch-voice .chat-message {
    position: absolute;
    top: 9px;
    left: 9px;
    right: auto;
    transition: transform 0.40s ease-in-out, opacity 0.40s ease-in-out;
    z-index: -1;
}

    .custom-switch-voice .chat-message .copilot-link.two {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
    }

.custom-switch-voice .form-check-input:checked + .chat-message {
    z-index: 1;
}

    .custom-switch-voice .form-check-input:checked + .chat-message .copilot-link.two {
        visibility: visible;
        opacity: 1;
    }

#sidebar-arrow {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

    #sidebar-arrow.rotate-180 {
        transform: rotate(180deg);
    }

.two-line-clamp {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;
    transition: all .2s;
    cursor: pointer
}

    .two-line-clamp:hover {
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
        white-space: normal
    }


/* Blinking animation */
.glow-blink {
    animation: blink 0.6s ease-in-out 2;
}

@keyframes blink {
    0%, 100% {
        outline: 5px solid var(--primary);
        box-shadow: 0 0 6px var(--primary);
    }

    50% {
        outline: 5px solid var(--green);
        box-shadow: 0 0 12px var(--green);
    }
}


/*Seach Result Loader*/
.chat-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

    .chat-loader .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #e0e0e0;
        flex-shrink: 0;
    }

    .chat-loader .text-lines {
        flex: 1;
    }

    .chat-loader .line {
        height: 10px;
        background: #e0e0e0;
        border-radius: 4px;
        margin-bottom: 6px;
    }

        .chat-loader .line.long {
            width: 80%;
        }

        .chat-loader .line.short {
            width: 50%;
        }

    /* Shimmer animation */
    .chat-loader::before {
        content: "";
        position: absolute;
        top: 0;
        left: -150px;
        height: 100%;
        width: 150px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: shimmer 1.5s infinite;
    }

@keyframes shimmer {
    100% {
        transform: translateX(300%);
    }
}

.mark, mark {
    padding: 0;
    color: var(--bs-highlight-color);
    background-color: yellow;
}
/*Seach Result Loader*/
