@media (max-width: 900px) {
    .bot-keyword-link {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .bot-keyword-link {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

#default-helpful-interface {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
    gap: 0px; /* Add spacing between columns */
/*grid-auto-rows: 10px;*/
     grid-row-gap: 10px;
    padding: 5px;
    text-align: left;
    /*color: #ffffff;*/
    background-color: white;
    /*border-radius: 10px;*/
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);*/
}

.helpful-section, .helpful-section-examples {
    /*display: block;*/
    background-color: white;
    padding: 10px;
    margin: 5px;
    /*border-radius: 5px;*/
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    /*align-items:;*/
    /*height: 500px;*/
    font-size: 0px; /* removes space in child inline elements */
}

.helpful-section h2, .helpful-section-examples h2 {
    font-size: 18px;
    margin-bottom: 15px;
    /*color: #10a37f;*/
    text-align: center;
}

.helpful-section ul, .helpful-section-examples ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /*height: 300px;*/
    /*height: 50%;*/
    /*display: block;*/
}

.helpful-section ul li, .helpful-section-examples ul li {
    background-color: #f4f4f9;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: black;
    font-size: 14px;
    text-align: center;
       /*display: flex;*/
    /*padding: 10px 15px;*/

}

.helpful-section ul li:hover {
    /*background-color: #5a5b5e;*/
    cursor: text;
}

.helpful-section-examples ul li:hover {
    opacity: 0.8;
    cursor: pointer;
}



/* General container styling */
#chatbot-container {
    display: flex;
    flex-direction: row;
    width: 98%;
    /*height: 95%;*/
    height: calc(98vh - 110px);
    background-color: transparent;
    /*color: #dcdcdc;*/
    font-family: Arial, sans-serif;
    overflow: hidden;
    position: relative;
    /*margin-left: 10px;*/
    /*margin-right: 10px;*/
    margin: 15px;
    /*margin-bottom: 0px;*/
    /*padding: 10px;*/
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

/* Sidebar styling */
#chatbot-sidebar {
    width: 300px;
    background-color: #ffffff;
    color: #dcdcdc;
    padding: 10px;
    padding-right: 5px;
    border: 1px solid;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    /*position: fixed;*/
    /*height: 100vh;*/
    overflow-y: auto;
}

#sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#new-chat-button {
    /*background-color: #10a37f;*/
    color: black;
    border: none;
    padding: 15px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
}

#new-chat-button:hover {
    background-color: #f4f4f9;
}

#recent-chats {
    flex-grow: 1;
    overflow-y: auto;
    height: 400px;
}

.recent-label {
    font-size: 12px;
    color: black;
    font-weight: bold;
}

#recent-chats-list {
    list-style: none;
    padding: 0;
}

#recent-chats-list li {
    padding: 10px;
    /*background-color: #2a2b2e;*/
    color: black;
    margin-bottom: 10px;
    margin-right: 5px;
    border-radius: 5px;
    cursor: pointer;
}

#recent-chats-list li:hover {
    background-color: #f4f4f9;
}


/* chat session navigation */

/* Highlight the active session */
.chat-session.active {
    background-color: #f4f4f9;
    color: #000;
    /*border-left: 4px solid #10a37f;*/
}

/* Three dots for session options */
.three-dots {
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 10%;
    background-color: transparent;
    transition: background-color 0.2s;
}

.three-dots:hover {
    background-color: #ddd;
}

/* Options popup menu */
.options-popup {
    display: none;
    position: absolute;
    left: 80px;
    top: 30px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    min-width: 100px;
    /*padding: 10px;*/
}

.options-popup ul {
    list-style: none;
    margin: 0;
    padding: 10px;
    padding-right: 5px;
}

.options-popup ul li {
    /*padding: 10px 20px;*/
    cursor: pointer;
    transition: background-color 0.2s;
}

.options-popup ul li:hover {
    background-color: #f9f9f9;
}

/* Adjust session name container to position the menu */
.session-name-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



#chatbot-message-container {
    /*flex-grow: 1;*/
    display: flex;
    flex-direction: column;
    padding: 5px;
    width: 100%;
    /*overflow-y: auto;*/
    background-color: #ffffff;
    color: #dcdcdc;
    border: 1px solid;
    /*margin-left: 320px;*/
    /*height: calc(100vh - 160px); */
    /*scroll-behavior: smooth;*/
    box-sizing: border-box;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}


/* Chat messages styling */

#chatbot-messages {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 5px;
    overflow-y: auto;
    background-color: #ffffff;
    color: #dcdcdc;
    height: 400px; /* Set a fixed height for the chat message container */
    scroll-behavior: smooth;
    box-sizing: border-box;
    /*border: 1px solid #ccc;*/
    /*border-radius: 5px;*/
    white-space: pre-wrap; /* Allow multiline messages */
    word-wrap: break-word; /* Ensure long words are broken to fit in container */
}

.user-message-container {
    text-align: right;
    padding: 5px;
}

.bot-message-container {
    text-align: left;
    align-items: center;
    padding: 5px;
}

/*.bot-chart-container {*/
/*    display: flex;*/
/*    justify-content: flex-start; */
/*    margin-top: 20px;*/
/*    padding: 5px;*/
/*}*/

.chart-row-bot {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* spacing between cards */
    justify-content: flex-start;
    margin: 20px 0;
}

.bot-keyword-link {
    text-decoration: none;
    color: inherit; /* Ensure the link does not change the text color */
    border-radius: 10px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0;
    /*margin: 20px;*/
    box-sizing: border-box;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    /*max-width: 60%;*/
    height: auto;
    /*flex: 1 1 0;*/
    max-height: 500px;
    min-width: 340px;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    /*transition: border 0.3s ease;*/
    
    /*overflow: hidden; /* Prevent overflow if content is too large */
}

.bot-keyword-link:hover {
    border: 1px solid #007bff; /* Add a blue border on hover */
    
}

.bot-chart-card {
    background-color: white;
    border-radius: 10px;
    /*box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);*/
    padding: 20px;
    box-sizing: border-box;
    /*flex: 1 1 calc(33.333% - 20px);*/
    /*max-width: calc(33.333% - 20px);*/
    flex: 1 1 0;
    min-width: 340px;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: border 0.3s ease;
    height: 100%;
    max-height: 450px;
    /*overflow: hidden; /* Prevent overflow if content is too large */
}


.bot-chart-card .volume-growth .volume .volume-number {
    text-align: center;
    /*display: block;*/
    
}


/*.trend-chart {*/
/*    max-width: 90%;*/
    /*width: 300px; */
/*    height: auto;*/
/*    border-radius: 5px;*/
/*    display: flex;*/
/*}*/

.bot-chart-container {
    display: flex;
    margin-bottom: 20px;
    text-align: center;
    /*flex-grow: 1;*/
    width: 100%;
    height: 150px;
}

.bot-chart-container canvas {
    /*width: 100%; */
    /*height: auto !important; */
    width: 100% !important;
    height: 100% !important;
    max-height:185px;
    padding: 0;
}

.bot-chart-card-bottom {
    position: relative;
    display: flex;
    justify-content: space-between; /* Keeps keyword on the left and volume/growth on the right */
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: nowrap; /* Prevent wrapping within this row */
    
}

.bot-track-wrapper {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    align-items: center;    /* Centers the button vertically */
    position: relative;
    width: fit-content;
}

/* track keyword */

.bot-track-keyword {
    /*display: flex;*/
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #007bff;
    color: white;
    text-align: left;
    width: auto;
    height: 33px;
    margin: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s;
    pointer-events: auto;
}

.bot-track-keyword.tracked {
    background-color: #23c175;
    color: white;
    /*cursor: not-allowed; */
}

.bot-project-list {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    width: 160px;
    padding: 10px;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 300px; /* Set a maximum height for the project list */
    overflow-y: auto; /* Enable vertical scrolling */
    display: block;
    white-space: nowrap;
}

.bot-project-option {
    padding: 8px;
    cursor: pointer;
    color: #007bff;
    background-color: #e6f7ff;
    margin-bottom: 10px;
    font-weight: 500;
    white-space: nowrap;
    flex-grow: 0;
    display: block;
    /*pointer-events: auto;*/
}

.bot-project-option:hover {
    background-color: #007bff;
    color: white;
}

.bot-project-option.highlighted {
    background-color: #007bff; /* Light blue background */
    font-weight: bold;
    color: white; /* Darker color to indicate active */
    pointer-events: none;
    cursor: text;
}


.user-message {
    background-color: #f4f4f9;
    color: #000;
    padding: 10px;
    margin: 10px 0;
    border-radius: 15px;
    max-width: 70%;
    display: inline-block;
}

.bot-message {
    background-color: #ffffff;
    color: #000;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    max-width: 70%;
    display: inline-block;
    align-items: center;
}

.bot-icon {
    margin-right: 10px;
    align-items: center;
}

/* Input styling */
#chatbot-input {
    display: flex;
    padding: 10px;
    background-color: #f4f4f9;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin: 5px;
    /*margin: 15px;*/
    /*border-top: 1px solid #000;*/
    /*margin-left: 320px;*/
    /*position: fixed;*/
    /*bottom: 0;*/
    width: 99%;
    /*height: 100px;*/
    /*z-index: 10;*/
    box-sizing: border-box;
    align-items: center;
    gap: 10px;
    
}

#user-input {
    padding: 0px;
    display: flex;
    position: relative;
    /*border-radius: 5px;*/
    /*border: 1px solid #ccc;*/
    border: 0;
    /*outline: none;*/
    font-size: 16px;
    background-color: #f4f4f9;
    color: #000000;
    resize: none; /* Prevent textarea from being resized by the user */
    overflow-y: auto; /* Enable scrolling when max height is reached */
    min-height: 40px; /* Minimum height (1 line) */
    max-height: calc(1.5em * 5); /* Max height for 10 lines (1.5em per line) */
    /*height: 100px !important;*/
    /*min-height: 100px !important;*/
    /*max-height: 100px !important;  */
    flex: 1;
    box-sizing: border-box;
}

/*#send-button {*/
/*    padding: 10px 15px;*/
/*    background-color: #10a37f;*/
/*    color: #fff;*/
/*    border: none;*/
/*    cursor: pointer;*/
/*    border-radius: 5px;*/
/*    font-weight: bold;*/
/*    width: 80px;*/
    /*height: 40px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    box-sizing: border-box;*/
    
/*}*/

/*#send-button:hover {*/
/*    background-color: #0e8d6d;*/
/*}*/

#send-button {
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    /*border-radius: 50%;*/
    transition: background-color 0.2s ease-in-out;
}

#send-button:hover {
    background-color: rgba(79, 70, 229, 0.1); /* Add a hover effect with a light background */
}

#send-button svg {
    fill: #4f46e5; /* Indigo color */
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease-in-out;
}

#send-button:hover svg {
    transform: scale(1.1); /* Slight zoom-in effect on hover */
}

#send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.chat-status {
    color: black;
}

/*status animation*/

.dot-anim::after {
    content: '';
    animation: dots 3s steps(3, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    33%  { content: '.'; }
    66%  { content: '..'; }
    100% { content: '...'; }
}




