﻿.ai-assistant-circle-component {
    position: fixed;
    bottom: 70px;
    inset-inline-end: 45px;
    z-index: 2147483646;
    /*    background-color: #fff;*/
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    /*    box-shadow: 0px 0px 5px #ccc;*/
    cursor: pointer;
}


.ai-assistant-message-component-container {
    position: fixed;
    bottom: 75px;
    inset-inline-end: 100px;
    width: 600px;
    height: 70px;
    z-index: 20000000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    box-shadow: 0px 0px 4px 0px rgba(26, 127, 213, 0.5);
    background: linear-gradient(0deg, #10203B 0%, #1E3152 100%);
    padding: 0rem;
    border-start-start-radius: 20px;
    border-start-end-radius: 20px;
    border-end-start-radius: 20px;
    transition: transform 0.5s ease-in-out, height 0.5s ease-in-out, inset-inline-end 0.5s ease-in-out;
    transform-origin: right;
    overflow: hidden;
    padding: 8px;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}


@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ai-assistant-message-component-container.active {
    height: 65px;
    inset-inline-end: 95px;
    padding: 0.5rem;
}

/*.ai-assistant-message-component-container .ai-assistant-message-container, .ai-assistant-message-component-container .close {
        transition: opacity 0.5s ease-in-out;
    }

    .ai-assistant-message-component-container:not(.active) .ai-assistant-message-container, .ai-assistant-message-component-container:not(.active) .close {
        opacity: 0;*/ /* Initially hidden */
/*transition: opacity 0.5s ease-in-out;
    }*/



/*----------------------------------------------------------------------------------------------------------------------------------------------------------*/



.ai-assistant-message-container {
    flex: 1;
    height: 55px;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------*/


.ai-assistant-planning-board-header {
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    background: rgb(40 62 99);
    transition: all 0.4s ease-in-out;
    position: sticky;
    /*    z-index: 100;*/
    top: 0;
}

.ai-assistant-planning-board-toggle-container img {
    margin-inline-end: 0.75rem;
/*    cursor: pointer;*/
}

    .ai-assistant-planning-board-toggle-container img:hover {
        opacity: 0.8;
    }

.ai-assistant-planning-board-toggle-container p {
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 1);
}

.ai-assistant-message-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(26, 35, 49, 1);
    padding: 12px;
    border-radius: 10px;
    margin-inline-end: 10px;
}

.ai-assistant-message-title {
    font-family: Poppins;
    font-weight: 400;
    font-size: 12px;
    color: rgba(254, 254, 254, 1);
    padding-inline-start: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55ch;
}

.ai-assistant-message-button-blue-color {
    font-family: Poppins;
    font-weight: 600;
    font-size: 9px;
    color: rgba(26, 127, 213, 1);
    margin-inline: 10px;
    cursor: pointer;
}


.ai-assistant-chat-component-container {
    position: fixed;
    bottom: 80px;
    /*    inset-inline-end: -56vw;*/
    min-width: 600px;
    /*    width: fit-content;*/
    height: 0;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    box-shadow: 0px 4px 4px 0px rgba(26, 127, 213, 0.5);
    background: linear-gradient(0deg, #10203B 0%, #1E3152 100%);
    padding: 0rem;
    border-end-start-radius: 20px;
    border-start-end-radius: 20px;
    border-start-start-radius: 20px;
    border-end-end-radius: 0px;
    transition: all 0.35s ease-in-out;
    transform-origin: right;
    overflow: hidden;
}

    .ai-assistant-chat-component-container.active {
        height: 75vh;
        inset-inline-end: 95px;
        border-end-start-radius: 10px;
        border-start-end-radius: 10px;
        border-start-start-radius: 10px;
        border-end-end-radius: 0px;
        /*        padding: 0.5rem;*/
    }

    .ai-assistant-chat-component-container .collapse {
        margin-inline-end: 12px;
        cursor: pointer;
    }

    .ai-assistant-chat-component-container .ai-assistant-chat-container, .ai-assistant-chat-component-container .close, .ai-assistant-chat-component-container .collapse {
        transition: opacity 0.5s ease-in-out;
    }

    .ai-assistant-chat-component-container:not(.active) .ai-assistant-chat-container, .ai-assistant-chat-component-container:not(.active) .close, .ai-assistant-chat-component-container:not(.active) .collapse {
        opacity: 0; /* Initially hidden */
        transition: opacity 0.5s ease-in-out;
    }



.ai-assistant-history-container {
    background: linear-gradient(0deg, #0c1b35f5 23.88%, #223658f5 96.13%);
    /*    padding: 0.5rem;*/
    /*        min-width: 235px;*/
    width: 30%;
    height: calc(100% - 45px);
    transition: all 0.4s ease-in-out;
    margin-right: auto; /* THIS is the key to anchor it to the right */
    /*   padding-top: 45px;*/
}

    .ai-assistant-history-container.zero-width {
        width: 0;
        /*        min-width: 0px;*/
    }

    .ai-assistant-history-container * {
        opacity: 1;
        transition: opacity 1.5s ease;
    }

    .ai-assistant-history-container.zero-width * {
        opacity: 0;
        transition: opacity 0.2s ease;
    }

.ai-assistant-history-dot {
    width: 4px;
    height: 4px;
    background-color: rgba(219, 237, 255, 1);
    border-radius: 50%;
    /*    margin-top: 0.5rem !important;*/
}

.ai-assistant-history-title {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: rgba(219, 237, 255, 1);
}

.ai-assistant-history-element {
    margin-bottom: 2px;
    padding: 0.5rem;
    background: rgba(49, 74, 116, 0.2);
}

.ai-assistant-history-elements-container {
    height: 100%;
    overflow: auto;
}

.ai-assistant-history-delete-icon {
    cursor: pointer;
    display: flex;
}

.ai-assistant-new-chat-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-inline-end: 16px;
    padding-inline-start: 8px;
    opacity: 1;
    /*    width: 60%;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);*/
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .ai-assistant-new-chat-button:hover {
        opacity: 0.7;
    }

/*.ai-assistant-new-chat-button-title {
    font-weight: 400;
    font-size: 10px;
    color: rgba(34, 54, 88, 1);
    padding-inline-start: 5px;
    transition: all 0.2s ease-in-out;
}*/

/*.ai-assistant-new-chat-button:hover .ai-assistant-new-chat-button-title {
    color: #fff;
}*/
/*
.ai-assistant-new-chat-button:hover img {
    filter: invert(1) brightness(1.5);
}*/

.ai-assistant-conversation-container {
    min-width: 600px;
    width: 70%;
    background: linear-gradient(0deg, #0C1B35 23.88%, #223658 96.13%);
    backdrop-filter: blur(20px);
    box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.25);
    flex-grow: 1;
    transition: all 0.4s ease-in-out;
    margin-left: auto; /* THIS is the key to anchor it to the right */
}

.ai-assistant-conversation-chat-input-container {
    position: absolute;
    bottom: 0px;
}

.ai-assistant-conversation {
    width: 100%;
    padding: 1rem;
    height: calc(100% - 125px);
    overflow: auto;
    /*    margin-top: 50px;*/
}

.ai-assistant-conversation-sent-message {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: end;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    width: fit-content;
    height: fit-content;
    border-radius: 10px;
    padding-inline: 20px;
    padding-block: 8px;
    margin-bottom: 0.5rem;
    max-width: 90%;
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 1);
    user-select: text;
}

.ai-assistant-conversation-date-user {
    display: flex;
    justify-self: end;
    align-items: center;
    padding-inline: 0.25rem;
}

    .ai-assistant-conversation-date-user span, .ai-assistant-conversation-date-recieved span {
        font-weight: 300;
        font-size: 10px;
        line-height: 18px;
        color: rgba(219, 237, 255, 1);
    }

        .ai-assistant-conversation-date-user span:first-child, .ai-assistant-conversation-date-recieved span:first-child {
            margin-inline-end: 20px;
        }

.ai-assistant-conversation-date-recieved {
    display: flex;
    justify-self: start;
    align-items: center;
}

.ai-assistant-conversation-recevied-message {
    width: fit-content;
    max-width: 90%;
    height: fit-content;
    justify-self: start;
    border-radius: 10px;
    padding-inline: 10px;
    padding-block: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: start;
    background: #fff;
    margin-bottom: 0.5rem;
}

    .ai-assistant-conversation-recevied-message img {
        margin-inline: 4px;
    }

    .ai-assistant-conversation-recevied-message .copy-icon {
        cursor: pointer;
    }

.ai-assistant-conversation-recevied-message-content {
    word-break: break-word;
    width: 90%;
    font-weight: 400;
    font-size: 12px;
    color: #fff;
}

.ai-assistant-conversation-suggestion-element {
    width: fit-content;
    height: 24px;
    border-radius: 15px;
    gap: 10px;
    border: 1px solid rgba(183, 207, 224, 1);
    padding-top: 5px;
    padding-right: 8px;
    padding-bottom: 5px;
    padding-left: 8px;
    background: rgba(205, 218, 240, 1);
    max-width: 90%;
    font-weight: 400;
    font-size: 12px;
    color: rgba(70, 89, 120, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline-end: 8px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.ai-assistant-conversation-suggestions {
    display: flex;
    align-items: start;
    margin-bottom: 0.5rem;
}

.ai-assistant-conversation-recevied-error-info {
    width: 85%;
    max-width: 90%;
    height: fit-content;
    justify-self: start;
    border-radius: 10px;
    padding-inline: 10px;
    padding-block: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: start;
    /*    background: #fff;*/
    margin-bottom: 0.5rem;
    user-select: text;
}

    .ai-assistant-conversation-recevied-error-info.ai-answer {
        background-color: rgb(30 58 138 / .2) !important;
    }


    .ai-assistant-conversation-recevied-error-info:not(:has(.ai-assistant-conversation-date-recieved)) {
        align-items: start !important;
    }

.ai-assistant-message-content-table .rz-tick-text, .ai-assistant-message-content-table .rz-legend-item-text {
    fill: #fff;
    font-size: 12px;
}

.ai-assistant-message-content-table .rz-axis-title, .ai-assistant-message-content-table .rz-donut-title {
    fill: #fff;
    font-size: 14px;
}

.ai-assistant-message-content-table .rz-legend-item-text {
    color: #fff;
}

.ai-assistant-message-content-table .rz-chart {
    width: 100%;
}

.ai-assistant-message-content-table .rz-chart-tooltip {
    transform: translate(-15%, -45%) !important;
}

.ai-assistant-message-content-table .kpi-card {
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 16px;
    min-width: 200px;
    max-width: 350px;
    transition: transform 0.2s ease-in-out;
}

    .ai-assistant-message-content-table .kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.ai-assistant-message-content-table .kpi-header {
    margin-bottom: 16px;
}

.ai-assistant-message-content-table .kpi-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.ai-assistant-message-content-table .kpi-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.3;
}

.ai-assistant-message-content-table .kpi-content {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ai-assistant-message-content-table .kpi-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.ai-assistant-message-content-table .kpi-unit {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.ai-assistant-message-content-table .kpi-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .ai-assistant-message-content-table .kpi-change.positive {
        background-color: rgba(34, 197, 94, 0.1);
        color: #059669;
    }

    .ai-assistant-message-content-table .kpi-change.negative {
        background-color: rgba(239, 68, 68, 0.1);
        color: #dc2626;
    }

.ai-assistant-message-content-table .change-indicator {
    font-size: 12px;
}

.ai-assistant-message-content-table .cards-grid {
    display: flex;
    flex-wrap: wrap;
}

.ai-assistant-message-content-table .kpi-description {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.4;
}

/* Theme Blue */
.ai-assistant-message-content-table .theme-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

/* Theme Green */
.ai-assistant-message-content-table .theme-green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
}

/* Theme Orange */
.ai-assistant-message-content-table .theme-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

/* Theme Purple */
.ai-assistant-message-content-table .theme-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
}




.ai-assistant-conversation-recevied-error-info img:not(.response-img) {
    margin-inline: 2px;
}

img.thumbs-up-icon, img.thumbs-down-icon {
    /*    width: 24px !important;*/
}

.ai-assistant-conversation-recevied-error-info img:not(.response-img):hover {
    background-color: rgb(0 0 0 / 19%);
    border-radius: 8px;
    cursor: pointer;
}

.ai-assistant-conversation-recevied-error-info img:not(.response-img, .thumbs-up-icon, .thumbs-down-icon) {
    padding: 8px;
}

.ai-assistant-conversation-recevied-error-info img.thumbs-down-icon, .ai-assistant-message-content-table img.thumbs-down-icon,
.ai-assistant-conversation-recevied-error-info img.thumbs-up-icon, .ai-assistant-message-content-table img.thumbs-up-icon {
    padding: 6px;
}

    .ai-assistant-conversation-recevied-error-info img.thumbs-up-icon:hover, .ai-assistant-message-content-table img.thumbs-up-icon:hover {
        cursor: pointer;
    }

    .ai-assistant-conversation-recevied-error-info img.thumbs-down-icon:hover, .ai-assistant-message-content-table img.thumbs-down-icon:hover {
        cursor: pointer;
    }

.ai-assistant-conversation-recevied-error-info img.response-img {
    margin-inline: 8px;
}

.ai-assistant-conversation-recevied-error-info .copy-icon img, .ai-assistant-conversation-recevied-error-info .norma-icon img {
    cursor: pointer;
    margin-inline: 4px;
}

.ai-assistant-conversation-recevied-error-info .copy-icon img {
    width: 32px;
}

.ai-assistant-conversation-recevied-error-info-content {
    word-break: break-word;
    width: 90%;
    font-weight: 400;
    font-size: 12px;
    color: #fff;
}

.ai-assistant-processing-animation p {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
}

.ai-assistant-processing-animation img {
    width: 26px;
    margin-inline-start: 20px;
    margin-block-end: 16px;
}

.chat-input-container {
    display: flex;
    flex-direction: column;
    /*    align-items: center;*/
    background-color: transparent;
    padding-block: 10px;
    padding-inline-start: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(70, 89, 120, 1);
    width: 100%;
    height: 74px;
    max-height: 74px;
    border-radius: 9px;
    position: relative;
    transition: all ease-in-out 0.3s;
}

    .chat-input-container:focus-within {
        border-color: rgba(26, 127, 213, 1); /* blue or whatever you like */
    }

    /* Search Icon */
    .chat-input-container .icon {
        font-size: 16px;
        color: #555;
        margin-right: 10px;
    }

    /* Input Field */
    .chat-input-container .chat-input {
        /*        flex: 1;*/
        width: 88%;
        border: none;
        outline: none;
        font-weight: 400;
        font-size: 13px;
        padding-inline-start: 6px;
        /*        line-height: 100%;*/
        color: rgba(255, 255, 255, 1);
        background-color: transparent;
    }

    /* Right Icons */
    .chat-input-container .right-icons {
        display: flex;
        align-items: center;
    }

        .chat-input-container .right-icons img {
            font-size: 16px;
            color: #555;
            margin: 0 8px;
            cursor: pointer;
        }

.ai-assistant-attachFile-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    position: absolute;
    bottom: 10px;
    inset-inline-end: 45px;
}

.ai-assistant-attachFile-icon {
    width: 14px;
}

.assistant-attachment-container {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.3);
    width: fit-content;
    padding: 2px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    position: relative;
    bottom: -10px;
    inset-inline-start: 6px;
}

.remove-assistant-attachment {
    border-radius: 50%;
    position: absolute;
    top: -6px;
    inset-inline-end: -8px;
    background-color: rgba(255, 255, 255, 0.3);
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #fff;
    font-weight: 100;
    cursor: pointer;
}

.ai-assistant-attach-icon {
    /*    width: 30px;
    height: 30px;*/
    cursor: pointer;
}

.ai-assistant-fileName {
    font-size: 10px;
    color: #ffffffcc;
}

#ai-assistant-fileInput {
    display: none;
}

/* Send Button */
.chat-input-container .ai-assistant-send-button.filled {
    background-color: #28c76f;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    pointer-events: auto;
    align-items: center;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    inset-inline-end: 10px;
    transition: all 0.2s ease-in-out;
}

.chat-input-container .ai-assistant-send-button {
    background-color: rgba(70, 89, 120, 1);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    position: absolute;
    bottom: 10px;
    inset-inline-end: 10px;
    transition: all 0.2s ease-in-out;
}

    .chat-input-container .ai-assistant-send-button img {
        width: 16px;
        margin-top: 3px;
        margin-inline-end: 1.5px;
    }

/* Hover Effects */
.chat-input-container .right-icons img:hover,
.chat-input-container .send-button:hover {
    opacity: 0.8;
}

/* table */


.ai-assistant-conversation-received-message {
    width: 100%;
    background: transparent;
    padding: 10px;
    margin: 0;
    overflow: auto;
}

.ai-assistant-message-content {
    width: 100%;
}

.ai-assistant-message-content-table {
    background: rgb(30 58 138 / .2) !important;
    border-radius: 10px;
    width: 90%;
    position: relative;
}

.table-ai-assistant {
    width: 100%;
    margin-bottom: 0;
    /*    background-color: #fff !important;*/
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    overflow-x: auto;
}


    .table-ai-assistant thead {
        background-color: rgba(12, 27, 53, 1);
        color: white;
    }

        .table-ai-assistant thead th {
            padding: 10px !important;
            vertical-align: middle !important;
            font-size: 11px !important;
            font-weight: 400 !important;
            white-space: nowrap;
        }

            .table-ai-assistant thead th:not(:last-child)::after {
                border: 1px solid rgb(148 148 148 / 67%) !important;
                content: '';
                position: absolute;
                top: 15%; /* Adjust this to control vertical position */
                inset-inline-end: 0;
                height: 70%; /* Adjust this to control height of the line */
                /*                width: 1px;*/
                /*                background-color: rgba(110, 110, 110, 1);*/
            }



    .table-ai-assistant tbody td {
        /* background-color: rgba(255, 255, 255, 0.9); */
        padding: 10px;
        vertical-align: middle;
        text-overflow: ellipsis;
        overflow: hidden;
        color: #000;
        white-space: nowrap;
        font-size: 10px !important;
        font-weight: 400 !important;
        text-align: start !important;
    }

    /*    .table-ai-assistant tbody tr:nth-child(even) td {
        background-color: rgba(236, 240, 241, 0.6);
    }

   */
    .table-ai-assistant tbody tr:hover td {
        background-color: rgba(43, 81, 148, 1);
        transition: all 0.3s ease;
        color: #000;
    }

.text-muted {
    color: #7f8c8d;
    /*    font-style: italic;*/
}

.ai-assistant-message-content-table-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    /*    width: 100%;*/
}

    .ai-assistant-message-content-table-btn:hover, .ai-assistant-message-content-table-btn.active {
        background-color: rgb(0 0 0 / 19%);
        border-radius: 8px;
        cursor: pointer;
    }

/*.ai-assistant-answer-view div {
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    font-weight: 400;
    font-size: 10px;
    color: #fff;
}*/

.ai-assistant-answer-view img {
    width: 24px;
    padding: 6px;
}

.ai-assistant-answer-view:hover {
    background-color: rgb(0 0 0 / 19%);
    border-radius: 8px;
    cursor: pointer;
}

.ai-assistant-actions-table {
    background-color: rgb(56 70 90);
    padding: 10px;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.ai-assistant-table-title {
    background-color: rgb(56 70 90);
    padding: 10px;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

    .ai-assistant-table-title p {
        font-weight: 500;
        font-size: 15px;
        color: #fff;
    }

.ai-assistant-message-content-table-btn span {
    font-weight: 400;
    font-size: 10px;
    color: #fff;
}

.ai-assistant-message-content-table-btn img.export-icon {
    /*        filter: contrast(4.5) brightness(61.5);*/
    /*        width: 11px;*/
    margin-inline-end: 2px;
}

.ai-assistant-message-content-table-btn img.dashboard-icon {
    /*    width: 16px;*/
}

/* Resizers */
.resizer {
    position: absolute;
    /*    background: #888;*/
    z-index: 10;
}

    .resizer.top,
    .resizer.bottom {
        height: 6px;
        width: 100%;
        cursor: ns-resize;
    }

    .resizer.left,
    .resizer.right {
        width: 6px;
        height: 100%;
        cursor: ew-resize;
    }

    .resizer.top-left,
    .resizer.top-right,
    .resizer.bottom-left,
    .resizer.bottom-right {
        width: 10px;
        height: 10px;
        z-index: 11;
    }

    .resizer.top-left {
        top: 0;
        left: 0;
        cursor: nwse-resize;
    }

    .resizer.top-right {
        top: 0;
        right: 0;
        cursor: nesw-resize;
    }

    .resizer.bottom-left {
        inset-block-end: 0;
        inset-inline-start: 0;
        cursor: nesw-resize;
    }

    .resizer.bottom-right {
        bottom: 0;
        right: 0;
        cursor: nwse-resize;
    }

    .resizer.top {
        top: 0;
        left: 0;
    }

    .resizer.bottom {
        bottom: 0;
        left: 0;
    }

    .resizer.left {
        left: 0;
        top: 0;
    }

    .resizer.right {
        right: 0;
        top: 0;
    }


/*new style of new ai assistant ---------------------------------------------------*/


.dialog-container {
    position: relative;
}

.open-dialog-btn {
    padding: 10px 20px;
    /*background: #007bff;*/
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

    .open-dialog-btn:hover {
        background: #0056b3;
    }

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /*background: rgba(0, 0, 0, 0.5);*/
    z-index: 100000000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .dialog-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.resizable-dialog {
    position: fixed;
    border-start-start-radius: 10px;
    border-start-end-radius: 10px;
    border-end-start-radius: 10px;
    transition: transform 0.5s ease-in-out, height 0.5s ease-in-out, inset-inline-end 0.5s ease-in-out;
    backdrop-filter: blur(20px);
    box-shadow: 0px 0px 4px 0px rgba(26, 127, 213, 0.5);
    background: linear-gradient(0deg, #10203B 0%, #1E3152 100%);
    overflow: hidden;
    width: 0;
    height: 0;
    bottom: 80px;
    inset-inline-end: 95px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s ease;
    min-width: var(--dialog-min-width, 600px);
    min-height: 550px;
    user-select: none;
    transform-origin: bottom right;
}

[dir="rtl"] .resizable-dialog {
    transform-origin: bottom left;
}

.resizable-dialog.open {
    width: var(--dialog-min-width, 600px);
    height: 550px;
}

.dialog-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .dialog-header h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        color: #000;
    }

.dialog-content {
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    background: transparent;
    z-index: 10;
}

.resize-top {
    top: 0;
    left: 10px;
    right: 10px;
    height: 4px;
    cursor: n-resize;
}

.resize-start {
    top: 10px;
    bottom: 10px;
    inset-inline-start: 0;
    width: 4px;
    cursor: ew-resize;
}

.resize-end {
    top: 10px;
    bottom: 10px;
    inset-inline-end: 0;
    width: 4px;
    cursor: ew-resize;
}

.resize-top-start {
    top: 0;
    inset-inline-start: 0;
    width: 10px;
    height: 10px;
    cursor: nw-resize;
}

.resize-top-end {
    top: 0;
    inset-inline-end: 0;
    width: 10px;
    height: 10px;
    cursor: ne-resize;
}

/* RTL support */
[dir="rtl"] .resize-top-start {
    cursor: ne-resize;
}

[dir="rtl"] .resize-top-end {
    cursor: nw-resize;
}

/* Hover effects for resize handles */
.resize-handle:hover {
    background: rgba(0, 123, 255, 0.3);
}

/*-----------------------------------------------------------------------------------------------------------------------------------------------------------*/

.ai-assistant-chat-container {
    display: flex;
    height: calc(100% - 45px);
    transition: width 0.3s ease, opacity 1.5s ease;
    overflow: hidden;
}

/* Chat History Panel Styles */
.ai-assistant-history-container {
    width: 0;
    opacity: 0;
    overflow: hidden;
    flex-shrink: 0;
}

    .ai-assistant-history-container.expanded {
        width: var(--chat-history-width, 250px);
        opacity: 0.85;
        transition: width 0.3s ease, opacity 1.5s ease;
    }

        .ai-assistant-history-container.expanded .ai-assistant-history-elements-container {
            opacity: 1;
            transition: width 0.3s ease, opacity 1.5s ease;
        }

    .ai-assistant-history-container.collapsed .ai-assistant-history-elements-container {
        opacity: 0;
        transition: width 0.3s ease, opacity 0.1s ease;
    }

    .ai-assistant-history-container.collapsed {
        transition: width 0.3s ease, opacity 1.5s ease;
        width: 0;
        opacity: 0;
    }

.collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 32px;
    height: 32px;
}

    .collapse-btn:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    .collapse-btn img {
        width: 20px;
        height: 20px;
    }

/* Main Conversation Container - Always keeps full width */
.ai-assistant-conversation-container {
    flex: 1;
    min-width: 0px;
    display: flex;
    flex-direction: column;
}

.ai-assistant-conversation {
    /*    flex: 1;*/
    overflow-y: auto;
    padding: 20px;
}

.ai-assistant-conversation-chat-input-container {
    flex-shrink: 0;
}

/* Header styles */
.ai-assistant-planning-board-header {
/*    cursor: move;
*/    height: 45px;
    flex-shrink: 0;
}

/*----------------------------------------------------------------------------like and dislike----------------------------------------------------- */
/* Thumbs Icons CSS - Font Awesome Style */

.thumbs-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
    transition: all 0.3s ease;
}

    /* Size variations */
    .thumbs-icon.small {
        width: 0.875em;
        height: 0.875em;
    }

    .thumbs-icon.large {
        width: 1.25em;
        height: 1.25em;
    }

    .thumbs-icon.xl {
        width: 1.5em;
        height: 1.5em;
    }

    .thumbs-icon.xxl {
        width: 2em;
        height: 2em;
    }

    /* Color variations */
    .thumbs-icon.success {
        color: #28a745;
    }

    .thumbs-icon.danger {
        color: #dc3545;
    }

    .thumbs-icon.primary {
        color: #007bff;
    }

    .thumbs-icon.secondary {
        color: #6c757d;
    }

    .thumbs-icon.warning {
        color: #ffc107;
    }

    .thumbs-icon.info {
        color: #17a2b8;
    }

    /* Interactive states */
    .thumbs-icon.interactive {
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .thumbs-icon.interactive:hover {
            transform: scale(1.1);
            opacity: 0.8;
        }

        .thumbs-icon.interactive:active {
            transform: scale(0.95);
        }

/* Specific thumbs styling */
.thumbs-up {
    color: #28a745;
}

.thumbs-down {
    color: #dc3545;
}

.thumbs-up.interactive:hover {
    color: #218838;
}

.thumbs-down.interactive:hover {
    color: #c82333;
}

/* Button integration */
.btn-thumbs {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-thumbs:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .btn-thumbs:focus {
        outline: 2px solid rgba(0, 123, 255, 0.5);
        outline-offset: 2px;
    }

    .btn-thumbs.active {
        background-color: rgba(0, 0, 0, 0.15);
    }

/* Rating system */
.thumbs-rating {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

    .thumbs-rating .thumbs-icon {
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }

        .thumbs-rating .thumbs-icon.selected {
            opacity: 1;
        }

/* Notification badges */
.thumbs-badge {
    position: relative;
    display: inline-block;
}

    .thumbs-badge::after {
        content: attr(data-count);
        position: absolute;
        top: -8px;
        right: -8px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

/* Animation keyframes */
@keyframes thumbsUp {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(-10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes thumbsDown {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.thumbs-icon.animate-up {
    animation: thumbsUp 0.6s ease;
}

.thumbs-icon.animate-down {
    animation: thumbsDown 0.6s ease;
}

.add-to-dashboard-dialog-container .rz-multiselect .rz-placeholder, .add-to-dashboard-dialog-container .rz-dropdown .rz-placeholder,
.add-to-dashboard-dialog-container .rz-multiselect-label-container, .add-to-dashboard-dialog-container .rz-dropdown-label {
    margin-top: 3px;
    color: #fff !important;
    cursor: pointer;
    font-size: 12px !important;
}

.add-to-dashboard-dialog-container .rz-textbox {
    color: #fff !important;
    border: 0.5px solid rgba(95, 113, 148, 1) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    font-size: 12px !important;
}

.add-to-dashboard-dialog-container .rz-multiselect, .add-to-dashboard-dialog-container .rz-dropdown {
    border: 0.5px solid rgba(95, 113, 148, 1) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    cursor: pointer;
}

.ai-assistant-message-content-table .rz-category-axis .rz-tick-text {
    transform: rotate(29deg);
    transform-box: border-box;
    /* top: -20px; */
    /* position: absolute; */
    /* margin-bottom: 22px; */
    transform-origin: center;
}
