/* Drawer Styles */
.drawer {
    position: fixed;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    left: 0;
    transform: translateX(-100%);
}

html[dir="rtl"] .drawer {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.drawer.open {
    transform: translateX(0) !important;
}

html[dir="ltr"] .drawer.open {
    transform: translateX(0);
}

html[dir="rtl"] .drawer.open {
    transform: translateX(0);
}

.footer-ai {
    direction: rtl;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ccc;
}

.drawer-header h2 {
    margin: 0;
}

#close-drawer {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

#drawer-content {
    padding: 15px;
}

#loader {
    text-align: center;
    padding: 20px;
}

#chat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#chat-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

#chat-list li:hover {
    background-color: #f5f5f5;
}

/* Hamburger Button */
.header-icon-menu {
    cursor: pointer;
    margin-top: 9px;
    width: 30%;
}

.website-name {
    flex: 1; /* Take up as much space as possible */
    text-align: center; /* Center the text */
    font-size: 20px; /* Adjust size as needed */
    font-weight: bold; /* Make text bold */
    letter-spacing: 1px; /* Add letter spacing */
    text-transform: uppercase; /* Make all text uppercase */
    
    /* Gradient Text Styling */
    background: linear-gradient(90deg, #CF6978, #6FBAFB); /* Define gradient colors */
    background-size: 200%; /* Increase background size to create animation effect */
    background-clip: text;
    -webkit-background-clip: text; /* Safari/Chrome */
    color: transparent; /* Set text color to transparent to show gradient */
    
    /* Animation */
    animation: gradient-animation 12s ease-in-out infinite; /* Animation definition */
    width: 30%;
}

.chatai-sticky-container {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    padding: 10px 10px 5px 10px;;
    z-index: 1000;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 30%;
    direction: rtl;
}

html[dir="rtl"] .header-profile {
    direction: ltr;
}

.header-profile img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #4a90e2;
}

html[dir="rtl"] .header-profile-info {
    align-items: start;
}

.header-profile-info {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.header-profile-info .header-name {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    color: var(--color3);
    margin: 0;
    max-width: 15ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: start;
}

.header-profile-info .header-title {
    font-size: 14px;
    color: #8e8e93;
    margin: 0;
}

html[dir="rtl"] .header-profile-info .header-title {
    font-size: 11px;
}

html[dir="rtl"] .header-profile-info .header-title {
    font-size: 11px;
}