.chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    font-family: Arial, sans-serif;
}

.flex-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.flex-col {
    flex-direction: column;
}

.h-full {
    /* height: 90vh; */
    height: 100%;
}

.w-full {
    width: 100%;
}

.chat-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;

    @media (max-width: 728px) {
        grid-template-columns: 1fr 1fr;
    }

    @media (max-width: 480px) {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.chat-content-wrap,
.chat-options {
    width: 80%;
}

.chat-option {
    background: #ffffff;
    padding: 1rem;
    padding-bottom: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--Grey-stroke, #E8E7E4);
    border-radius: 10px;
    text-align: left;
}

.chat-logo-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;

    @media (max-width: 728px) {
        gap: 30px;
    }
}

.company-logo {
    img {
        filter: grayscale(100%);
        max-width: 150px;
        max-height: 50px;
    }
}

.chat-option div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #5f636b;
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;

    @media (max-width: 728px) {
        font-size: 12px;
        gap: 10px;
    }
}

.chat-option:hover {
    transform: scale(1.1);
}

.chat-option img {
    width: 20px;
    height: 20px;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.chat-option p {
    margin: 0;
}

.chat-input {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #E8E7E4;
    padding: 6px 10px;
    border-radius: 6px;
    position: fixed;
    bottom: 40px;
    width: 60%;

    @media (max-width: 768px) {
        width: 70%;
    }
}

.chat-input input {
    flex: 1;
    font-size: 16px;
    padding-right: 40px;
    padding-left: 8px;
    border: none;

    @media (max-width: 768px) {
        font-size: 14px;
        padding-right: 8px;
    }
}

.chat-input input:focus {
    outline: none;
    border: 1px solid transparent;
}

.chat-input button {
    padding: 10px;
    font-size: 16px;
    border: none;
    background: var(--Grey-Light, #F0F0F0);
    color: #252729;
    border-radius: 4px;
    cursor: pointer;
}

.chat-input button:hover {
    opacity: 0.65;
}

.chat-content-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 70px;
    align-content: flex-end;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.chat-content-wrap::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, and Opera */
}

.chat-content-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    scroll-behavior: smooth;
}

.chat-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 20px 20px 20px;

    @media (max-width: 768px) {
        padding-bottom: 60px;
    }
}

.message {
    width: fit-content;
    max-width: 90%;
    margin-bottom: 1rem;
    font-size: 15.5px;
    overflow-wrap: break-word;
    text-align: justify;
}

.user-message {
    align-self: flex-end;
    background-color: #f4f4f4;
    border-radius: 5px;
    text-align: justify;
    color: #0e0e0e;
    padding: 0px 15px;
}

.bot-message {
    align-self: flex-start;
    color: black;
    line-height: 25px;
}

.hidden {
    display: none;
}

.search-icon {
    padding: 5px;
}

.loading-icon img {
    width: 55px;
    height: auto;
}

.sidebar {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    background: #F3F5F7;
    /* top: 50px;
    bottom: 120px; */
    max-width: 280px;
    padding: 20px;
    width: 100%;
    border-right: 1px solid #E4E4E4;
    z-index: 99;
  
    @media screen and (max-width: 768px) {
      display: none;
      z-index: 999;
      left: 0;
      align-items: left;
      top: 65px;
    }
}

.conversation-title {
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #E4E4E4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-chat-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.new-chat-btn:hover {
    background-color: #f5f5f5;
}

.new-chat-btn img {
    width: 20px;
    height: 20px;
}

.conversations-list {
    a {
        text-decoration: none;
        color: inherit;
    }
}

.conversations-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conversations-list li {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: background-color 0.2s;
}

.conversations-list li:hover {
    background-color: #E8E7E4;
}

.conversations-list li.active {
    background-color: #E8E7E4;
    font-weight: 500;
    color: #333;
}

.conversations-list .conversation-date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.conversation-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.conversation-link:hover {
    text-decoration: none;
    color: inherit;
}

  /* Typing Indicator */
  .typing-indicator {
    padding: 10px 15px;
    margin-bottom: 15px;
    max-width: 60px;
    background: #f0f2f5;
    border-radius: 15px;
    border-bottom-left-radius: 5px;
  }

  .typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
  }

  .typing-dots span {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
  }

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

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

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

  /* Loading Icon */
  .loading-icon {
    display: flex;
    justify-content: center;
    padding: 10px;
  }

  .loading-icon img {
    width: 30px;
    height: 30px;
  }
