html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    vertical-align: text-top;
} 
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/*reset end*/

/* Border-Box */

*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/* iPad Input Shadows */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  /* mobile firefox too! */
}

/**************************************************************/


html {
  font-family: sans-serif;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}


body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

:root {
  --primarycolor: #5856fd;
  --primaryalt: #00b3aa;
  --primarygreen: #00b3aa;
  --primaryred: #de284a;
  --primarytitle: #5e6577;
  --primarydark: #212325;
  --primarydark2: #536176;
  --primarydark3: #777c83;
  --primarylight: #9fabb8;
  --primarydarkblue: #006987;
  --primarylime: #B2CB3B;
  --buttonbg: #00ABB7;
  --buttontext: #ffffff;
  --lightbg: #e4eeef;
  --lightbg2: #fbfcfe;
  --background: #fbfcfe;
}


body {
    font-family: Arial, sans-serif;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    padding-bottom: 60px;
    overflow: hidden;
}

input, textarea {
    font-family: 'Manrope', sans-serif;
}

#main-content {
    margin: 0 auto;
    padding: 0px;
    white-space: nowrap;
}

.left-sidebar {
    width: 250px;
    background-color: #fff;
    height: 100vh;
    display: inline-block;
    white-space: normal;
    border-right: 1px solid #8095d521;
    position: absolute;
    left: 0px;
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}

.main-content-sec {
    display: inline-block;
    width: calc(100% - 250px);
    vertical-align: top;
    white-space: normal;
    margin-left: 250px;
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}

h1 {
    color: #2c3e50;
    color: #fff;
    padding: 11px 30px 7px 30px;
    margin-bottom: 0px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 15px 0px 2px 0px;
    position: relative;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 12px 0px 2px 0px;
    position: relative;
}

strong {
    font-weight: 600;
    vertical-align: baseline;
}


.ai-message a {
    color: #536284;
    font-weight: 500;
}

.ai-message a:visited {
    color: #536284;
    font-weight: 500;
}

.ai-message a:hover {
    color: var(--primarycolor);
}


.top-sec {
    display: flex;
    position: relative;
    width: 100%;
    height: 50px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0px solid var(--primarycolor);
    background-color: var(--primarycolor);
}

.whitelabeled .top-sec {
    background-color: #3e404c;
}

.top-sec h1 {line-height: 1em;padding: 11px 30px 5px 30px;}

.ai-title-tag {
    display: inline-block;
    font-size: 9px;
    text-transform: uppercase;
    background-color: #16142d47;
    border-radius: 5px;
    padding: 2px 3px;
    margin: 2px 0px 0px 4px;
    position: absolute;
    line-height: 1em;
    color: #ffffff8f;
    font-weight: 900;
    letter-spacing: 0.03em;
    background-color: #fff;
    color: var(--primarycolor);
    opacity: 1;
}
.ai-title-tag:hover {
    opacity: 0.9;
}

.top-sec-left {
    max-width: 70vw;
}

@media (max-width: 566px) and (min-width: 490px) {
.leftside-open .top-sec-left {
    max-width: calc(70vw - 170px);
}
}

.top-sec-right {
    padding: 20px;
    padding-right: 0px;
    margin-top: 15px;
}

.ai-top-sec-right {
    width: 144px;
    margin: 0px 83px -1px 0px;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    border-right: 1px solid #00000026;
    padding-right: 27px;
}

@media (max-width: 700px) {
.leftside-open .ai-top-sec-right {
    width: 75px;
}
}

@media (max-width: 440px) {
.ai-top-sec-right {
    margin-right: 61px;
    border-right: 0px solid #00000026;
    padding-right: 15px;
}
}

.top-sec-right .top-sec-icon {
    display: flex;
    width: 100%;
    justify-content: normal;
    align-items: center;
    border-bottom: 1px solid #1b49760d;
    padding: 9px 0px;
    margin: 0px;
    position: relative;
}

/*hide the afbout advertiser dataset*/
span[id^="data-icon-dr-platform-advertiser-info-"] {
    display: none !important;
}
/*hide the afbout agency dataset*/
span[id^="data-icon-dr-platform-agency-info-"] {
    display: none !important;
}

.side-data-x {
    display: inline-block;
    position: absolute;
    right: -4px;
    background-color: #6e6d9b14;
    padding: 3px 5px;
    line-height: 1em;
    height: 18px;
    border-radius: 5px;
    color: #9fa4bd;
    font-size: 13px;
}

.side-data-x:hover {
    background-color: #5856fd;
    color: #fff;
}


.top-sec-icon {
    color: #9b9dc0;
    cursor: pointer;
    position: relative;
    margin: 17px 0px;
}

.top-sec-icon:hover {
    color: var(--primarycolor);
}

.data-truncation-alert {
    position: relative;
    top: 2px;
    right: 19px;
    color: #ff9800;
    font-size: 12px;
}
.data-truncation-alert:hover {
    color: #ffb74d;
}

.data-truncation-alert:hover::after {
    content: 'Large dataset, AI analysis limited to first 100 rows';
    position: absolute;
    width: 143px;
    right: 14px;
    top: -8px;
    white-space: normal;
    line-height: 1.1em;
    background-color: #ff9800;
    border-radius: 4px;
    padding: 4px 2px 4px 4px;
    font-weight: 500;
    font-size: 11px;
    color: #fff;
}

.data-alert-note {
    margin: 15px 0px 16px 0px;
    padding: 10px 15px;
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #ff9800;
    border-radius: 2px 5px 5px 2px;
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
    font-style: italic;
}

.data-alert-note i {
    color: #ff9800;
    margin-right: 5px;
    position: relative;
    top: 1px;
    font-size: 15px;
}



.top-sec-icon.upload-data {
    display: inline-block;
    background-color: var(--primarycolor);
    color: #fff;
    width: auto;
    padding: 4px 5px;
    line-height: 1em;
    border-radius: 5px;
    height: 23px;
    font-size: 15px;
    margin: 1px 0px 10px 0px;
}
.top-sec-icon.upload-data:hover {
filter: brightness(1.2);
}


.data-label {
    display: inline-block;
    margin: -10px 0px -10px 5px;
    font-size: 13px;
    line-height: 1.1em;
    max-width: calc(100% - 96px);
    min-width: calc(100% - 96px);
    text-overflow: ellipsis;
    overflow: hidden;
    color: #797e93;
    white-space: nowrap;

}
.data-label:hover {
    max-height: 29px;
    white-space: normal;
    overflow-y: auto;
    min-height: 16px;
}

#datasets-wrap .data-label {
    font-size: 12px;
}

.dataset-loader {
    position: absolute;
    z-index: 5;
    display: inline-block;
    width: 40px;
    height: 40px;
    left: 50%;
    top: 50%;
    margin: -30px 0px 0px -20px;
    background-color: #fdfdfd;
    border-radius: 50%;
    padding: 4px 5px 5px 5px;
    display: none;
}
.dataset-loader.show {
    display: inline-block;
}

.ai-spinner-img {
    width: 30px;
    height: 30px;
}

.ai-data-loader {
    font-size: 40px;
    color: var(--primarycolor);
}


/* Styles for excluded datasets */
.data-set-excluded {
    opacity: 0.6;
    position: relative;
}

/* Add a visual indicator */
.data-set-excluded::after {
    content: "";
    position: absolute;
    top: 0px;
    left: -5px;
    right: 0;
    bottom: 0;
    border: 1px solid rgb(255 165 0 / 13%);
    border-radius: 5px;
    padding: 11px;
    width: calc(100% + 12px);
    background-color: #f470000f;
    z-index: 1;
    pointer-events: none;
}

/* Create a tooltip to explain why the dataset is excluded */
.data-set-excluded .data-label::after {
    padding: 0px 4px;
    content: "Excluded";
    display: block;
    font-size: 0.75em;
    color: #d58a2c;
    white-space: nowrap;
    margin-top: 0px;
    position: absolute;
    background-color: #fffaf6;
    z-index: 2;
    top: 8px;
    border: 1px solid #f8e5cb;
    border-radius: 30px;
    font-weight: 600;
    right: 68px;
}

.data-set-excluded .data-label:hover::after {
    display: none;
}

/* Adjust spacing for the excluded indicator text */
.data-set-excluded .data-label {
    padding-right: 5px;
}


/* Dataset size display styles */
.data-size-display {
    position: absolute;
    top: calc(50% - 8px);
    right: 19px;
    font-size: 10px;
    background: transparent;
    color: #8895b5;
    border-radius: 4px;
    padding: 0px 3px;
    z-index: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    display: inline-block;
    visibility: visible;
    pointer-events: none;
    font-weight: 900;
    width: auto;
    left: auto;
}

.top-sec-icon:hover .data-size-display {
    opacity: 1;
}

/* Warning and danger states */
.data-size-display.size-warning {
    color: #f19359;
}

.data-size-display.size-danger {
    color: #f16259;
}

#datasets-wrap .top-sec-icon i {
    font-size: 12px;
    opacity: 0.9;
}

/*#datasets-wrap input.dataset-checkbox {
    transform: scale(1.14);
    transform-origin: left;
}
*/

.datasets-footer-left {
    margin-right: 15px;
}

.datasets-footer-right {
    width: 100%;
}

.datasets-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 20px 0px 0px;
}
.datasets-totals {
    font-size: 12px;
    position: relative;
}


/* Total size display */
#total-size-display {
    padding: 0px 3px;
    background: rgb(35 58 110 / 7%);
    border-radius: 6px;
    font-size: 12px;
    margin: 0px 0px 0px 0px;
    width: calc(100% - 41px);
    position: absolute;
    bottom: -9px;
    left: 30px;
    z-index: 4;
    background-color: #fff;
}

.size-title {
    font-size: 0.93em;
    font-weight: bold;
    margin-bottom: 3px;
    line-height: 1.1em;
}

.size-bar-container {
    height: 6px;
    background: rgb(66 82 153 / 9%);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2px;
}

.size-bar {
    height: 100%;
    background: var(--primarycolor, #5856fd);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.size-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.datasets-footer.size-warning .size-bar {
    background: #fcaa30;
}

.datasets-footer.size-danger .size-bar {
    background: #fb4141;
}

.current-size {
    font-weight: bold;
}

.max-size {
    opacity: 0.7;
    display: inline-block !important;
    text-align: right;
}

#datasets-section {
    position: relative;
}






#loading-indicator {
    position: absolute;
    display: inline-block;
    white-space: nowrap;
    left: 50%;
    margin-left: -115px;
    margin-top: -80px;
    background-color: #fdfaf4f0;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #d5d7e8;
    box-shadow: 0px 5px 11px rgba(0, 50, 90, 0.5);
    z-index: 3;
    font-weight: 600;
    color: #5b5b72;
    line-height: 1.4em;
}

#loading-indicator .gearspinner {
    width: 24px;
    margin: 0px 5px -7px -10px;
}


.bigquery-data .data-label {
    max-width: calc(100% - 42px);

}

.data-section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -5px 0px 15px -20px;
    border-bottom: 1px solid #ddd;
    padding: 7px 5px 5px 20px;
    top: 55px;
    background-color: #ffffff;
    z-index: 9;
    position: fixed;
    width: calc(100% - 251px);
}

.no-left-sb .data-section-top {
    width: calc(100% - 0px);
}

@media (min-width: 950px) {
.data-section-top {
    width: calc(100% - 301px);
}
}

@media (min-width: 1050px) {
.data-section-top {
    width: calc(100% - 351px);
}
}

.data-section-title {
    font-size: 16px;
    color: #72819a;
    line-height: 1.15em;
}

.data-section-top-left {
    max-height: 37px;
    overflow: hidden;
}

.data-section-top-left:hover {
    max-height: 500px;
    overflow: visible;
}

.data-section-top-right {
    display: flex;
}

.infoicon {
    display: inline-block;
}


#data-section {
    position: relative;
}

.text-content {
    white-space: pre-wrap;
    font-family: monospace;
    padding: 20px;
}



.data-controls {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}


.data-icon-btn {
    cursor: pointer;
    padding: 8px 10px 7px;
    margin-left: 20px;
    background-color: transparent;
    border-radius: 5px;
    line-height: 1em;
    height: 32px;
    color: #8587ac;
    text-align: center;
}

.data-icon-btn:hover {
    background-color: var(--primarycolor);
    color: #fff;
}

.close-data-view {
    border-left: 1px solid #eaeaf1;
    width: 35px;
    font-size: 16px;
}

.close-data-view:hover {
    border-left: 1px solid transparent;
}

.ai-top-sec-right .ftip {
    display: inline-block;
    margin: 0px 5px;
}

@media (max-width: 566px) {
.leftside-open .ai-top-sec-right {
    display: none;
}
}


.ftip {position: relative;white-space: normal;}
.f-tip {
    position: absolute;
    width: 100px;
    text-align: center;
    bottom: calc(100% + -12px);
    margin-left: 0px;
    pointer-events: none;
    transform: translateX(-50%);
-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
opacity: 0;
}
.fhover .f-tip {
opacity: 1;
bottom: calc(100% + -3px);
}

.left .f-tip {
    transform: translateX(-87%);
}
.right .f-tip {
    transform: translateX(-13%);
}

@media (max-width: 800px) {
.left .f-tip {
    transform: translateX(-92%);
}
}

.download-data .f-tip {
    bottom: calc(100% + 1px);
    background-color: #fff;
    border-radius: 5px;
    width: 66px;
    margin-left: 6px;
}

.download-data.fhover .f-tip {
    opacity: 1;
    bottom: calc(100% + 1px);
    background-color: #fff;
    border-radius: 5px;
    width: 66px;
    margin-left: 6px;
}

.f-tip-txt {
    display: inline-block;
    color: #9b95a8;
    font-size: 11px;
    font-weight: 500;
    padding: 1px 5px;
    border-radius: 5px;
    line-height: 1.3em;
}
.infoicon {
    position: relative;
    top: 1px;
    margin-left: 2px;
}
.fhover.infoicon i {
color: var(--primarycolor);
}
.infoicon .f-tip {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px 1px 4px;
    width: 140px;
}
.infoicon.fhover .f-tip {
    bottom: calc(100% + 4px);
}


.ai-generated-prompts-header .infoicon .f-tip {
bottom: calc(100% + 4px);
    bottom: auto;
    top: 50%;
}
.ai-generated-prompts-header .infoicon.fhover .f-tip {
    top: 100%;
}

.sizetip.ftip {
    position: absolute;
    right: 2px;
    top: -2px;
    color: #aaafc5;
}
.sizetip .f-tip {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px 1px 4px;
    width: 229px;
    text-align: left;
    margin-left: -88px;
    padding: 3px;
}


.f-tip-txt {
    line-height: 1.1em;
}

.ftip-large .f-tip {
    width: 400px;
    max-width: 90vw;
    padding: 10px;
    text-align: left;
}


.ftip-large.fhover .f-tip {
    bottom: calc(100% + 9px);
}

.ai-top-sec-right .f-tip {
    bottom: calc(100% - 20px);
    margin-left: 10px;
}
.ai-top-sec-right .fhover .f-tip {
    opacity: 1;
    bottom: calc(100% - 12px);
    margin-left: 10px;
}
.ai-top-sec-right .f-tip-txt {
    display: inline-block;
    color: #ffffffa1;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 5px;
    line-height: 1.3em;
    background-color: #00000036;
}

.ai-prompts-refresh .f-tip {
    bottom: auto;
    top: -13%;
    margin-left: -24px;
    width: 90px;
}
.ai-prompts-refresh.fhover .f-tip {
    bottom: auto;
    top: -13%;
    margin-left: -29px;
}


/*.tableview .top-sec-icon.table-tog,.aiview .top-sec-icon.ai-tog {
    color: var(--primarycolor);
}

.tableview .top-sec-icon.table-tog:hover,.aiview .top-sec-icon.ai-tog:hover {
    filter: brightness(1.1);
}*/
.top-sec-icon.ai-tog {
    top: 1px;
}


.ai-help-modal {
    position: absolute;
    z-index: 9999999;
    width: 500px;
    padding: 0px;
    background-color: #fff;
    white-space: normal;
    height: calc(100vh - 50px);
    max-width: calc(100% - 80px);
    box-shadow: 0px 0px 30px rgba(0, 40, 70, 0.4);
    top: 50px;
    -webkit-transition: all .6s ease;
-moz-transition: all .6s ease;
-ms-transition: all .6s ease;
-o-transition: all .6s ease;
transition: all .6s ease;
margin-left: -600px;
opacity: 0;
pointer-events: none;
}

.ai-help-modal.show {
margin-left: 0px;
opacity: 1;
pointer-events: all;
}

.ai-help-modal-content {
    height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 10px 30px 30px 30px;
}



.ai-help-modal-toggle.top-help-close {
color: #8084a6;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: sticky;
    top: 0px;
    background-color: #f7f7fb;
    padding: 13px;
    margin: 0px 0px 0px 0px;
    z-index: 2;
}
.ai-help-modal-toggle.top-help-close:hover {
    color: var(--primarycolor);
}

.ai-help-modal-toggle.top-help-close::before {
    content: 'AI Assistant Help Section';
    display: inline-block;
    position: absolute;
    left: 29px;
    top: 9px;
}
.ai-help-modal-toggle.top-help-close:hover::before {
    color: #8084a6;
}

.show .ai-help-modal-toggle.top-help-close::after {
    content: '';
    display: inline-block;
    position: absolute;
    left: 100%;
    top: 0px;
    width: calc(100vw - 0px);
    height: 100vw;
    background-color: transparent;
    z-index: -1;
}


.ai-help-modal .help-note {
    background-color: #fdf1d3;
    padding: 18px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.4em;
    font-weight: 500;
    margin-bottom: 20px;
}

.help-highlight-block {
    padding: 10px 16px;
    background-color: #f2f3f7;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
    line-height: 1.4em;
}

.top-icon-btn {
    color: #fff;
    opacity: 0.6;
    font-size: 13px;
    display: inline-block;
    position: relative;
    top: 4px;
}

.top-icon-btn {
    color: #fff;
    opacity: 0.5;
    font-size: 13px;
    display: inline-block;
    position: relative;
    top: 0px;
    background-color: #00000042;
    width: 23px;
    height: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
}

.top-icon-btn:hover {
    opacity: 0.9;
}


.ai-help-text {
    font-size: 14.5px;
    margin: 0px 0px 30px 0px;
}

.ai-help-text p {
    margin: 10px 0px;
}

.ai-help-modal h2 {
    font-size: 21px;
    font-weight: 600;
    margin: 10px 0px 10px;
    color: #6d7588;
}

.ai-help-modal h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 8px 0px 11px;
    color: #6d7588;
    border-bottom: 2px solid #dadce3;
    padding-bottom: 6px;
}

.ai-help-modal h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0px 6px;
    color: #6d7588;
}

.ai-help-modal strong {
    font-weight: 600;
    line-height: 1.4em;
}




.ai-settings-modal {
    position: absolute;
    z-index: 9999999;
    width: 320px;
    padding: 0px;
    background-color: #fff;
    white-space: normal;
    height: calc(100vh - 50px);
    max-width: calc(100% - 80px);
    box-shadow: 0px 0px 30px rgba(0, 40, 70, 0.4);
    top: 50px;
    -webkit-transition: all .4s ease;
-moz-transition: all .4s ease;
-ms-transition: all .4s ease;
-o-transition: all .4s ease;
transition: all .4s ease;
margin-left: 0px;
right: -380px;
opacity: 0;
pointer-events: none;
}

.ai-settings-modal.show {
right: 0px;
opacity: 1;
pointer-events: all;
}

.ai-settings-modal-toggle.top-settings-close {
    color: #8084a6;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: sticky;
    top: 0px;
    background-color: #f7f7fb;
    padding: 13px;
    margin: 0px 0px 0px 0px;
    z-index: 2;
}
.ai-settings-modal-toggle.top-settings-close:hover {
    color: var(--primarycolor);
}

.ai-settings-modal-toggle.top-settings-close::before {
    content: 'Settings';
    display: inline-block;
    position: absolute;
    left: 29px;
    top: 9px;
}
.ai-settings-modal-toggle.top-settings-close:hover::before {
    color: #8084a6;
}

.show .ai-settings-modal-toggle.top-settings-close::after {
    content: '';
    display: inline-block;
    position: absolute;
    right: 100%;
    top: 0px;
    width: calc(100vw - 320px);
    height: 100vw;
    background-color: transparent;
    z-index: -1;
}

.ai-settings-modal-content {
    height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 10px 30px 30px 30px;
}


.ai-settings-item {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3em;
    margin: 0px 0px 12px 0px;
    background-color: #f8fafe;
    padding: 10px 16px;
    border-radius: 11px;
    border: 2px solid #ebecf2;
    position: relative;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.ai-settings-item:hover {
    box-shadow: 0px 0px 0px 6px rgb(93 121 145 / 9%);
    filter: brightness(0.98);
}

.ai-settings-item.selected::after {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    content: "\f00c";
    position: absolute;
    right: 5px;
    bottom: 1px;
}

.ai-settings-item.selected {
    border: 2px solid var(--primarycolor);
    background-color: var(--primarycolor);
    color: #fff;
}

.ai-settings-item-title {
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 1px solid #0000000f;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.selected .ai-settings-item-title {
    border-bottom: 1px solid #00000030;
}


#analysis-form {
    margin: 0px;
    padding: 10px 30px 10px 30px;
    background-color: #faf9ff;
    border: 1px solid #e4e7ee;
    border-radius: 4px;
    position: relative;
    z-index: 9;
}
#bigquery-report-form {
    padding-bottom: 15px;
    border-top: 1px solid #eaebff;
    margin-top: 5px;
    padding-top: 5px;
}

#advertiser-selection {
display: inline-block;
margin-top: -1px;
}

.af-item-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    margin-right: 7px;
}

#analysis-form label {
    display: block;
    position: relative;
    font-size: 13px;
    margin: 0px 0px 1px 0px;
    color: #727784;
    white-space: nowrap;
}

#analysis-form input[type="text"], 
#analysis-form input[type="number"], 
#analysis-form select {
    width: 190px;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #afb6c0;
    min-width: 190px;
    min-height: 32px;
}

#analysis-form input[type="date"] {
    width: 117px;
    padding: 6px 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #afb6c0;
    margin-right: 7px;
}

#analysis-form #limit {
    width: 70px;
    min-width: 70px;
}
#hubspot-fields #startDate,#hubspot-fields #endDate, #hubspot-fields #dealStage {
    width: 140px;
    min-width: 140px;
}

.advertiser-group {
display: inline-block;
}

.select2-container--open .select2-dropdown--below {
    margin-top: 0px;
}

/*.select2-container--default {
    margin-top: 5px;
}
*/
.select2-hidden-accessible + .select2-container {
    height: 32px;
}

.select2-hidden-accessible .select2-selection {top:-32px;}

/*#metric-field {
    min-height: 26px;
    margin-bottom: 26px !important;
    height: 26px !important;
}
*/

.af-btn-wrap {
    display: inline-block;
    margin-top: 23px;
}

#analyzeButton, #csv-upload-form button, #add-selected-files, .ai-btn, .ai-standard-button {
background-color: var(--primarycolor);
    color: white;
    border: none;
    padding: 9px 14px 9px;
    cursor: pointer;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

#analyzeButton:hover, #csv-upload-form button:hover, #add-selected-files:hover, .ai-btn:hover, .ai-standard-button:hover  {
filter: brightness(1.1);
}

.ai-feedback-btn {
    font-size: 11px;
    padding: 2px 6px;
    display: inline-block;
    filter: brightness(0.85);
    opacity: 0.7;
    margin-right: 7px;
    background-color: #00000038;
}
.ai-feedback-btn:hover {
    filter: brightness(1);
    opacity: 1;
    background-color: #00000059;
}
@media (max-width: 700px) {
.leftside-open .ai-feedback-btn {
    display: none;
}
}

.fm-btn-i {
    font-size: 17px;
    position: relative;
    top: 1px;
}

.pull-report-x {
    display: inline-block;
    margin: 0px 0px 0px 10px;
    cursor: pointer;
    color: #a0a2b9;
    padding: 2px 5px;
    background-color: transparent;
    height: 20px;
    border-radius: 5px;
}

.pull-report-x:hover {
    color: #5856fd;
    background-color: #acadd83b;
    border-radius: 5px;
}

#loading {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 19vh;
    padding-bottom: 19vh;
}

#conversation-container {
    height: calc(100vh - 117px);
    overflow-y: auto;
    border-top: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px 30px 90px 30px;
    margin: 0 auto;
    background-color: #fefeff;
    background-color: #f9faff;
    font-size: 0.95em;
    line-height: 1.5em;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    position: static;
}

/*.aithinking #conversation-container {*/

.aithinking #conversation-container {
    background: linear-gradient(337deg, rgba(214, 239, 251, 0.927608543417367) 0%, rgba(231, 232, 251, 0.6110819327731092) 50%, rgba(247, 245, 251, 0.3925945378151261) 100%);
    background: #fffffff5;
}

.aithinking #conversation-container::after {
content: '';
    position: absolute;
    height: 150%;
    width: 100%;
    background-image: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
    top: 50%;
    left: 50%;
    translate: -50% -40%;
    z-index: -1;
    opacity: 0.7;
    animation: 1.5s rotateglow linear infinite;
    display: inline-block;
    margin: 0px;
}

.ai-model-info {
    position: absolute;
    opacity: 0.3;
    bottom: -2px;
    font-size: 12px;
    right: -3px;
    border-radius: 4px;
    padding: 1px 6px;
}

.ai-model-info-content {
    display: none;
}

.ihover .ai-model-info-content {
    display: inline-block;
}

.ai-model-info:hover {
    opacity: 0.7;
    background-color: #eee;
}


.ai-model-info i {
margin: 5px 1px 0px 0px;
}

/*#conversation-container::before {
    content: '';
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(img/video-bg2.gif) no-repeat center center / cover;
    z-index: -1;
    opacity: 0.3;
}*/

.conversation-container-content {
    max-width: 1150px;
    width: 100%;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/*.chart-container {
    overflow-x: auto;
    overflow-y: hidden;
}
*/

#dataTable_wrapper {
    order: 1;
    margin-bottom: 20px;
}

#data-section {
    display: flex;
    flex-direction: column;
}

.reportChart-wrap {
    height: 460px;
}
.chart-container {
   order: 2; 
}

.message-row {
    display: flex;
    margin-bottom: 10px;
}

/* Ensure the last message has some bottom margin to prevent it from being cut off */
.message-row:last-child {
    margin-bottom: 80px;
}

.ai-message-row {
    justify-content: flex-start;
}

.user-message-row {
    justify-content: flex-end;
}

.message {
    max-width: 1100px;
    padding: 15px 25px;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 10px;
    position: relative;
    font-size: 0.9em;
    line-height: 1.6em;
}

.ai-message {
    background-color: #ffffff;
    border: 1px solid #d0d7db85;
    border-radius: 10px 10px 10px 0px;
    box-shadow: 0px 0px 20px rgba(0, 50, 90, 0.07);
    min-width: 100%;
    padding: 15px 25px 20px;
}

/*.message.ai-message::after {
    content: '';
    width: 20px;
    height: 10px;
    background: #fff;
    display: inline-block;
    position: absolute;
    left: 9px;
    bottom: -5px;
    transform: rotate(-24deg);
}
*/
.user-message {
background-color: #5856fd;
    border: 1px solid #5856fd;
    color: #fff;
    border-radius: 10px 10px 0px 10px;
    /*max-height: 113px;*/
    overflow: hidden;
    -webkit-transition: all .6s ease-in-out;
    -moz-transition: all .6s ease;
    -ms-transition: all .6s ease;
    -o-transition: all .6s ease;
    transition: all .6s ease-in-out;
}
/*.user-message.open-message {
    max-height: 1000px;
    overflow: auto;
}*/

body.whitelabeled .user-message {
background-color: #666683;
border: 1px solid #666683;

}

hr.ai-message-line {
    background-color: #e7e7ff;
    height: 1px;
    width: 20%;
    margin: 23px auto 20px;
    border: 0px;
}

/*.message.user-message::after {
    content: '^';
    position: absolute;
    bottom: 3px;
    right: 10px;
    transform: rotate(180deg);
    opacity: 0.6;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}
.message.user-message:hover::after {
    opacity: 1;
}
.message.user-message.open-message::after {
    transform: rotate(0deg);
}*/


/*.message.user-message::after {
    content: '';
    width: 20px;
    height: 10px;
    background: #5856fd;
    display: inline-block;
    position: absolute;
    right: 9px;
    bottom: -5px;
    transform: rotate(24deg);
}*/

.message h2,.message h3,.message h4 {
    margin-top: 10px;
    color: #526284;
    font-weight: 600;
    position: relative;
}

.message h2 {
    font-size: 20px;
    margin-bottom: 17px;
    border-bottom: 2px solid #dfe7f1;
    padding-bottom: 15px;
    margin-top: 15px;
    line-height: 1.2em;
    position: relative;
}
.message h2:first-child {
    font-size: 23px;
}

.message h2:first-child::before {
    content: "\e5d6";
    content: '';
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
    top: 5px;
    left: -26px;
    font-size: 10px;
    width: 21px;
    text-align: center;
    line-height: 1em;
    height: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primarycolor);
    color: #fff;
}

.message h3 {
    font-size: 18px;
    margin-bottom: 28px;
    margin-top: 27px;
    color: #4e5462;
    position: relative;
}

.message h3::before {
    content: '';
    width: 30px;
    max-width: 15%;
    height: 4px;
    background-color: var(--primarycolor);
    position: absolute;
    bottom: -11px;
}

.message h4 {
font-size: 16px;
margin-bottom: 8px;
color: #666c7a;
}

.message p {
    margin-bottom: 10px;
    line-height: 1.5em;
    vertical-align: baseline;
}

.message ul {
    padding-left: 30px;
    margin-bottom: 30px;
}

.message li {
    margin-bottom: 5px;
    line-height: 1.3em;
    padding-bottom: 8px;
}

.message strong {
    font-weight: bold;
    line-height: 1.5em;
    vertical-align: baseline;
}

.message h2 strong {
    line-height: 1.2em;
    vertical-align: baseline;
}

.message em {
    font-style: italic;
}

.message-hr {
    margin: 20px 0px 30px;
    opacity: 0.2;
    border-top: 1px solid #dbdef3;
}

span.msg-excluded-dataset {
    max-width: 114px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    background: #f2f2f6;
    border-radius: 5px;
    padding: 0px 5px;
    font-size: 0.88em;
    font-weight: 600;
    margin: -1px 3px 2px 0px;
}

span.msg-excluded-dataset:hover {
    max-width: 1000px;
    white-space: break-spaces;
    overflow: visible;
    text-overflow: inherit;
    display: inline;
    background: #e4e8f9;
    padding: 2px 5px;
}

.ai-adv-tog {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: transparent;
}

.ai-note-strong {
    background-color: #fde5b2;
    padding: 0px 3px 0px 4px;
    border-radius: 3px;
    display: inline-block;
    margin: 0px 3px 0px 0px;
}

.ai-bullet-list {
    list-style: none;
    padding-left: 1.5em;
    margin: 1em 0;
}

.ai-bullet-list li {
    position: relative;
    margin-bottom: 0.8em;
    line-height: 1.4;
}

.ai-bullet-list li::before {
    content: "•";
    position: absolute;
    left: -1em;
    color: var(--primarycolor, #5856fd);
    font-size: 1.8em;
    line-height: 0.8;
    opacity: 0.8;
}

/* Add spacing between bullet points */
.ai-bullet-list li:not(:last-child) {
    margin-bottom: 0.2em;
}

.ai-bullet-list li .list-item-content {
        margin-left: -30px;
}

.ai-bullet-list li .list-item-content strong {
    padding-top: 18px;
    display: inline;
}

.list-item-content { margin-top: 8px; margin-bottom: 8px; } .bullet-header { font-weight: 600; margin-bottom: 4px; }

.ai-numbered-list {
    list-style: none;
    counter-reset: ai-counter;
    padding-left: 2.8em;
    margin: 1em 0;
}

.ai-numbered-list > li {
    position: relative;
    margin-bottom: 0.4em;
    line-height: 1.4;
}

.ai-numbered-list > li::before {
    content: counter(ai-counter) ".";
    counter-increment: ai-counter;
    position: absolute;
    left: -1.8em;
    color: var(--primarycolor, #5856fd);
    font-weight: 700;
    width: 2em;
    font-size: 1.1em;
    text-align: left;
}

/* Nested list styles */
.message ul.ai-nested-list {
    list-style: none;
    padding-left: 1.5em;
    margin: 0.8em 0 0.1em 0;
}

.ai-nested-list li {
    position: relative;
    margin-bottom: 0.6em;
    line-height: 1.4;
}

.ai-nested-list li::before {
    content: "•";
    position: absolute;
    left: -1em;
    color: var(--primarycolor, #52578d);
    opacity: 0.8;
    font-size: 1.8em;
    line-height: 1;
    margin: -3px 0px 0px 0px;
}

/* Add spacing between list items */
.ai-numbered-list > li:last-child,
.ai-nested-list li:last-child {
    margin-bottom: 0;
}

/* Ensure proper spacing when lists are followed by paragraphs */
.ai-numbered-list + p,
.ai-nested-list + p {
    margin-top: 1.2em;
}





#datasets-wrap {
    overflow-y: scroll;
    max-height: calc(100vh - 175px);
    min-height: 44px;
    overflow-x: hidden;
    margin: 0px 0px 0px -10px;
    padding: 6px 11px 0px 10px;
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
border-bottom: 1px solid #e0e5f3;
}

/* Dataset Tabs Styling */
.tab-container {
    display: flex;
    gap: 10px;
    margin-right: 10px;
    margin-bottom: -6px;
}

.tab {
    padding: 3px 0px 6px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    opacity: 0.7;
    border-bottom: 2px solid #fff;
}

.tab.active {
border-bottom: 2px solid var(--primarycolor);
    border-radius: 0px;
    color: #6a6f8c;
}

.tab:hover:not(.active) {
    opacity: 0.95;
    border-bottom: 2px solid #bdbcd6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


.recap-tab {
    display: none;
}

.agency-network-affiliates .recap-tab {
    display: block;
}

.ai-adv .recap-tab {
    display: block;
}


.datasets-content {
    max-height: 0px;
    overflow: hidden;
    margin-left: -10px;
    padding-left: 10px;
        -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}

.show-datasets .datasets-content {
    max-height: 5000px;
    overflow: visible;
}

.show-datasets #datasets-wrap {
}

.select-all-datasets {
    padding: 4px 8px 4px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(60, 60, 80, 0.08);
    background-color: rgba(248, 249, 252, 0.6);
    margin-bottom: 0px;
    font-size: 0.75em;
    color: #667085;
    margin-left: -20px;
}

.select-all-left {
            display: flex;
            align-items: center;
        }
        
        .select-all-right {
            display: flex;
            align-items: center;
        }

.select-all-checkbox {
    margin-right: 5px;
    cursor: pointer;
}

.select-all-datasets label {
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    display: none;
}
.select-all-datasets.fhover label {
    display: inline-block;
}

.remove-all-btn {
    background-color: transparent;
    border: 1px solid #ddd3d3;
    color: #9e9fa3;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-all-btn:hover {
    background-color: var(--primarycolor);
    border: 1px solid var(--primarycolor);
    color: white;
}


/* Hover effect */
/*.select-all-datasets:hover {
    background-color: rgba(240, 242, 248, 0.9);
}
*/

.ai-generated-prompts-section {
            margin-bottom: 10px;
            border-bottom: 1px solid #33333322;
            padding-bottom: 12px;
            max-width: 100%;
            overflow: hidden;
        }
        
        .ai-generated-prompts-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1px;
            padding: 0 10px 0 0;
            font-size: 0.9em;
        }
        
        .ai-generated-prompts-title, .general-prompts-title {
            font-weight: 500;
            color: #aaafc5;
            font-size: 13px;
        }
        
        .ai-prompts-refresh {
            cursor: pointer;
            color: #8e9db1;
            transition: color 0.2s;
        }
        
        .ai-prompts-refresh:hover {
            color: var(--primarycolor, #5856fd);
        }
        
        .ai-prompts-loading,
        .ai-prompts-empty,
        .ai-prompts-error {
            padding: 15px 10px;
            text-align: center;
            color: #828dab;
            font-size: 0.8em;
            font-style: italic;
            line-height: 1.2em;
        }
        
        .ai-prompts-error {
            color: #e64d4f;
        }



.show-prompts #datasets-wrap {
    max-height: calc(100vh - 78vh);
}

@media (min-height: 550px) {
.show-prompts #datasets-wrap {
    max-height: calc(100vh - 70vh);
}
}

#prompt-library {
    max-height: 150px;
    overflow-y: hidden;
    height: 0px;
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}


.show-prompts #prompt-library {
    padding-top: 4px;
    height: auto;
    max-height: calc(100vh - 45vh);
}

.show-prompts.show-datasets #prompt-library {
    overflow-y: scroll;
    height: auto;
    padding-top: 4px;
    max-height: calc(100vh - 67vh);
}

@media (max-height: 430px) {
.show-prompts.show-datasets #prompt-library {
    max-height: calc(100vh - 75vh);
}
}



.prompt-set-selector-wrap {
position: absolute;
    top: 8px;
    left: 120px;
    max-width: calc(100% - 150px);
    display: none;
}
.advanced .prompt-set-selector-wrap {
    display: block;
}

.prompt-set-selector {
    width: 100%;
    padding: 3px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #fff;
    font-size: 13px;
    color: #333;
}

.prompt-buttons-container {
    padding: 2px 0px 0px 0px;
}

.prompt-buttons-container button {
    margin-bottom: 2px;
}

.loading-dots {
    width: 34px;
}
.ai-auto-prompts {
    position: absolute;
    bottom: 100%;
    padding: 10px;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    pointer-events: none;
}
.aiview .ai-auto-prompts {
    display: flex;
}
.ai-auto-prompts button {
    pointer-events: all;
}

.ai-auto-prompts button .fa-reply {
    margin: 3px 4px 0px 0px;
    font-size: 0.8em;
    opacity: 0.8;
}

.ai-auto-prompts button.ai-first-prompt .fa-reply,.ai-auto-prompts button .fa-magnifying-glass {
    display: none;
}

.ai-auto-prompts button.ai-first-prompt .fa-chart-sine {
font-size: 25px;
    position: absolute;
    left: 50%;
    margin: -33px 0px 0px -14px;
}

.ai-auto-prompts button.ai-first-prompt.fhover .fa-chart-sine {
    color: var(--primarycolor);
}

.recap-mode .ai-auto-prompts {
    display: none;
}


#question-panel {
    position: fixed;
    bottom: 0;
    left: 250px;
    width: calc(100% - 250px);
    background-color: #fff;
    border-top: 0px solid #f5f5f6;
    z-index: 9;
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}

#question-toolbar button, .ai-auto-prompts button {
    background-color: #f9faff;
    border: 1px solid #d4d9e7;
    border-radius: 20px;
    font-size: 12px;
    color: #7e818c;
    cursor: pointer;
    margin-right: 5px;
    padding: 1px 7px;
}
#question-toolbar button:hover,.ai-auto-prompts button:hover {
background-color: #fff;
border-color: var(--primarycolor);
color: var(--primarycolor);
}

.ai-auto-prompts button.ai-first-prompt:hover {
color: inherit;
}

.ai-auto-prompts button.ai-first-prompt {
    border-radius: 9px;
    padding: 46px 17px 17px;
    font-size: 14px;
}

#question-wrap {
    display: flex;
    justify-content: center;
    align-items: end;
    width: 100%;
    padding: 8px 10px 17px 30px;
    background-color: #f9faff;
    box-shadow: 0px -14px 20px -15px rgba(0, 30, 50, 0.1);
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}

#question-toolbar {
    padding: 10px 0px 0px 20px;
    margin-bottom: -2px;
    position: absolute;
    bottom: 20px;
    white-space: normal;
    width: 250px;
    background-color: #fff;
    width: calc(100% - 1px);
}

.btm-terms-txt {
    font-size: 10px;
    color: #b0afc5;
    position: absolute;
    bottom: 0px;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.user-question-wrap {
    display: inline-block;
    border: 1px solid #dadae7;
    background-color: #f1f4fb;
    border-radius: 22px;
    max-width: 850px;
    width: calc(100% - 70px);
    margin: 4px 0px 3px 17px;
    padding: 10px 0px 0px 0px;
}

#user-question {
    padding: 0px 10px 0px 20px;
    padding-bottom: 0px;
    border-radius: 22px;
    min-height: 30px;
    max-height: 250px;
    resize: none;
    overflow-y: hidden;
    box-sizing: border-box;
    line-height: 1.4em;
    border: 0px solid #dadae7;
    background-color: transparent;
    max-width: 850px;
    margin: 0px;
    width: 100%;
    vertical-align: top;

    /* Remove all iOS-specific styles */
    -webkit-appearance: none;
    appearance: none;

    /* Remove focus colors */
    outline: none;
    box-shadow: none;
}


/*#user-question {
    padding: 12px 10px 0px 20px;
    padding-bottom: 0px;
    width: calc(100% - 70px);
    border-radius: 22px;
    min-height: 30px;
    max-height: 250px;
    resize: none;
    overflow-y: hidden;
    box-sizing: border-box;
    line-height: 1.4em;
    border: 1px solid #dadae7;
    background-color: #f1f4fb;
    max-width: 850px;
    margin: 0px 0px 0px 17px;

    -webkit-appearance: none;
    appearance: none;

    outline: none;
    box-shadow: none;
}*/

#user-question:focus {
    outline: none;
    box-shadow: none;
}


/*#submit-question svg {
    width: 25px;
    position: relative;
}*/

.submit-question-icon {
    font-size: 26px;
    color: var(--primarycolor);
}

#submit-question {
background-color: transparent;
border: 0px;
max-height: 45px;
padding: 10px 16px;
cursor: pointer;
position: relative;
-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
left: 0px;
transform: scale(1);
top:-2px;
}

#submit-question:hover {
filter: brightness(1.2);
left: 3px;
}
#submit-question.ai-processing {
  top:-4px;  
}


#submit-question.ai-processing .submit-question-icon {
    display: none;
}

#submit-question.ai-processing::after {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background-color: var(--primarycolor);
    border-radius: 2px;
    position: relative;
    top: -3px;
    box-shadow: 0px 0px 0px 7px rgba(0, 30, 60, 0.1);
}
#submit-question.ai-processing:hover {
left: 0px;
transform: scale(1.1);
}


/*body.whitelabeled #submit-question {
    filter: grayscale(0.8);
}*/

.prompt-pen-tog {
    position: relative;
    font-size: 14px;
    color: #4e5464;
    opacity: 0.7;
    top: -7px;
    margin-left: -9px;
}
.prompt-pen-tog:hover {
    opacity: 1;
}

.prompt-pen-tog::after {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
    top: -6px;
    right: 8px;
    color: var(--primarycolor);
    font-size: 0.6rem;
}

.prompt-pen-tog::before {
    content: "Prompt Library";
    font-weight: 500;
    position: absolute;
    bottom: Calc(100% + 3px);
    left: -21px;
    font-size: 11px;
    text-align: center;
    line-height: 18px;
    display: inline-block;
    white-space: normal;
    padding: 4px 9px 5px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    line-height: 1em;
    font-weight: 600;
    background-color: #fff;
    color: #585f70;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0px 10px 8px -3px rgba(0, 40, 90, 0.1);
}
.leftside-open .prompt-pen-tog::before {
    content: "Close Prompt Library";
}

.prompt-pen-tog:hover::before {
    bottom: Calc(100% + 13px);
    opacity: 1;
}

.no-left-sb .prompt-pen-tog {
    margin: 0px 0px 0px 13px;
}


.notes-pen-wrap {
    display: inline-block;
    position: relative;
    top: 8px;
    pointer-events: none;
    margin: 0px 0px 0px 20px;
}

.left-sidebar-top {
    background-color: #f4f4fb;
    margin: -37px 0px 17px -20px;
    padding: 18px 20px 4px 20px;
    height: 67px;
    display: none;
}

.left-side-title {
    font-size: 13px;
    color: #828dab;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 1px solid #e7e9f1;
    padding-bottom: 6px;
    margin-left: -19px;
    padding-left: 19px;
}
.left-side-title:hover {
    color: #768096;
}

.left-side-sec-arw {
    display: inline-block;
    position: absolute;
    right: 10px;
    transform: rotate(0deg);
    margin-top: 3px;
}
.show-prompts #question-toolbar .left-side-sec-arw {
    transform: rotate(180deg);
    margin-top: -2px;
}

.show-datasets #datasets-section .left-side-sec-arw {
    transform: rotate(180deg);
    margin-top: -2px;
}


/*
#ai-thinking {
position: absolute;
    bottom: 60px;
    left: 30px;
}

#ai-thinking .ai-message {
    background-color: #ffffff;
    border: 1px solid #d0d7db85;
    padding: 11px 10px;
    border-radius: 50px;
}*/

#ai-thinking {
    position: absolute;
    bottom: -78px;
    left: calc(50% + 522px);
    z-index: 9;
    opacity: 0.93;
    pointer-events: none;
    width: 52px;
}

@media (max-width: 1220px) { 
#ai-thinking {left: auto;right: 31px;}
}

#ai-thinking .ai-message {
    background-color: #fbfcfd;
    border: 0px solid #d0d7db85;
    padding: 20px 10px;
    border-radius: 10px;
    width: 52px;
    box-shadow: none !important;
}

.typing-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
}

.typing-indicator span {
height: 7px;
    width: 7px;
    background-color: #5856fd;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}




#charts-container {
    margin-top: 20px;
    width: 100%;
}

.chart-container {
    width: 100%;
    max-width: 1000px;
    min-height: 300px;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
}


#data-section .chart-container {
    max-width: 1600px;
    margin-top: -25px;
    min-height: 450px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}


.chart-container.chart-type-bar {
    max-height: 80vh;
}

.chart-type-line {
    max-height: 80vh;
}

.chart-type-pie, .chart-type-donut, .chart-type-doughnut {
    max-width: 730px;
    min-height: 600px;
}

.chart-container.chart-type-wordcloud {
    min-height: 600px;
}


.ai-processing-text-wrap {
position: absolute;
    width: 100%;
    margin-top: -50px;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}
.aithinking .ai-processing-text-wrap {
    display: flex;
}

.ai-processing-text {
    font-size: 14px;
    color: #4a4e60;
    font-weight: 600;
    transition: opacity 0.3s ease;
    opacity: 1;
    background-color: #fff;
    padding: 5px 12px;
    text-align: center;
    background-color: #fffffff2;
    border-radius: 30px;
    box-shadow: 0px 4px 16px rgba(0, 90, 120, 0.1);
    opacity: 0;
}






@keyframes initial-loading {
  0%, 100% {
    transform: translate(-34px,0)
    }
  50% {
    transform: translate(96px,0)
    }
}


  .loading-bar {
    width: 110px;
    height: 3px;
    margin: 15px auto;
    border-radius: 2px;
    background-color: #cfcfcf;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: rotateY(0);
    transition: transform .3s ease-in;
    
    .purple-bar {
      height: 100%;
      width: 50px;
      position: absolute;
      transform: translate(-25px, 0);
      background-color: #5856fd;
      border-radius: 4px;
      animation: initial-loading 1.5s infinite ease;
    }
    
  }
  
  &.fade-load {
    
    .linkedin-image {
      transform: translate(0, 10px);
      opacity: 0;
    }
     
    .loading-bar {
      transform: rotateY(90deg);
    }
    
  }

}


.animated-gradient {
  background: repeating-linear-gradient(to right, red 0%, blue 50%, red 100%);
  width: 100%;
  background-size: 200% auto;
  background-position: 0 100%;
  animation: gradient 2s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  height: 4px;
    width: 220px;
    margin: 40px auto;
    border-radius: 10px;
}

@keyframes gradient { 
  0%   { background-position: 0 0; }
  100% { background-position: -200% 0; }
}


.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    position: fixed;
    bottom: 135px;
    left: calc(50% + 113px);
    margin-left: -30px;
    filter: blur(0px);
    background-color: #ffffffd9;
    /*box-shadow: 0px 0px 0px 10px #ffffff;*/
    display: none;
    -webkit-animation: slowzoom 3s cubic-bezier(.42, .61, .58, .41) infinite;
    animation: slowzoom 3s cubic-bezier(.42, .61, .58, .41) infinite;
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
-webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 99;
}
.loader.show {
    display: inline-block;
}

.leftside-open .loader {left: calc(50% + 128px);}

@media (min-width: 950px) {
.leftside-open .loader {left: calc(50% + 152px);}
}

/*@media (min-width: 1050px) {
.leftside-open .loader {left: calc(50% + 180px);}
}*/


/*.loader.loader-1::after {
    content: 'Preparing your data';
    position: absolute;
    text-align: center;
    padding: 5px 10px;
    bottom: 130%;
    background-color: #ffffff;
    display: inline-block;
    transform: translateX(-50%);
    margin: 0px 0px 0px 30px;
    border-radius: 9px;
    box-shadow: 0px 9px 13px rgb(95 119 172 / 20%);
    font-size: 14px;
    line-height: 1.3em;
}*/
    
.loader-1 .loader-outter {
    position: absolute;
    border: 3px solid var(--primarycolor);
    border: 3px solid #00B3AA;
    border: 3px solid var(--primaryalt);
    border-left-color: #824dee52;
    border-left-color: #4dc0ee42;
    border-bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-animation: loader-1-outter 1s cubic-bezier(.42, .61, .58, .41) infinite;
    animation: loader-1-outter 1s cubic-bezier(.42, .61, .58, .41) infinite;
}

body.whitelabeled .loader-1 .loader-outter {
    border-left-color: #a3b3b942;
}

.loader-1 .loader-inner {
    position: absolute;
    border: 2px solid var(--primarycolor);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    left: calc(50% - 20px);
    top: calc(50% - 20px);
    border-right: 0;
    border-bottom-color: transparent;
    -webkit-animation: loader-1-inner 1s linear infinite;
    animation: loader-1-inner 1s linear infinite;
}


@-webkit-keyframes loader-1-outter {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loader-1-outter {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes loader-1-inner {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(-360deg);
        transform: rotate(-360deg);
    }
}

@keyframes loader-1-inner {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(-360deg);
        transform: rotate(-360deg);
    }
}

@keyframes slowzoom {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/*loader bar animation*/
.loader-bar {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primarycolor);
    overflow: hidden;
    z-index: 9;
    display: none;
}
.loader-bar.show {
    display: block;

}

.loader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, #bfd0ff, transparent);
    animation: slide 1.5s linear infinite;
}

@keyframes slide {
    from {
        left: -50%;
    }
    to {
        left: 100%;
    }
}


/*Animated Logo*/

.dr-logo-container {
    position: absolute;
    transform: scale(1);
    margin: 17px 0px 0px 18px;
    z-index: 9;
    width: 25px;
    height: 25px;
}

.dr-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}



.dr-logo1, .dr-logo1-img {
    opacity: 1;
}

body.whitelabeled .dr-logo1 {
    opacity: 1;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -11%;
    border-radius: 100%;
}   

/*.dr-logo-container .loaderstar {display: none;}
.whitelabeled .dr-logo-container .dr-logo1-img {display: none;}
.whitelabeled .dr-logo-container .loaderstar {display: inline-block;}*/

.dr-logo.dr-logo2 {
    left: -1px;
    color: var(--primarycolor);
    color: #008489;
    font-size: 25px;
}

.whitelabeled .dr-logo.dr-logo2 {
    color: var(--primarycolor);
}

.loaderstar {
    color: var(--primarycolor);
    font-size: 30px;
}

/*body.whitelabeled .dr-logo.dr-logo2 {
    filter: hue-rotate(55deg) grayscale(0.5);
}
*/

/*logo end*/



#data-section {
    position: absolute;
    background: #fff;
    padding: 63px 20px 20px 20px;
    max-height: calc(100vh - 126px);
    height: 100vh;
    max-width: 100%;
    width: calc(100% - 250px);
    overflow: scroll;
    font-size: 0.9em;
    opacity: 1;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    z-index: 4;
}

@media (min-width: 950px) {

.leftside-open #data-section {
    width: calc(100% - 300px);
}
}


/*@media (min-width: 1050px) {

.leftside-open #data-section {
    width: calc(100% - 350px);
}
}
*/



#data-section .text-content {
    white-space: break-spaces;
}

/*[class^="tableview"] #data-section {
    max-height: 75vh;
    opacity: 1;
    pointer-events: all;
}*/


#data-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
    font-weight: 500;
}

#data-section th, #data-section td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    max-width: 300px;
}

#data-section th {
    background-color: #f2f2f2;
    font-weight: bold;
    position: sticky;
    top: -20px;
}

#data-section td {
    white-space: nowrap;
    overflow: hidden;
}
#data-section td:hover {
    white-space: nowrap;
    /*overflow: scroll;*/
        white-space: break-spaces;
}

#data-section th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#data-section tr {
    font-size: 0.96em;
}

.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 30px;
}

.dataTables_wrapper .dataTables_filter {
    float: left;
    text-align: left;
}
.dataTables_wrapper .dataTables_length {
    float: right;
}
.dataTables_wrapper .dataTables_filter input {
    min-width: 20vw;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
}

#data-section h4 {
    font-size: 1.05em;
    font-weight: 600;
    margin: 18px 0px 0px 0px;
}

#data-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0px 20px 0px;
    line-height: 1.3em;
    border-bottom: 1px solid #eceef5;
    padding-bottom: 12px;
}

#data-section h2 {
    font-size: 19px;
    font-weight: 600;
    color: #2c3e50;
    margin: 12px 0px 22px 0px;
    line-height: 1.3em;
    border-bottom: 1px solid #eceef5;
    padding-bottom: 14px;
}

/*.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {color: #eee !important}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {color: #eee !important}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: white !important;
    border: 1px solid #5856fd !important;
    border-radius: 6px !important;
    background-color: #5856fd !important;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #5856fd), color-stop(100%, #4c50ee)) !important;
    background: -webkit-linear-gradient(top, #5856fd 0%, #4c50ee 100%) !important;
    background: -moz-linear-gradient(top, #5856fd 0%, #4c50ee 100%) !important;
    background: -ms-linear-gradient(top, #5856fd 0%, #4c50ee 100%) !important;
    background: -o-linear-gradient(top, #5856fd 0%, #4c50ee 100%) !important;
    background: linear-gradient(to bottom, #5856fd 0%, #4c50ee 100%) !important;
}*/

/*[aria-label="closed_lost_reason"] {
  min-width: 200px;
}
*/

/*#data-section th:nth-child(4) {
  width: 200px !important;
}*/



.data-section-top-highlevel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0px 5px 0px;
    width: 100%;
    display: inline-flex;
}
.metric-total-item {
    text-align: left;
    min-width: 105px;
    border-radius: 7px;
    padding: 3px 20px 3px 0px;
    line-height: 1.6em;
}

.metric-total-item-value {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    width: 100%;
}
.metric-total-item-name {
    font-size: 0.72em;
    color: #525768;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0px;
}

.metric-total-item-value .val-type {
    margin-left: 0px;
    font-weight: 400;
    font-size: 0.95em;
}
.val-type-dollar {
    font-size: 0.9em;
    position: relative;
    top: -1px;
}

.metric-change {
    font-size: 0.8em;
    color: #666;
    margin-top: -3px;
}

.metric-change.positive {
    color: #00ab66;
}

.metric-change.negative {
    color: #ff4d4d;
}


.data-ai-summary {
    margin: 10px 0px 20px 0px;
    max-width: 1200px;
    background-color: #f5fbd6;
    font-size: 14px;
    line-height: 1.3em;
    padding: 20px;
    border-radius: 7px;
    width: 100%;
    display: inline-flex;
    max-height: 150px;
    overflow-y: auto;
}

/*  multi select  and search  */
.select2-results__option {
    padding: 6px;
    user-select: none;
    -webkit-user-select: none;
    font-size: 13px;
}

.select2.select2-container--default .select2-selection--multiple {
    font-size: 13px;
    padding-top: 3px;
    min-height: 35px;
    position: absolute;
    max-width: 190px;
    padding-right: 25px !important;
}

#bigquery-fields .select2.select2-container {
    max-width: 190px;
    min-width: 190px;
}

.select2.select2-container--default .select2-selection--multiple.select2-selection--clearable {
    padding-right: 15px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    margin-top: 3px;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    vertical-align: middle;
}

.select2.select2-container {
    max-width: 190px;
    min-width: 190px;
    font-size: 12px;
    margin-right: 5px;
    vertical-align: top;
    margin-top: 1px;
}

.select2.select2-container .select2-selection--single {
    height: 35px;
    position: relative;
    top: -1px;
}

.select2.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #222;
    line-height: 31px;
    font-weight: 500;
    padding-right: 30px;
}

.select2-dropdown {
min-width: 280px;
}

.select2.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    padding: 3px 4px;
}
.select2.select2-container--default .select2-selection--single .select2-selection__clear {
    font-weight: 500;
    height: 32px;
    font-size: 1.4em;
    padding: 5px;
    position: absolute;
    right: -6px;
    top: 1px;
    color: #8ca0bc;
    line-height: 22px;
}
.select2.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--primarycolor);
}
.select2.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-right: 6px;
    margin-top: 3px;
    position: absolute;
    right: 0;
    padding: 1px;
    font-weight: 400;
    font-size: 17px;
    color: #8ca0bc;
}
.select2.select2-container--default .select2-selection--multiple .select2-selection__clear :hover {
    color: var(--primarycolor);
}
.select2.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    font-size: 0.9em;
    font-weight: 500;
}
.select2.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f1eef9;
    border: 1px solid #c3c7d8;
}
.select2.select2-container--default.select2-container--focus .select2-selection--multiple,.select2.select2-container--default .select2-selection--single {
    border: solid #afb6c0 1px;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: calc(100vh - 413px) !important;
}


.select2-container--default .select2-search--inline .select2-search__field {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 38px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
   background-color: rgb(58 68 105 / 37%);
   justify-content: center;
    align-items: center;
}
.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: -3% auto 0px;
    padding: 35px;
    border: 1px solid #e2e3eb;
    width: 98%;
    max-width: 800px;
    border-radius: 14px;
    min-height: 400px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
    font-weight: 100;
    width: 30px;
    height: 29px;
    display: inline-block;
    background-color: #f9fbff;
    line-height: 30px;
    text-align: center;
    border-radius: 8px;
    margin: -15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close i {
    font-size: 17px;
    position: relative;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    background-color: #e5e8f2;
}

#csv-upload-form {
    margin-top: 20px;
}

#csv-upload-form input[type="file"] {
    margin-bottom: 10px;
}

.top-sec-icon.active {
    color: var(--primarycolor);
}

#data-section, #conversation-container {
    display: none;
}


#upload-modal #docs-files  {
    max-height: 40vh;
    overflow-y: auto;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8fafc;
}

#upload-modal .file-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #6c6c82;
    border-top: 1px solid #ddd;
    padding: 5px;
}

#upload-modal .file-icon {
    margin: 0px 8px;
    position: relative;
    top: 3px;
}

#upload-modal .file-size {
    margin-left: auto;
    padding-right: 10px;
    font-size: 12px;
    font-weight: 500;
}

#upload-modal .file-item.checked {
    background-color: #edf3f9;
}

#upload-modal .modal-upload-sec {
margin-top: 30px;
}

#upload-modal .modal-data-files-sec {
    padding-top: 20px;
}

#upload-modal .modal-sec-title {
    font-size: 16px;
    font-weight: 500;
    color: #929baa;
    margin-bottom: 7px;
    display: inline-block;
}

#upload-modal .file-delete {
    font-size: 12px;
    margin: 0px 10px 0px 3px;
    cursor: pointer;
}

#upload-modal .file-delete:hover {
color: var(--primarycolor);
}

#upload-modal #file-search {
    width: 300px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#upload-modal .modal-data-files-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.tab-button {
    background-color: #f9faff;
    border: 1px solid #dcdfec;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    font-size: 15px;
    border-radius: 4px 4px 0px 0px;
}

.tab-button:hover {
    background-color: #dee1f1;
}

.tab-button.active {
    background-color: var(--primarycolor);
    color: #fff;
    border: 1px solid var(--primarycolor);
}

.tab-content {
    padding: 0px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}



/*alert modal*/

/* Alert Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: calc(100% - 40px);
    max-width: 450px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 12px 25px;
    border-bottom: 1px solid #f3f2f8;
}

.modal-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.modal-close {
    cursor: pointer;
    transition: opacity 0.2s;
    background-color: #efeff7;
    width: 25px;
    height: 25px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9898ab;
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}

.modal-close:hover {
    background-color: var(--primarycolor);
    color: #fff;
}

#alert-modal .modal-content {
    min-height: 120px;
    border: 0px solid #e2e3eb;
    margin: 0px;
    padding: 25px;
    font-size: 0.93em;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 25px;
    border-top: 1px solid #eee;
    gap: 10px;
    background-color: #f5f5fb;
}

.modal-button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.modal-button-1 {
    background-color: #e7e7f1;
    color: #555;
}

.modal-button-2 {
    background-color: var(--primarycolor, #5856fd);
    color: white;
}

.modal-button:hover {
    filter: brightness(1.2);
}




/* Drag and Drop */
body.file-drag-over::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(233 236 243 / 78%);
    background: rgb(244 241 252 / 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--primarycolor);
    color: rgb(51, 51, 51);
    z-index: 1000;
    -webkit-backdrop-filter: saturate(280%) blur(4px);
    backdrop-filter: saturate(280%) blur(4px);
    pointer-events: none;
}
body.file-drag-over::before {
content: 'Drop files to attach';
    position: fixed;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--primarycolor);
    color: rgb(51, 51, 51);
    background-color: #ffffff85;
    padding: 8px 20px;
    z-index: 1001;
    pointer-events: none;
    margin: -24px -110px;
    border-radius: 30px;
}


/*attach modal*/
.attach-file-tog {
    cursor: pointer;
    padding: 8px;
    color: #4e5464;
    opacity: 0.7;
    margin: 0px -11px 0px 3px;
    position: relative;
    top: 2px;
}

.attach-file-tog:hover {
    color: var(--primarycolor);
    opacity: 1;
}

.attach-file-tog::before {
    content: "Attach CSV or TXT file";
    font-weight: 500;
    position: absolute;
    bottom: Calc(100% - 10px);
    left: -21px;
    font-size: 11px;
    text-align: center;
    line-height: 18px;
    display: inline-block;
    white-space: normal;
    padding: 4px 9px 5px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    line-height: 1em;
    font-weight: 600;
    background-color: #fff;
    color: #585f70;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0px 10px 8px -3px rgba(0, 40, 90, 0.1);
    width: 82px;
}

.attach-file-tog:hover::before {
    bottom: Calc(100% + 2px);
    opacity: 1;
}

#attach-modal .modal-content {
    max-width: 420px;
    min-height: 180px;
    padding: 20px;
}

.modal-attach-sec {
    padding: 20px 20px 0px 20px;
}

#attach-progress {
    margin-top: 10px;
    text-align: center;
    color: var(--primarycolor);
}

.attach-files-note {
    color: #a0a7b5;
    font-size: 13px;
    margin: 0px 0px 0px 9px;
    position: relative;
    text-align: center;
}

.success-message {
    color: #4CAF50;
    text-align: center;
    margin-top: 10px;
}

.ai-message-success {
    display: inline-block;
    background-color: #c4ead6;
    padding: 0px 4px;
    margin: -2px 3px 0px 0px;
    border-radius: 4px;
}

.modal-sec-title {
    font-weight: 500;
}

.attached-data .fa-paperclip {
    font-size: 0.8em;
    position: relative;
    top: 2px;
}

#attach-progress {
    margin-top: 10px;
    padding: 10px;
    text-align: center;
}

.success-message {
    color: #4CAF50;
    font-weight: 500;
}


#attach-file-form {
    margin: 20px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#attach-file-form button {
    margin-top: 10px;
}

.datasets-wrap .attached-data {
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}

.datasets-wrap .attached-data.highlight {
    background-color: #c5fde9;
    box-shadow: 0px 0px 0px 5px #c5fde9;
    border-radius: 4px;
    padding: 4px 0px;
}



/* Show data section for any tableview */
body[class*="tableview-"] #data-section {
    display: block;
}

/* Show conversation container for AI view */
body.aiview #conversation-container {
    display: block;
}

/*.table-tog.active {
    background-color: #e0e0e0;
}*/


.single-value-display {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 10px 0;
}

.single-value-display h3 {
    margin-bottom: 10px;
}

.single-value-display p {
    font-size: 1.2em;
    font-weight: bold;
}



#bigquery-fields, #hubspot-fields {
    display: inline-block;
}

.analysis-form-title {
    font-size: 14px;
    margin: 4px 0px 0px 0px;
    color: #555a71;
    font-weight: 600;
}

/*HIDDING BigQuery BQ from the left sidebar*/
.bigquery-data {display: none !important;}
.bigquery-data input {display: none;}

.top-sec-icon input {
    position: relative;
    opacity: 0.8;
    margin: 1px 7px 0px 0px;
}


/*in message table styles*/

.ai-table, .ai-message table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ai-table tbody, .ai-message table tbody {
    border: 1px solid #6e70821f;
}

.ai-table th, .ai-message table th {
background: #feffff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 4px solid var(--primarycolor);
}

.ai-table td, .ai-message table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.ai-table tr:hover, .ai-message table tr:hover {
    background: #f9f9f9;
}

.table-responsive, .ai-message table {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

/* For alternating row colors */
.ai-table tr:nth-child(even), .ai-message table tr:nth-child(even) {
    background: #fafafa;
}

/* Align numerical columns to the right */
.ai-table td:not(:first-child), .ai-message table td:not(:first-child) {
    text-align: left;
}

/* Add some padding for numerical columns */
.ai-table th:not(:first-child), 
.ai-table td:not(:first-child),
.ai-message table th:not(:first-child), 
.ai-message table td:not(:first-child) {
    padding-right: 24px;
    text-align: right;
}

.ai-table th:not(:first-child), 
.ai-message table th:not(:first-child) {
    text-align: right;
}

.ai-table th,
.ai-table td,
.ai-message table th,
.ai-message table td {
    padding: 12px;
    text-align: left; /* Default left alignment */
}

.ai-table th:not(:first-child), 
.ai-message table th:not(:first-child) {
    text-align: right;
}

.ai-table th.numeric,
.ai-table td.numeric,
.ai-message table th.numeric,
.ai-message table td.numeric {
    text-align: right;
    padding-right: 24px;
}

/*highlight bold metrics in tables*/
.ai-table td.numeric strong {
    background-color: #71efa542;
    border-radius: 3px;
    box-shadow: 0px 0px 0px 3px #71efa542;
}

/* Optional: add some extra right padding to the first column */
.ai-table th:first-child,
.ai-table td:first-child,
.ai-message table th:first-child,
.ai-message table td:first-child {
    padding-right: 24px;
}

/* Login page styles */

.login-wrap {
    display: flex;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 300px;
    margin: 30px auto 80px;
    padding: 25px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-button {
    width: 100%;
    padding: 14px;
    background-color: #5856fd;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.login-button:hover {
    background-color: #4645c8;
}

.error {
    color: #ff0000;
    margin-bottom: 10px;
}

.inactive {
    opacity: 0.5;
    pointer-events: none;
}



/*login end*/




/*------scroll bar---------------------*/

::-webkit-scrollbar {
  width: 5px;
  height: 7px;
}
::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
::-webkit-scrollbar-thumb {
  background: rgba(200,212,220,0.5);
  border: 0px none #ffffff;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb::before {
  content: '';
  width: 20px;
  height: 30px;
  background-color: red;
  position: absolute;
  margin: -5px 0px 0px -5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primarydark2)
}
::-webkit-scrollbar-thumb:active {
  background: var(--primarydark2)
}
::-webkit-scrollbar-track {
  background: transparent;
  border: 0px none #ffffff;
  border-radius: 50px;
}
::-webkit-scrollbar-track:hover {
  background: transparent;
}
::-webkit-scrollbar-track:active {
  background: transparent;
}
::-webkit-scrollbar-corner {
  background: transparent;
}



/* ====================== LEFT COLLAPSED STYLING ====================== */

.left-sb-tog {
    position: absolute;
    top: 8px;
    left: -21px;
    font-size: 11px;
    color: #aeaec8;
    background-color: transparent;
    line-height: 1em;
    padding: 3px 4px;
    border-radius: 40px;
    transform: rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    -webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}
.left-sb-tog:hover {
    color: var(--primarycolor);
    background-color: #e8ebfa;
}

.no-left-sb .left-sb-tog {
    transform: rotate(180deg);
    top: 54px;
    left: 2px;
}

.no-left-sb .left-sidebar {
    left: -300px;
}

.no-left-sb .main-content-sec {
    width: 100%;
    margin-left: 0px;
}

.no-left-sb #analysis-form input[type="text"], .no-left-sb #analysis-form input[type="number"], .no-left-sb #analysis-form select {
    width: 95px;
}

.no-left-sb #question-wrap {
    padding: 4px 10px 15px;
}

.no-left-sb #question-panel {
    width: 100%;
    left: 0px;
}

.no-left-sb #data-section {
    width: calc(100% - 2px);
}

.no-left-sb .loader {
    left: calc(50% + 0px);
}


/*External left sidebar styling*/

.exset-tog {
    position: absolute;
    bottom: 3px;
    right: 0px;
    font-size: 8px;
    color: #aeaec8;
    background-color: transparent;
    line-height: 1em;
    padding: 3px 4px;
    border-radius: 40px;
    transform: rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.exset-tog :hover {
    color: var(--primarycolor);
    background-color: #e8ebfa;
}

.exset .top-sec-right {
    display: none;
}


.exset #prompt-library {
    padding-top: 4px;
    height: 100vh;
    max-height: calc(100vh - 80px);
    overflow-y: scroll;
}
.show-prompts.exset #prompt-library {
    padding-top: 4px;
    height: 100vh;
    max-height: calc(100vh - 80px);
}

.exset #question-toolbar .left-side-sec-arw {display: none;}

.exset .prompt-pen-tog {display: inline-block;}



.message-header {
    position: absolute;
    top: 0px;
    right: 10px;
    z-index: 1;
    position: sticky;
    display: flex;
    width: calc(100% + 20px);
    justify-content: end;
    margin-top: -10px;
    margin-bottom: -12px;
    pointer-events: none;
}

.ai-auto-message .message-header {display: none !important;}

.message-header button {
    background-color: #f5f5f9;
    padding: 4px 6px;
    border-radius: 5px;
    cursor: pointer;
    color: #8b89ad;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    position: relative;
    border: 0px;
    pointer-events: all;
}


.ai-message:hover .message-header button {
    opacity: 1;
}

.message-header button:hover {
    color: var(--primarycolor);
}

.copy-tooltip {
    position: absolute;
    background: var(--primarydark2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    display: none;
}

.copy-message-btn:hover .copy-tooltip {
    display: block;
}

/* Success state */
.copy-message-btn.copied {
    color: #00ABB7;
}

.copy-message-btn.copied .copy-tooltip {
    background: #00ABB7;
}


.export-message-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    position: relative;
    color: #666;
}

.export-message-btn:hover {
    color: #5856fd;
}

.export-tooltip {
    position: absolute;
    background: var(--primarydark2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    display: none;
}

.export-message-btn:hover .export-tooltip {
    display: block;
}

.export-message-btn.exporting .export-tooltip {
    display: block;
}


.message-content {
    width: 100%;
}

.chart-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9;
}

.download-chart-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #a5a3b4;
    transition: opacity 0.2s ease-in-out;
    position: relative;
}

.download-chart-btn:hover {
    color: var(--primarycolor);
}

.download-tooltip {
    position: absolute;
    background: var(--primarydark2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    display: none;
    margin-bottom: 4px;
}

.download-chart-btn:hover .download-tooltip {
    display: block;
}

.chart-container {
    position: relative;
    margin: 20px auto;
}
.temp-export-canvasX {
    position: absolute;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
}

.message canvas {
    position: absolute;
    visibility: hidden;
    width: 0 !important;;
    height: 0 !important;;
    overflow: hidden;
}

.message .chart-container canvas {
    position: relative;
    visibility: inherit;
    width: 100% !important;
    height: 100% !important;
    overflow: visible;
}

.chart-title::before {display: none !important}




@property --angle{
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.glow-ani {z-index: 2;}

.glow-ani::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    left: 10%;
    top: 18%;
    background: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
    animation: rotateglow 4s linear infinite;
    filter: blur(6px);
    z-index: -1;
    border-radius: 50%;
}

@keyframes rotateglow {
to {
--angle: 360deg;
}
}

.logostar-wrap.glow-ani {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    margin: 0px 0px 0px -20px;
    pointer-events: initial;
}
.logostar-wrap.glow-ani::after {
    display: none;
}
.aithinking .logostar-wrap.glow-ani::after {
    display: inline-block;
}

.aithinking .logostar-wrap.glow-ani {
    animation: scaleLoop 2s infinite;
}

i.fa.fa-ai-star.logostar {
    font-size: 0.9em;
}

i.fa.fa-ai-star.logostar2 {
    position: absolute;
    font-size: 8px;
    margin: 0px 0px 0px -7px;
    display: none;
}
.advanced i.fa.fa-ai-star.logostar2 {
    display: inline-block;
}


@keyframes scaleLoop {
  0% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(0.6);
  }
  100% {
    transform: scale(1.1);
  }
}


.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}


/* ====================== WIDE STYLING ====================== */

@media (min-width: 950px) {


.left-sidebar {
    width: 300px;
}

.main-content-sec {
    width: calc(100% - 300px);
    margin-left: 300px;
}

#question-panel {
    left: 300px;
    width: calc(100% - 300px);
}

.no-left-sb .left-sidebar {
    left: -350px;
}


}

/* ====================== WIDE2 STYLING ====================== */

/*@media (min-width: 1050px) {


.left-sidebar {
    width: 350px;
}

.main-content-sec {
    width: calc(100% - 350px);
    margin-left: 350px;
}

#question-panel {
    left: 350px;
    width: calc(100% - 350px);
}

.no-left-sb .left-sidebar {
    left: -400px;
}

}*/

.datasets-footer-left {display: none;}

.aiadmin .datasets-footer-left {display: block;}


/* ====================== MOBILE STYLING ====================== */

@media (max-width: 490px) {



.left-sb-tog {
display: none;
}

.left-sidebar {
    left: -300px;
}

.main-content-sec {
    width: 100%;
    margin-left: 0px;
}

#analysis-form input[type="text"], #analysis-form input[type="number"], #analysis-form select {
    width: 95px;
}

#question-wrap {
    padding: 4px 10px 15px;
}

#question-panel {
    width: 100%;
    left: 0px;
} 

h1 {
    font-size: 17px;
    line-height: 1.2em;
}

#ai-thinking {
    left: auto;
    right: 10px;
}
.loader {
    left: calc(50% + 0px);
}
/*#user-question {
    font-size: 1.1em;
}
*/
#data-section, .data-section-top {
    width: 100%;
}
.prompt-pen-tog {
    display: none;
}
#conversation-container {
    padding: 30px 20px 90px 20px;
}


}



