.flash-bg {
    background-color: lightgreen;
    transition: background-color 0.5s;
}

/* Add relative positioning to the container */
.form-group {
    position: relative;
    z-index: 1;
}

/* Add the flash effect using a pseudo-element */
.form-group.flash-light-red::before {
    content: '';
    display: block;
    position: absolute;
    top: -0.4rem; /* Extend above the top of the container */
    right: -0.4rem; /* Extend to the right */
    bottom: -0.4rem; /* Extend below the bottom */
    left: -0.4rem; /* Extend to the left */
    border-radius: 0.5rem;
    background-color: rgba(255, 204, 204, 0.5); /* Light red background color */
    z-index: -1; /* Place the pseudo-element below the content */
    animation: flashLightRed 0.5s ease-out forwards; /* Use forwards to keep the last keyframe style */
}

@keyframes flashLightRedFadeOut {
    0% {
        box-shadow: 0 0 0 2px #ffcccc inset; /* Light red shadow */
    }
    100% {
        box-shadow: 0 0 0 2px #ffcccc00 inset; /* Transparent shadow */
    }
}


.chat-window {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    height: 500px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.message {
    position: relative;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

.message.user {
    background-color: #e6f7ff;
}

.message.processing {
    background-color: orange;
}

.message.bot {
    background-color: #dbfade;
}

.message span {
    margin-right: 10px; /* Adjust as necessary */
}

.chat-input-group {
    display: flex;
    align-items: stretch; /* Aligns items vertically */
    flex: 1;
}

.chat-input {
    flex-grow: 1; /* Allows the input to grow and occupy available space */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none; /* Disables resizing */
}

.send-button {
    margin-left: 10px; /* Adds some space between the textarea and the button */
    display: flex;
    align-items: center; /* Centers the text inside the button vertically */
    justify-content: center; /* Centers the text inside the button horizontally */
    padding: 10px;
}

#cardsContainer {
    display: flex;
    align-items: stretch;
}

.restore-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* DataTables */
.dataTables_wrapper {
    border-radius: 8px; /* Adjust the value as needed for desired roundness */
    overflow: hidden; /* This ensures that the table's corners are clipped to the container's rounded corners */
}

.dataTables_wrapper {
    border-radius: 8px; /* Adjust the value as needed for desired roundness */
    overflow: hidden; /* This ensures that the table's corners are clipped to the container's rounded corners */
}

/* To ensure the table header also conforms to the rounded corners */
.table thead th:first-child {
    border-top-left-radius: 8px; /* Match this value to the border-radius of .dataTables_wrapper */
}

.table thead th:last-child {
    border-top-right-radius: 8px; /* Match this value to the border-radius of .dataTables_wrapper */
}

/* If your table has a footer */
.table tfoot td:first-child {
    border-bottom-left-radius: 8px; /* Match this value to the border-radius of .dataTables_wrapper */
}

.table tfoot td:last-child {
    border-bottom-right-radius: 5px; /* Match this value to the border-radius of .dataTables_wrapper */
}

.dataTables_wrapper .table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.no-wrap {
    white-space: nowrap;
}

.table thead th {
    border-top: 2px solid #dee2e6; /* Replace with your desired border color and width */
}

table.dataTable.no-footer {
    border-bottom: none !important; /* Use !important to override any existing styles */
}

.dataTables_wrapper .dataTables_filter {
    /* Add space below the search box */
    margin-bottom: 2rem; /* Adjust the value as needed */
}

.dataTables_wrapper .dataTables_length {
    /* Add space below the length menu */
    margin-bottom: 2rem; /* Adjust the value as needed */
}

/* If you want to add space above the entire block of DataTables controls */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem; /* Adjust the value as needed */
}

/* Target the last 'tr' within the current DataTables page */
.dataTables_wrapper .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px; /* Match this value to the border-radius of .dataTables_wrapper */
}

.dataTables_wrapper .table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px; /* Match this value to the border-radius of .dataTables_wrapper */
}


/* DataTables */


/* Added styles for sidebar */
.sidebar {
    height: 100%;
    width: 25px;
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
}

.sidebar-content {
    margin: 15px;
    color: #f1f1f1;
}

.sidebar-close {
    cursor: pointer;
}

.copy-span {
    cursor: pointer;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
}

/* Toggle Icon Styles */
.toggle-icon {
    position: fixed;
    z-index: 10000;
    top: 15px;
    right: 7px;
    cursor: pointer;
    width: 20px;
    height: 30px;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    color: #cccccc;
}

.toggle-icon div {
    width: 100%;
    height: 4px;
    background: white;
}
/* Toggle Icon Styles */
