/* Ask Follow-up Container */
#askFollowupSectionOld {
    background-color: #ffffffc9;
    border-radius: 1rem;
    box-shadow: 0px 0px 2px 2px rgb(12 140 233 / 48%);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

#summaryActionsOld{
    background-color: #ffffffc9;
    border-radius: 1rem;
    box-shadow: 0px 0px 2px 2px rgb(12 140 233 / 48%);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    /* padding: 1.5rem; */
}

/* Message List */
#askFollowupContainer .chatBox {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    padding-bottom: 0rem;
    border-radius: 0.5rem;
    box-shadow: 0px 0px 2px 2px #e5e7eb;
}

/* Individual Message Styling */
#askFollowupContainer .thread-item {
    display: flex;
    margin-bottom: 1rem;
    max-width: 85%;
}

#askFollowupContainer .thread-item.user-message {
    justify-content: flex-end;
    margin-left: auto;
}

#askFollowupContainer .thread-item.ai-message {
    justify-content: flex-start;
    margin-right: auto;
}

#askFollowupContainer .thread-item-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    background-color: transparent;
    padding: 0;
    align-items: flex-start;
}

#askFollowupContainer .user-message .thread-item-content {
    flex-direction: row-reverse;
    /* align-items: flex-start; */
}

#askFollowupContainer .thread-info {
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    border-radius: 9px;
    padding: 0.5rem;
    max-width: calc(100% - 40px);
}

#askFollowupContainer .user-message .thread-info {
    background-color: #E4EEF9;
    align-items: flex-end;
    text-align: left;
}

#askFollowupContainer .ai-message .thread-info {
    align-items: flex-start;
    text-align: left;
}

#askFollowupContainer .thread-item-name {
    display: none;
}

#askFollowupContainer .thread-message-text-time-div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}



#askFollowupContainer .thread-item-time {
    font-size: 0.75rem;
    color: #6b7280;
    align-self: flex-end;
}

#askFollowupContainer img.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 8px;
}

/* Input Form Styling */
.ask-followup-form {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    bottom: 0px;
    position: sticky;
    background-color: white;
}

.ask-followup-input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.ask-followup-input:focus {
    outline: none;
    border-color: #0a66c3;
    box-shadow: 0 0 0 3px rgba(10, 102, 195, 0.1);
}

.ask-followup-button {
    padding: 0.75rem 1rem;
    background-color: #0a66c3;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
}

.ask-followup-button:hover {
    background-color: #0958ab;
}

/* Responsive Design */
@media only screen and (max-width: 600px) {
    #askFollowupContainer .thread-item {
        max-width: 100%;
    }

    #extensionHistoryContainer .thread-item {
        max-width: 100%;
    }

    .ask-followup-form {
        flex-direction: column;
    }

    .ask-followup-input {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .ask-followup-button {
        width: 100%;
    }
}

#askFollowupContainer .thread-item-message {
    color: #4b5563;
    word-wrap: break-word;
    word-break: break-word;
    margin: 0;
    white-space: normal; /* Ensure text wraps */
    overflow: visible; /* Allow content to expand */
    text-overflow: clip; /* Don't truncate text */
    max-width: none; /* Remove any max-width restrictions */
}

#askFollowupContainer .thread-info {
    max-width: none; /* Remove max-width restriction */
    width: auto; /* Allow content to determine width */
}

#askFollowupContainer .thread-item {
    max-width: 85%; /* Adjust as needed */
}

/* Message List */
#extensionHistoryContainer .thread-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    box-shadow: 0px 0px 2px 2px #e5e7eb;
}

/* Individual Message Styling */
#extensionHistoryContainer .thread-item {
    display: flex;
    margin-bottom: 1rem;
    max-width: 85%;
}

#extensionHistoryContainer .thread-item.user-message {
    justify-content: flex-end;
    margin-left: auto;
}

#extensionHistoryContainer .thread-item.ai-message {
    justify-content: flex-start;
    margin-right: auto;
}

#extensionHistoryContainer .thread-item-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: transparent;
    padding: 0;
}

#extensionHistoryContainer .user-message .thread-item-content {
    flex-direction: row-reverse;
}

#extensionHistoryContainer .thread-info {
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    border-radius: 9px;
    padding: 0.5rem;
    max-width: calc(100% - 40px);
}

#extensionHistoryContainer .user-message .thread-info {
    background-color: #E4EEF9;
    align-items: flex-end;
    text-align: left;
}

#extensionHistoryContainer .ai-message .thread-info {
    align-items: flex-start;
    text-align: left;
}

#extensionHistoryContainer .thread-item-name {
    display: none;
}

#extensionHistoryContainer .thread-message-text-time-div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}



#extensionHistoryContainer .thread-item-time {
    font-size: 0.75rem;
    color: #6b7280;
    align-self: flex-end;
}

#extensionHistoryContainer img.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 8px;
}

#extensionHistoryContainer .thread-item-message {
    color: #4b5563;
    word-wrap: break-word;
    word-break: break-word;
    margin: 0;
    white-space: normal; /* Ensure text wraps */
    overflow: visible; /* Allow content to expand */
    text-overflow: clip; /* Don't truncate text */
    max-width: none; /* Remove any max-width restrictions */
}

#extensionHistoryContainer .thread-info {
    max-width: none; /* Remove max-width restriction */
    width: auto; /* Allow content to determine width */
}

#extensionHistoryContainer .thread-item {
    max-width: 85%; /* Adjust as needed */
}

#extensionHistorySectionOld {
    background-color: #ffffffc9;
    border-radius: 1rem;
    box-shadow: 0px 0px 2px 2px rgb(12 140 233 / 48%);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.section-description{
    margin: 15px;
    margin-left: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 30px;
    border: 0px solid transparent;
    margin-top: 0px;
}

/* CSS for the toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
  }
  
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 34px;
  }
  
  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .toggle-slider {
    background-color: #3b82f6;
  }
  
  input:checked + .toggle-slider:before {
    transform: translateX(20px);
  }