.comment-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    scroll-behavior: smooth;
}

.comment-item {
    display: flex;
    margin-bottom: 16px;
}

.comment-content {
    flex: 1;
    margin-left: 12px;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.comment-content.group-message {
    background-color: #e6f7ff;
}

.comment-content.sub-group-message {
    background-color: #f1efef;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.comment-text {
    display: block;
    margin-bottom: 4px;
    line-height: 1.5;
}

.comment-form {
    margin-top: 20px;
}

.empty-comments {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: #999;
    font-style: italic;
}

.email-item {
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
}

body.dark .email-item {
  background-color: #1b1b1b;
}

.email-table {
    border-collapse: collapse !important;
}

.email-item .ant-table-row {
    background-color: transparent;
}

.email-list-card .ant-table-row td {
    padding: 5px 16px !important;
}

.tools-emails-search-params {
    position: relative;
    width: 100%;
    margin: 0 0 30px 0;
    /*max-width: 900px;*/
    /* margin-bottom: 30px; */
}


.email-list-card .ant-card-body {
    padding-bottom: 0 !important;
}

.nested-table-container {
    border: 1px #c2c0c0 solid;
    border-radius: 2px;
}

.email-star-button{
    border-color: #bfbfbf !important;
    background-color: white !important;
}

.email-star-button.starred{
    border-color: #ffd700 !important;
    background-color: #fff8e1 !important;
}

body.dark .email-star-button{
    background-color: #1b1b1b !important;
}

body.dark .email-star-button.starred{
    background-color: #1b1b1b !important;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}/* Ensure this class is applied to the menu items */
.sider-menu .ant-menu-item,
.sider-menu .ant-menu-submenu-title {
  white-space: normal !important;
  word-wrap: break-word !important;
  height: auto !important; /* Ensure height adjusts to content */
  line-height: normal !important; /* Adjust line-height for better readability */
  padding: 10px 12px !important; /* Add vertical padding for spacing */
  font-size: 16px !important; /* Increase font size */
  margin-block: 2px !important;
}

.sider-collapsed .ant-menu-item,
.sider-collapsed .ant-menu-submenu-title {
  height: 50px !important;
  padding: 10px 24px !important; /* Add vertical padding for spacing */
}

.sider-menu .ant-menu-sub.ant-menu-inline > .ant-menu-item,
.sider-menu
  .ant-menu-sub.ant-menu-inline
  > .ant-menu-submenu
  > .ant-menu-submenu-title {
  padding-left: 32px !important;
}

.ant-menu.ant-menu-sub.ant-menu-vertical {
  min-width: 260px !important;
}

.sider-menu .ant-menu-sub .ant-menu-sub {
  padding-left: 22px !important;
}

.sider-menu .ant-menu-item {
  position: relative;
}

.fav-page-icon {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  opacity: 0;
}
.fav-page-icon:hover {
  background-color: none !important;
  background: none !important;
}

.ant-menu.ant-menu-sub .fav-page-icon {
  right: -2px;
}

.sider-menu .ant-menu-item:hover .fav-page-icon,
.fav-page-icon.fav-page-icon-show,
.ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-item:hover .fav-page-icon {
  opacity: 1;
}

.fav-page-icon.fav-page-icon-show {
  color: #ffd700 !important;
}

/* .ant-menu-title-content {
} */

.sider-collapsed .anticon {
  font-size: 16px !important;
}

.sider-collapsed .ant-menu-title-content {
  text-indent: -9999px !important;
}

/* Ensure the sider menu handles overflow properly */
.sider-menu {
  overflow: auto;
  padding-bottom: 30px;
}

/* Additional styles to improve appearance */
.sider-menu .ant-menu-item > a,
.sider-menu .ant-menu-submenu-title > span {
  display: block; /* Ensure the link or span takes the full width */
}

.collapsed-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  font-size: 25px;
  font-weight: bold;
  color: inherit;
}

.sider {
  height: 100%;
}

.sider-collapsed {
  position: relative !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.backdrop {
    width: 100%;
    height: 100%;
    background-color: #0009;
    position: fixed;
    z-index: 20;
}

/* Additional Layout styles */
.layout-fullheight {
    display: flex;
    flex-direction: column;
    height: 100vh; /* This ensures the Layout takes the full viewport height */
}

.content {
    flex-grow: 1; /* This will make the content area grow to use available space */
    margin: 8px;
    overflow: auto; /* Adds scrolling to content only when necessary */
}

.footer {
    height: 64px;
    background-color: #fff;
    box-shadow: 0px 5px 7px;
}

/* Ensure other elements are styled appropriately to not exceed their bounds */
.header {
    background-color: #fff;
    height: 64px;
    padding-inline: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px -5px 10px;
    position: sticky;
    top: 0;
    z-index: 19;
}

.content.dark,
.header.dark,
.footer.dark {
    background-color: #141414;
}

.header-menu-btn.ant-btn.ant-btn-icon-only {
    font-size: 16px;
    width: 48px;
    height: 48px;
}
.header-btn.ant-btn.ant-btn-icon-only {
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown-trigger {
    cursor: pointer;
}

.ant-layout .sider.ant-layout-sider {
    box-shadow: -5px 0px 10px;
    overflow: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 21;
}
.sider-items-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.app-icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sider-menu {
    flex: 1;
}
.sider-mobile-btn {
    width: 100%;
    position: sticky;
    bottom: 0;
    border-radius: 0;
}

.page-loader{
    text-align: center;
    padding: 50px;
}* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;  /* Adjust width as needed */
}

::-webkit-scrollbar-track {
    background: #f1f1f1;  /* Adjust track color as needed */
}

::-webkit-scrollbar-thumb {
    background: #a7a3a3;  /* Adjust thumb color as needed */
    border-radius: 4px;  /* Adjust border radius as needed */
}

body.dark .rc-virtual-list-scrollbar-thumb{
  background: rgba(178, 178, 178, 0.8) !important;
}

.tools-emails-search-drawer .ant-form-item-label {
    padding: 5px !important;
}

.tools-emails-search-drawer .ant-form-item {
    margin-bottom: 10px !important;
}