.content-wrapper{
  display: flex;
  flex-direction: column;
  padding-bottom: 30%;
  width: 100%;
  max-width: 1500px;
  margin-top: 6%;
}

.main-content{
  margin-left: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  width: 78%;  
  margin-right: auto;
}
.page-name-wrapper{
  display: flex;
  justify-content: start;
  align-items: center;
  width: 100%;
  margin: 0 5px;

}
.page-name-wrapper p{
  font-size: clamp(1.1rem, 0.8vw + 0.8vh, 1.3rem);
  font-weight: 300;
  margin: 1px 1px;
  color: #ff7500;
  font-family: "Montserrat Alternates", sans-serif;
}
.user-about-wrapper{
  display: flex;
  align-content: center;
  flex-direction: column;
  width: 100%;
  gap: 0.2rem;
  margin: 0 5px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-tap-highlight-color: transparent;
}
.user-about-wrapper::-webkit-scrollbar {
  width: 6px;
}

.user-about-wrapper::-webkit-scrollbar-thumb {
  background-color: #f8f9f9;
  border-radius: 2px;
}

.user-about-wrapper::-webkit-scrollbar-track {
  background-color: transparent;
}


.confirmation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.confirmation-overlay-box{
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.confirmation-overlay-box p {
  font-size: clamp(0.9rem, 0.8vw + 0.8vh, 1rem);
  margin-bottom: 20px;
  color: #222;
}

.confirmation-overlay-buttons {
  display: flex;
  justify-content: space-around;
}

.confirmation-overlay-buttons button {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: clamp(0.7rem, 0.8vw + 0.8vh, 0.8rem);
}

#confirmBtn {
  background-color: #000000;
  color: white;
}

#cancelBtn {
  background-color: #f8f9f9;
  color: black;
}
.support-chat-wrap{
  display: flex;
  gap: 0.3rem;
  align-items: center;
  width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid #ccc;
}
.support-agent-last-message{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; 
    max-width: 200px;
    position: relative;
    top: 3px;
}
.support-title-wrap{
  font-size: clamp(0.6rem, 0.8vw + 0.8vh, 0.8rem);
  color: #999;
}
.support-chat-wrap img{
  width: clamp(25px, 4vw, 35px);
  height: clamp(25px, 4vw, 35px);
  object-fit: cover;
  border-radius: 50px; 
}
.support-agent{
  position: relative;
  bottom: 5px;
  font-weight: 500;
}
.write-message{
  position: fixed;
  bottom: 40px; 
  right: 20px;  
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ff7500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1000;
  -webkit-tap-highlight-color: transparent;
}
.write-message:hover{
  transform: scale(1.1);
}
.write-message img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.no-messages {
  text-align: center;
  padding: 20px;
}

.no-messages-img {
  max-width: 150px;
  opacity: 0.8;
}

.no-messages-text {
  color: #888;
  margin-top: 10px;
  font-size: clamp(0.7rem, 0.6vw + 0.6vh, 0.95rem);
}

.skeleton-chat {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eee;
  margin-right: 12px;
  position: relative;
  overflow: hidden;
}

.skeleton-lines {
  flex: 1;
}

.skeleton-line {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.skeleton-line.short {
  width: 40%;
}

.skeleton-line.long {
  width: 80%;
}

.skeleton-avatar::before,
.skeleton-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

.ticket-overlay{
  background: #f7fff8;
  padding: 20px;
  border-radius: 20px;
  max-width: 350px;
  width: 100%;
  height: 400px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ticket-overlay.active {
  opacity: 1;
  visibility: visible;
}
.ticket-overlay .close-overlay {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: clamp(0.7rem, 0.6vw + 0.6vh, 0.95rem);
  color: #ff7500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.support-agent-group{
  display: flex;
  justify-content: center;
}
.support-agent-group img{
  width: clamp(30px, 4vw, 50px);
  height: auto;
  object-fit: cover;
  border-radius: 50px;
  margin-left: -5px; 
}
.bufra-logo-remark{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  border-top: 1px solid #F8AD9D;
}

.ticket-status{
  color: #52B788 !important;
}
.ticket-info{
  text-align: center;
  font-size: clamp(0.8rem, 0.6vw + 0.6vh, 1rem);
  color: #555;
}
.bufra-logo-remark{
  font-size: clamp(0.6rem, 0.6vw + 0.6vh, 0.8rem);
  color: #777;
}
.small-text{
  position: relative;
  bottom: 30px;
}
.bufra-logo-remark img{
  width: clamp(200px, 4vw, 300px);
  height: auto;
  object-fit: cover;
}


.chat-skeleton {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.chat-skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e3e3e3;
  margin-right: 10px;
  position: relative;
  overflow: hidden;
}

.chat-skeleton-lines {
  flex: 1;
}

.chat-skeleton-line {
  height: 10px;
  background: #e3e3e3;
  border-radius: 5px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.chat-skeleton-line.short {
  width: 40%;
}

.chat-skeleton-line.medium {
  width: 65%;
}

.chat-skeleton-line.long {
  width: 85%;
}


.chat-skeleton-avatar::before,
.chat-skeleton-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120px;
  height: 100%;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation:  shimmer 1.5s infinite;
}


@keyframes  shimmer {
  100% {
    left: 100%;
  }
}

#SupportChatoverlay,#BotChatoverlay{
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 8px;
  border-radius: 20px;
  max-width: 350px;
  width: 100%;
  height: 80%;
  position: fixed;
  top: 55%;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 10000;
  visibility: hidden;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: transparent;
}
#SupportChatoverlay::-webkit-scrollbar-thumb,
#BotChatoverlay::-webkit-scrollbar {
  width: 1px;
}

#SupportChatoverlay::-webkit-scrollbar-thumb,
#BotChatoverlay::-webkit-scrollbar-thumb {
  border-radius: 2px;
}
#SupportChatoverlay.active,
#BotChatoverlay.active {
  opacity: 1;
  visibility: visible;
}
#SupportChatoverlay .close-overlay,
#BotChatoverlay .close-overlay  {
  background: none;
  border: none;
  font-size: clamp(0.7rem, 0.6vw + 0.6vh, 0.95rem);
  color: #ff7500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.support-chat-header{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  gap: 0.5rem;
  padding: 5px;
  width: 100%;
  position: sticky;
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(10px);
  top: 0;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}
.support-chat-header img{
  width: clamp(15px, 4vw, 30px);
  height: auto;
  object-fit: contain;
  border-radius: 50px;
}

.agent-name-label {
  font-size: clamp(0.7rem, 0.8vw + 0.8vh, 0.9rem);
  font-weight: 700;
  color: #777;
  margin: 0;
  text-transform: uppercase;
}
.chats-control-wrap{
   padding: 3px 6px;
   border-radius: 10px;
   width: 100%;
   z-index: 3;
   margin-top: 10px;
   border-radius: 20px;
   background: #000000;
  }

.textarea-wrapper {
  position: relative;
  width: 100%;
  bottom: 1px;
  height: fit-content;
}
.chats-board{
   background: #fff;
   padding: 0 5px;
   flex: 1;
   border-radius: 10px;
   overflow-y: auto;
   overflow-x: hidden;
   width: 100%;
   height: 500px;
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   white-space: pre-wrap; 
   word-wrap: break-word; 
   z-index: 2;
   scrollbar-width: thin;
   scrollbar-color: #0000 transparent;
}

.chats-board::-webkit-scrollbar {
  width: 2px;
}

.chats-board::-webkit-scrollbar-thumb {
  border-radius: 2px;
}
.conversation {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  max-width: 60%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
}

.conversation p {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  color: #999;
}
.chat-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 5px;
}

.conversation .timestamp {
  float: none;
  align-self: flex-end;
  margin-top: 4px;
  font-size: clamp(0.5rem, 1vw, 0.7rem);
  color: #999;
}
.conversation .sender {
  font-size: clamp(0.5rem, 1vw, 0.7rem);
  text-align: left;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  display: block;
  
}

.sender-name-status{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}
.sender-name-status img{
  width: clamp(10px, 4vw, 15px);
  height: auto;
  object-fit: contain; 
  vertical-align: middle;
}

.conversation.sent {
  background: rgba(252, 226, 220, 0.5);
  margin-left: auto;
  margin-right: 15px;
}

.conversation.received {
  background: rgba(240, 240, 240, 0.5);
  margin-right: auto;
  margin-left: 10px;
  border-bottom-right-radius: 0;
}
.conversation label {
  font-size: clamp(0.6rem, 0.8vw + 0.8vh, 0.8rem);
  color: #777;
}
.conversation textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  color: #777;
  width: 100%;
  margin-top: 5px;
  resize: none;
  font-family: inherit;
  font-size: clamp(0.65rem, 0.8vw, 0.8rem);
}
#ticket_email{
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 12px;
  color: #777;
  width: 100%;
  margin-top: 5px;
  resize: none;
  font-family: inherit;
  font-size: clamp(0.65rem, 0.8vw, 0.8rem);
}
.conversation textarea:focus{
  border-color: #ff7500;
  outline: none;
}
.conversation button{
  width: 100%;
  margin-top: 5px;
  font-size: clamp(0.6rem, 0.8vw + 0.8vh, 0.8rem);
  padding: 5px;
  border-radius: 10px;
  background: #ccc;
  border: none;
  color: #555;
  cursor: pointer;
  transition: background ease 0.5s;
}
.conversation .mini-att {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 10px;
  margin-top: 5px;
  display: block;
}
.doc-attach a {
  display: inline-block;
  background: #f2f2f2;
  color: #333;
  padding: 5px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  word-break: break-all;
}
.doc-attach a:hover {
  background: #ff7500;
  color: #fff;
}

.conversation button:hover{
  background-color: #ffffff8f;
}
.conversation img{
  width: clamp(10px, 4vw, 15px);
  height: auto;
  object-fit: contain; 
  vertical-align: middle;  
}
.ticket-success{
  font-weight: 600;
  border-bottom: 1px dashed #ccc;
}
.created-ticket-title{
  font-size: clamp(0.6rem, 0.8vw, 0.8rem) !important;
  color: #fff !important;
  padding: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block; 
  max-width: 110px;
  background: #52B788;
}
.created-ticket-id{
  background: #d4f5e5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block; 
  max-width: 110px;
  padding: 5px;
  max-width: 110px;
  border-radius: 0 0 8px 8px;
}
#RoutehandShake{
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  display: flex;
  width: 100%;
  flex-direction: column;  
  align-items: center;
  border-top: 1px dashed#ff7500;
  border-bottom: 1px dashed#ff7500;
}
.ai-left{
  color: #ccc;
  margin-left: 20px;
}
.agent-joined{
  color: #52B788;
}
.header-typing{
  display:none;
  color: #ccc;
  font-size: clamp(0.6rem, 2vw, 0.7rem);
}
.no-chat {
  text-align: center;
  color: #555;
  margin: 10px;
  padding: 15px;
  font-size: clamp(0.6rem, 2vw, 0.7rem);
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.error-chat {
  text-align: center;
  margin: 10px;
  padding: 15px;
  font-size: clamp(0.6rem, 2vw, 0.7rem);
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  color: #d9534f; 
}

#RedirectToliveAgent,#RequestTicket{
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
#Routemessage,#AgentFirstmessage,#RoutehandShake,#ticketCreated,#openAticket,#sendMessageHandler{
  display: none; 
}

#Routemessage.active,
#ticketCreated.active,
#openAticket.active,
#RoutehandShake.active,
#AgentFirstmessage.active {
  display: flex;
}
#sendMessageHandler.active{
  display: block;
}
#message,#openMsg {
  width: 100%;
  height: 22px;  
  min-height: 22px;
  max-height: 150px;
  overflow-y: auto;       
  white-space: pre-wrap; 
  word-wrap: break-word; 
  resize: none;
  padding: 0 8px 0 16px;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  border: none;
  color: #f2f2f2;
  border-radius: 4px;
  transition: height 0.2s ease;
  background: transparent;
  caret-color: #ff7500;
  font-family: inherit;
  scrollbar-width: thin;
  scrollbar-color: transparent;

}
#message:focus,#openMsg:focus {
  outline: none;
  box-shadow: none; 
}

#message::-webkit-scrollbar,#openMsg::-webkit-scrollbar {
  width: 2px;
}

#message::-webkit-scrollbar-thumb,#openMsg::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 2px;
}

.add-files-icon img{
  width: clamp(15px, 4vw, 25px);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.add-files-icon{
 -webkit-tap-highlight-color: transparent;
 cursor: pointer;
}
 
.chat-icons-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px;
  position: relative;
  padding: 5px;
}
.send-icon{
  padding: 5px 5px 0 5px;
  border-radius: 10px;
  cursor: pointer;
  height: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.5s ease;
  border: none;
}

.send-icon img{
  width: clamp(12px, 4vw, 20px);
  height: auto;
  object-fit: contain;
  margin: 0 auto; 
}
.send-icon:hover{
  background: #000000;
}

#previewImageArea,
#previewImagespace {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.image-preview-wrapper {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 70px;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}
.image-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.file-doc-name {
  width: 100px;
  height: 100px;
  font-size: 12px;
  background: #f2f2f2;
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  transition: all 0.3s ease;
}
.remove-preview {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f8f9f9;
  border: none;
  color: #ff0000;
  font-size: 11px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  cursor: pointer;
  line-height: 18px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
}






@media screen and (min-width: 300px) and (max-width: 650px) {
  .control-panel-wrapper {
    transform: translateX(-110%);
    transition: transform 0.3s ease;
  }
  .control-panel-wrapper.show-menu {
    transform: translateX(-2%);
  }
  .header-btns{
   display: none;
  }
  .layout-wrapper {
    margin-top: 17%;
  }
  .nav-user-wrapper {
    width: 98%;
    margin: 0 1px;
  }
  .page-name-wrapper span{
    padding: 10px 10px 10px 10px;
  }
  .side-auth-info-background {
    display: none;
  }
  .main-content {
    margin-left: 0;
    margin-top: 10px;
    width: 99%;
  }
  header,.support-window::after {
    margin-left: 0;
    width: calc(100% - 0px);
  }
  
  .hamburger-wrapper {
    display: block;
  }
  .content-wrapper{
   margin-top: 0;
  }
}






@media screen and (min-width: 700px) and (max-width: 1100px) {
  .nav-user-wrapper,.page-name-wrapper{
    width: 98%;
  }
  .page-name-wrapper span{
    padding: 10px 10px 8px 10px;
  }
  .layout-wrapper {
    margin-top: 10%;
  }
  .control-panel-wrapper {
    height: 100vh;
  }
  .pagnimation-wrapper{
    margin-bottom: 150px;
  }
  #searchProduct{
    display: none;
  }
 #SupportChatoverlay,.ticket-overlay{
  transform: translate(-5%, -50%);
 }
  .content-wrapper{
   margin-top: 0;
  }
  .main-content{
    width: 60%;
   }
 .header-btn {
    width: 130px;
    height: 45px;
    padding: 10px 15px;
    font-size: 0.95rem;
    white-space: nowrap;
    justify-content: center;
  }

  .header-btn-icon {
    width: 20px;
    height: 20px;
  }

  .header-btn-icon img {
    width: 40%;
    height: 40%;
  }


}


@media screen and (min-width: 800px) and (max-width: 912px) {
   .main-content{
    width: 63% !important;
   }
  #pageNumbers,#rangeInfo{
    display: none;
  }
}

@media screen and (min-width: 1000px) and (max-width: 1030px) {
   .main-content{
    width: 70% !important;
   }
  #pageNumbers,#rangeInfo{
    display: flex;
  }
}
@media (min-width: 1500px) {
  .content-wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1500px;
  }
  .main-content,.overview-wrapper,
   .user-about-wrapper,.staticts-wrapper{
    width: 100%;
   }
   .main-content{
    margin-left: 150px;
    }
}
