/* Global styles */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

body {
    padding-top: 56px; /* Adjust this to match your navbar height */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Flex container for chat layout */
.flex-container {
    display: flex;
    height: calc(100vh - 76px); /* Adjust based on your navbar height (56px) plus desired bottom padding (20px) */
    padding: 20px 20px 40px 20px; /* Increased bottom padding */
    gap: 20px;
}

.supporting-text-card, .chat-container {
    width: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.supporting-text-card {
    padding: 20px;
    overflow-y: auto;
}

/* Layout */
.main-container {
    display: flex;
    height: calc(100vh - 56px); 
    width: 100%;
    margin-top: 0; 
    padding-top: 0;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #1E2A5E; /* Match navbar color */
    color: white; /* White text color */
    padding: 20px;
    height: 100%; /* Take full height of main-container */
    overflow-y: auto;
}

/* Add this new style for the first menu item or content in the sidebar */
.sidebar > .menu-item:first-child,
.sidebar > div:first-child {
    margin-top: 50px; 
}

.menu-item {
    margin-bottom: 15px;
}

.menu-title {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: white; /* White text color */
}

.expand-collapse-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border: 1px solid #ffffff;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 14px;
    background-color: transparent;
    color: white;
}

.sub-menu {
    list-style-type: none;
    padding-left: 30px;
    margin: 0;
    display: none;
}

.sub-menu li {
    margin-bottom: 5px;
}

.sub-menu a {
    text-decoration: none;
    color: white; /* White text color */
    display: block;
    padding: 5px 0;
    transition: background-color 0.3s, color 0.3s;
    padding-left: 40px;
}

.sub-menu a:hover,
.sub-menu a.active,
.sub-menu a.active-link {
    background-color: #2a3b7e; /* Slightly lighter blue for hover effect */
    color: #ffffff; /* Ensure text remains white on hover */
}

.sidebar a {
    margin-bottom: 5px;
    padding: 10px;
    display: block;
    color: white; /* White text color */
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar a:hover, .sidebar a.active, .sidebar a.active-link {
    background-color: #2a3b7e; /* Slightly lighter blue for hover effect */
    color: white;
    border-radius: 5px;
}

.content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    height: 100%; /* Take full height of main-container */
}

/* Top panel */
.top-panel {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
}

.top-panel ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.top-panel li {
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

.top-panel li:hover {
    color: #007bff;
}

/* Main content */
.main-content {
    display: flex;
    flex-grow: 1;
    gap: 20px;
}

.form-container, .chat-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 0; /* Remove top margin */
    height: 100%; /* Ensure they take full height */
}

.form-container {
    flex: 1;
    padding: 30px;
}

/* Tabs */
.nav-tabs {
    border-bottom: none;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    color: #495057;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: #007bff;
}

/* File upload */
.file-upload-wrapper {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.file-upload-label {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background-color: #0056b3;
}

.file-upload-input {
    display: none;
}

.file-upload-filename {
    margin-top: 10px;
    font-weight: 500;
}

/* Options */
.extraction-options, .storing-options {
    margin-top: 30px;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.option-item {
    background-color: #f1f3f5;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover, .option-item.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Chat container styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of flex-container */
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none; /* Remove border */
    box-shadow: none; /* Remove any box shadow */
    transition: none; /* Remove any transition effects */
}

.card:hover {
    box-shadow: none; /* Ensure no box shadow on hover */
    transform: none; /* Ensure no transform on hover */
}

.card-header {
    background-color: #4a76a8;
    color: white;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

.card-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.message-logo-container {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.message-text {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 0.95em;
    line-height: 1.4;
}

.sent {
    flex-direction: row-reverse;
}

.sent .message-logo-container {
    margin-right: 0;
    margin-left: 10px;
}

.sent .message-text {
    background-color: #4a76a8;
    color: white;
    border-bottom-right-radius: 4px;
}

.received .message-text {
    background-color: #e4e6eb;
    color: #050505;
    border-bottom-left-radius: 4px;
}

.message-content {
    margin: 0;
    word-wrap: break-word;
}

/* .message-form {
    padding: 15px;
    background-color: #f0f2f5;
    border-top: 1px solid #e4e6eb;
    border-bottom-left-radius: 10px; 
    border-bottom-right-radius: 10px;
} */

.message-form {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f0f2f5;
    border-top: 1px solid #e4e6eb;
}


/* .message-input {
    width: calc(100% - 60px);
    border: 1px solid #ced4da;
    background-color: white;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.95em;
} */

/* .message-input {
    flex-grow: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px; 
} */
#chat-form .message-input {
    flex-grow: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px; /* Space between input and button */
}

#chat-form .btn-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #4a76a8;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
/* .message-input {
    flex-grow: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px; 
    width: auto !important;
}

.btn-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #4a76a8;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0 !important; 
} */

/* .btn-send {
    background-color: #4a76a8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
} */
/* .btn-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #4a76a8;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
} */

.typing-indicator {
    display: flex;
    padding: 10px;
    background-color: #e4e6eb;
    border-radius: 18px;
    margin-bottom: 15px;
    width: fit-content;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #93959f;
    border-radius: 50%;
    display: inline-block;
    margin: 0 1px;
    opacity: 0.4;
    animation: typing 1s infinite;
}

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

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

@keyframes typing {
    0% {
        transform: translateY(0px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0px);
        opacity: 0.4;
    }
}

/* Navigation buttons */
.button-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 10px;
}

.button-container button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Flex container for chat layout */
.flex-container {
    display: flex;
    height: calc(100vh - 76px); /* Adjust based on your navbar height (56px) plus desired bottom padding (20px) */
    padding: 20px;
    gap: 20px;
}

.supporting-text-card {
    width: 30%;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 0; /* Remove margin */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height */
}

.model-selector {
    margin-bottom: 20px;
}

.model-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.model-selector select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #fff;
}

/* File upload section */
.file-upload-section {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.file-upload-section h4 {
    margin-bottom: 15px;
    color: #495057;
}

/* File upload tabs */
.file-upload-section .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.file-upload-section .nav-tabs .nav-link {
    border: 1px solid #dee2e6;
    border-bottom: none;
    color: #495057;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.file-upload-section .nav-tabs .nav-link:hover {
    background-color: #f8f9fa;
}

.file-upload-section .nav-tabs .nav-link.active {
    color: #007bff;
    background-color: #fff;
    border-bottom: 2px solid #fff;
    margin-bottom: -2px;
}

/* Form layout */
.file-upload-form {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.file-input-group {
    flex-grow: 1;
    margin-right: 15px;
}

.form-control-file,
.form-control {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Upload button */
.btn-upload {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-upload:hover {
    background-color: #0056b3;
}

/* Styles for RAG Components page */
.content h1 {
    text-align: center;
    margin-bottom: 20px;
}

.content p {
    margin-top: 5px;
    margin-bottom: 5px;
}

.content img {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 20px auto;
}

.content ul {
    list-style-type: none;
    padding-left: 0;
}

.content ul li {
    margin-bottom: 10px;
}

.content .description {
    margin-left: 20px;
}

.content table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.content table th,
.content table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.content table th {
    background-color: #55679C;
    color: white;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group textarea {
    height: 100px;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Ensure navbar stays on top */
    background-color: #1E2A5E !important;
    padding: 0.3rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.navbar-dark .navbar-nav .nav-link {
    color: #cbd5db !important;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

/* User profile styles */
.navbar-nav .nav-item .nav-link {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item .nav-link img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    object-fit: cover;
    border: 2px solid #FFD700;
    margin-right: 8px;
}

/* Logout icon styles */
.logout-icon {
    width: 24px;
    height: 24px;
    filter: invert(83%) sepia(71%) saturate(401%) hue-rotate(358deg) brightness(107%) contrast(107%);
}

.btn-link {
    color: #cbd5db;
}

.btn-link:hover {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .main-container {
        flex-direction: column;
    }
}

body {
    padding-bottom: 20px; /* Add padding to the bottom of the page */
}

.indexing-container {
    display: flex;
    flex-direction: column;
    width: 98%;
    max-width: 1800px;
    margin: 20px auto;
    height: calc(100vh - 120px); /* Reduced height to account for body padding */
    overflow: hidden;
}

.tables-row {
    display: flex;
    gap: 20px;
    height: 100%;
    padding-bottom: 20px; /* Add padding to ensure bottom borders are visible */
}

.index-table-container, .file-table-container {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px; /* Add margin to ensure bottom borders are visible */
}

.tile-header {
    background-color: #1E2A5E;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    position: relative;
}

.tile-content {
    padding: 15px;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-height: calc(100% - 60px); /* Adjust to account for header height */
}

.table-wrapper {
    overflow-y: auto;
    flex-grow: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 100%; /* Ensure it doesn't overflow its container */
}

.index-table, .file-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.index-table th, .file-table th {
    position: sticky;
    top: 0;
    background-color: #55679C;
    color: #ffffff;
    z-index: 10;
    text-align: center;
    padding: 10px 8px;
}

.index-table td, .file-table td {
    border: 1px solid #e0e0e0;
    padding: 8px;
    text-align: left;
}

.index-table td:last-child, .file-table td:last-child {
    text-align: center;
}

.add-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 15px 20px;
    background-color: #1E2A5E;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

/* Button styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* .btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
} */

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #28a745;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary:hover {
    background-color: #218838;
}

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

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.hidden {
    display: none;
}

.delete-icon {
    cursor: pointer;
    color: #dc3545;
    transition: color 0.3s ease;
}

.delete-icon:hover {
    color: #c82333;
}

    /* General reset and full height setting */
    html,
    body {
        margin: 0;
        padding: 0;
        height: 100%;
    }

    body {
        padding-top: 56px;
        /* Adjust if your header height is different */
        display: flex;
        flex-direction: column;
        margin: 0;
        /* Remove default margin */
    }

    /* Make sure the main content container is positioned relatively */
    .main-content {
        position: relative;
        /* Added position relative */
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-bottom: 60px;
        /* Add padding bottom to prevent chat from hiding behind the input box */
    }

    /* Set the chat container to fill the remaining space */
    /* Main content area to the right of the sidebar */
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* html {
      height: 100%;
      margin: 0;
    } */
    /* Ensure the flex container fills the height and aligns with the top */
    /* Container for the entire layout */
    .flex-container {
        display: flex;
        flex-direction: row;
        height: 100%;
    }

    /* Sidebar styling */
    .supporting-text-card {
        width: 30%;
        /* Adjust the sidebar width as needed */
        /* other styles... */
    }

    /* Adjust the chat container to fit within the content area */
    /* .chat-container {
        flex-grow: 1; 
        display: flex;
        flex-direction: column;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        max-height: calc(100vh - 120px); 
        overflow: auto; 
    } */
    /* Adjust the chat container */
    /* Adjust the chat container to allow the message box to fill the space */
    .chat-container {
        display: flex;
        flex-direction: column;
        /* Stack children vertically */
        height: 100%;
        /* Use full height of the parent */
    }

    /* Additional necessary styles */
    .card {
        display: flex;
        flex-direction: column;
        height: 100%;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    /* Ensure the card-body takes up all available space and pushes the message-form down */
    .card-body {
        flex-grow: 1;
        /* Grow to use available space */
        overflow-y: auto;
        /* Keep the overflow as auto */
        margin-bottom: 0;
        /* Remove any margin at the bottom */
    }


    /* Make the chat messages container fill the space and scroll if needed */
    /* Container for chat messages */
    /* Remove bottom margins from the last message to avoid unnecessary scrolling */
    .messages-box>ul>li:last-child {
        margin-bottom: 0;
        /* Remove margin from the last message */
    }

    .messages-list {
        padding-left: 0;
    }

    .message {
        margin-bottom: 15px;
        list-style: none;
    }

    .message-text {
        display: inline-block;
        vertical-align: middle;
        padding: 10px;
        /* border-radius: 15px; This will give rounded corners to the message boxes */
        margin-left: 55px;
        /* Adjust as needed */
        /* ... Other properties ... */
    }

    /* Clearfix for .message */
    .message:after {
        content: "";
        display: table;
        clear: both;
    }

    .sent {
        background-color: #dcf8c6;
        align-self: flex-end;
    }

    .received {
        background-color: #f1f0f0;
        align-self: flex-start;
    }

    .message.sent,
    .message.received {
        border-radius: 15px;
        /* Apply border-radius to the li elements */
        overflow: hidden;
        /* This ensures the child divs do not overflow the rounded corners */
        /* Other styling as needed */
    }

    /* Position the message form at the bottom */
    /* Form at the bottom of the main content */
    /* Message form styles */
    /* Ensure the message form is styled to stick to the bottom and match the width of the main content */
    /* Update the message-form to ensure it does not have extra space around it */
    /* .message-form { */
        /* margin-top: 0; */
        /* Remove margin at the top to close the gap */
        /* Other styles remain the same */
    /* } */

    /* Ensure the input and button are only as wide as the chat container */
    /* Additional styles for input and button */
    /* You might not need this if you set the width of input group to 100% */
    .message-input,
    .btn-send {
        width: 100%;
        /* Set width to 100% if necessary */
    }

    /* Fix for form and input group */
    /* Update the input group to span the full width of the form */
    .input-group {
        width: 100%;
        /* Set the input group to take up 100% of the form's width */
    }

    /* Additional styles for the input group append to ensure alignment */
    /* .input-group-append {
        margin-left: -1px;
        
    } */

    .message-logo-container {
        float: left;
    }

    .message-logo {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
        vertical-align: middle;
    }

    .sent .message-logo {
        float: right;
        margin-right: 0;
        margin-left: 10px;
    }

    .received .message-logo {
        float: left;
    }

    .keyword {
        color: #0000ff;
    }

    .copy-button {
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 1.2em;
        /* Adjust the size as needed */
    }

    .code-container {
        position: relative;
        border: 1px solid #ddd;
        background-color: #e8f0fe;
        /* A light blue background for highlighting */
        padding: 10px;
        border-radius: 4px;
        margin: 10px 0;
        overflow-x: auto;
        /* In case the code overflows horizontally */
    }


    .code-container pre {
        margin: 0;
    }





    .code-container code {
        font-family: 'Courier New', Courier, monospace;
        /* Ensures code is displayed in a monospaced font */
    }

    .rag-data-container {
        padding: 20px;
        width: 100%;
    }
    table {
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 1rem;
    }
    th, td {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }
    thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #dee2e6;
    }
    tr:nth-child(even) {
        background-color: #f9f9f9;
    }
    h1 {
        margin-bottom: 20px;
    }
    .action-btn {
        margin-right: 5px;
        cursor: pointer;
    }
    #add-row-btn {
        cursor: pointer;
        float: right;
    }
    .table-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }