@import url("https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap");
.nav-user-action-list li a {
  color: black;
}
* {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

header.navbar.pcoded-header.navbar-expand-lg.navbar-light.header-dark {
  border-radius: 101px;
  padding-top: 103px;
  margin-top: 10px;
}

/* --- Chat Sidebar Premium Light Styles --- */
#frame #sidepanel {
  background: #ffffff !important;
  height: 100% !important;
  min-height: 100% !important;
  min-width: 380px !important;
  max-width: 380px !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05) !important;
  font-family: "Inter", sans-serif !important;
  border-right: 1px solid #f0f0f0 !important;
  overflow: hidden !important;
  position: relative !important;
  float: left !important;
}

#frame #sidepanel #profile {
  padding: 20px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f5f5f7 !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  height: auto !important;
}

#frame #sidepanel #profile .wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
}

#frame #sidepanel #profile .wrap img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  box-shadow: 0 4px 12px rgba(94, 92, 230, 0.15) !important;
  background: #fff !important;
  float: none !important;
  padding: 0 !important;
}

#frame #sidepanel #profile .wrap p {
  color: #1d1d1f !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  letter-spacing: -0.2px !important;
  float: none !important;
}

#frame #sidepanel #profile .expand-button {
  margin-left: auto !important;
  color: #8e8e93 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  float: none !important;
  margin-top: 0 !important;
}

#frame #sidepanel #profile .expand-button:hover {
  color: #1d1d1f !important;
  transform: rotate(180deg) !important;
}

#frame #sidepanel #status-options {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e5e5e7 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  margin-top: 10px !important;
  width: 160px !important;
  z-index: 100 !important;
}

#frame #sidepanel #status-options ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#frame #sidepanel #status-options ul li {
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

#frame #sidepanel #status-options ul li:hover {
  background: #f5f5f7 !important;
}

#frame #sidepanel #status-options .status-circle {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
}

#status-online .status-circle {
  background: #34c759 !important;
}
#status-away .status-circle {
  background: #ff9500 !important;
}
#status-busy .status-circle {
  background: #ff3b30 !important;
}
#status-offline .status-circle {
  background: #8e8e93 !important;
}

#frame #sidepanel #status-options p {
  color: #1d1d1f !important;
  font-size: 14px !important;
  margin: 0 !important;
}

#frame #sidepanel #search {
  padding: 15px 20px !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  height: auto !important;
  margin: 0 !important;
  position: relative !important;
}

#frame #sidepanel #search .search-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#frame #sidepanel #search .input-container {
  position: relative !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
}

#frame #sidepanel #search .input-container i.fa-search {
  position: absolute !important;
  left: 14px !important;
  color: #8e8e93 !important;
  font-size: 14px !important;
  z-index: 2 !important;
  transition: color 0.3s ease !important;
}

#frame #sidepanel #search input {
  width: 100% !important;
  background: #f4f4f7 !important;
  border: 1px solid #f0f0f5 !important;
  height: 44px !important;
  border-radius: 12px !important;
  padding: 0 40px 0 42px !important;
  color: #1d1d1f !important;
  font-size: 14px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
}

#frame #sidepanel #search input:focus {
  background: #ffffff !important;
  border-color: #5e5ce6 !important;
  box-shadow: 0 0 0 4px rgba(94, 92, 230, 0.1) !important;
}

#frame #sidepanel #search input:focus + i.fa-search {
  color: #5e5ce6 !important;
}

#frame #sidepanel #search .clear-search {
  position: absolute !important;
  right: 12px !important;
  color: #8e8e93 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3 !important;
}

#frame #sidepanel #search .clear-search:hover {
  color: #ff3b30 !important;
  transform: scale(1.1) !important;
}

#frame #sidepanel #search button[type="submit"] {
  background: #5e5ce6 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0 18px !important;
  height: 40px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(94, 92, 230, 0.2) !important;
}

#frame #sidepanel #search button[type="submit"]:hover {
  background: #4a48d1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 15px rgba(94, 92, 230, 0.3) !important;
}

#frame #sidepanel #search button[type="submit"]:active {
  transform: translateY(0) !important;
}

#frame #sidepanel #search input::placeholder {
  color: #a1a1aa !important;
  font-weight: 400 !important;
}

#frame #sidepanel #contacts {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important;
  height: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #e5e5e7 transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

#frame #sidepanel #contacts::-webkit-scrollbar {
  width: 5px !important;
}

#frame #sidepanel #contacts::-webkit-scrollbar-thumb {
  background: #e5e5e7 !important;
  border-radius: 10px !important;
}

#frame #sidepanel #contacts ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#frame #sidepanel #contacts ul li.contact {
  padding: 14px 20px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  border-bottom: 1px solid #f8f8fa !important;
  cursor: pointer !important;
  height: auto !important;
  width: 100% !important;
}

#frame #sidepanel #contacts ul li.contact a {
  text-decoration: none !important;
  display: block !important;
  color: inherit !important;
}

#frame #sidepanel #contacts ul li.contact:hover {
  background: #f0f0f5 !important;
}

#frame #sidepanel #contacts ul li.contact.active {
  background: rgba(94, 92, 230, 0.08) !important;
}

#frame #sidepanel #contacts ul li.contact.active::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 4px !important;
  background: #5e5ce6 !important;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: 2px 0 10px rgba(94, 92, 230, 0.3) !important;
}

#frame #sidepanel #contacts .wrap {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
}

#frame #sidepanel #contacts .wrap img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  background: #f5f5f7 !important;
  transition: transform 0.3s ease !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#frame #sidepanel #contacts ul li.contact:hover .wrap img {
  transform: scale(1.05) !important;
}

#frame #sidepanel #contacts i.fa-bullhorn {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid rgba(94, 92, 230, 0.15) !important;
  background: rgba(94, 92, 230, 0.05) !important;
  color: #5e5ce6 !important;
  float: none !important;
  margin: 0 !important;
}

#frame #sidepanel #contacts .contact-status {
  position: absolute !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  left: 40px !important;
  bottom: 0px !important;
  z-index: 2 !important;
  margin: 0 !important;
}

#frame #sidepanel #contacts .contact-status.online {
  background: #34c759 !important;
}
#frame #sidepanel #contacts .contact-status.away {
  background: #ff9500 !important;
}
#frame #sidepanel #contacts .contact-status.busy {
  background: #ff3b30 !important;
}

#frame #sidepanel #contacts .meta {
  flex: 1 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

#frame #sidepanel #contacts .meta p.name {
  color: #1d1d1f !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  float: none !important;
}

#frame #sidepanel #contacts .meta small {
  display: flex !important;
  align-items: center;
  color: #8e8e93 !important;
  font-size: 12px !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  gap: 5px;
  text-overflow: ellipsis !important;
}

#frame #sidepanel #contacts .meta .badge {
  background: rgba(94, 92, 230, 0.1) !important;
  color: #5e5ce6 !important;
  font-size: 10px !important;
  border: none !important;
  letter-spacing: 0.5px !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  margin-right: 4px !important;
}

#frame #sidepanel #contacts .message-count-badge {
  background: #ff3b30 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 5px !important;
  margin-left: auto !important;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3) !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
}

#frame #sidepanel #bottom-bar {
  padding: 15px 20px !important;
  display: flex !important;
  gap: 10px !important;
  background: #ffffff !important;
  border-top: 1px solid #f5f5f7 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.02) !important;
  position: static !important;
  width: 100% !important;
}

#frame #sidepanel #bottom-bar button {
  flex: 1 !important;
  height: 42px !important;
  border: none !important;
  border-radius: 10px !important;
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  float: none !important;
  width: auto !important;
  padding: 0 !important;
}

#frame #sidepanel #bottom-bar button:hover {
  background: #e5e5e7 !important;
  transform: translateY(-2px) !important;
}

#frame #sidepanel #bottom-bar button.broadcastCreate {
  background: #5e5ce6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(94, 92, 230, 0.2) !important;
}

#frame #sidepanel #bottom-bar button.broadcastCreate:hover {
  background: #4a48d1 !important;
}

#frame #sidepanel #bottom-bar button span {
  display: inline-block !important;
}

/* --- Modern Chat Styles --- */
#frame {
  /* width: 100% !important; */
  height: 89vh !important;
  background: #fdfdfd !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
  display: flex !important;
  margin: 0 auto !important;
}

#frame .content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f8f9fb !important;
  position: relative !important;
}

/* --- Premium Profile Header --- */
.contact-profile {
  height: 70px !important;
  padding: 0 25px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px;
  z-index: 10 !important;
}
.contact-profile-two {
  justify-content: space-between !important;
}
.contact-profile .profile-info {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.contact-profile img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.contact-profile p {
  margin: 0 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #1a1a1b !important;
}

.contact-profile small {
  display: block !important;
  color: #8e8e93 !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}

/* --- Message Bubbles --- */
.messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 24px !important;
  background-image: radial-gradient(
    #e1e1e8 0.8px,
    transparent 0.8px
  ) !important;
  background-size: 20px 20px !important;
}

.messages ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.messages ul li {
  max-width: 70% !important;
  padding: 12px 20px !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  position: relative !important;
  list-style: none !important;
}

.messages ul li.sent {
  align-self: flex-start !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
  border-radius: 18px 18px 18px 4px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid #f0f0f5 !important;
}

.messages ul li.replies {
  align-self: flex-end !important;
  background: #5e5ce6 !important;
  color: #ffffff !important;
  border-radius: 18px 18px 4px 18px !important;
  box-shadow: 0 4px 12px rgba(94, 92, 230, 0.2) !important;
}

.messages .time-stamp {
  display: block !important;
  font-size: 10px !important;
  margin-top: 6px !important;
  opacity: 0.6 !important;
}

/* --- STATE-OF-THE-ART MESSAGE INPUT (USER REQUEST) --- */
#frame .content .message-input {
  background: #ffffff !important;
  padding: 5px 30px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
  z-index: 20 !important;
}

#frame .content .message-input .wrap {
  display: flex !important;
  align-items: center !important;
  background: #f4f4f7 !important;
  border-radius: 20px !important;
  padding: 6px 6px 6px 20px !important;
  border: 1.5px solid transparent !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

#frame .content .message-input .wrap:focus-within {
  background: #ffffff !important;
  border-color: #5e5ce6 !important;
  box-shadow: 0 0 0 4px rgba(94, 92, 230, 0.08) !important;
  transform: translateY(-2px) !important;
}

#frame .content .message-input .wrap input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  padding: 12px 0 !important;
  font-size: 15px !important;
  font-family: inherit !important;
  color: #2c2c2e !important;
  outline: none !important;
  width: auto !important;
  float: none !important;
}

#frame .content .message-input .wrap input::placeholder {
  color: #a1a1aa !important;
  font-weight: 400 !important;
}

#frame .content .message-input .wrap .attachment {
  font-size: 20px !important;
  color: #8e8e93 !important;
  margin-right: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: static !important;
  opacity: 0.6 !important;
}

#frame .content .message-input .wrap .attachment:hover {
  color: #5e5ce6 !important;
  transform: rotate(15deg) scale(1.1) !important;
  opacity: 1 !important;
}

#frame .content .message-input .wrap button.submit {
  width: 46px !important;
  height: 46px !important;
  background: #5e5ce6 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-left: 10px !important;
  float: none !important;
  flex-shrink: 0 !important;
}

#frame .content .message-input .wrap button.submit:hover {
  background: #4a48d1 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(94, 92, 230, 0.3) !important;
}

#frame .content .message-input .wrap button.submit:active {
  transform: scale(0.95) !important;
}

#frame .content .message-input .wrap button.submit i {
  font-size: 18px !important;
  margin: 0 !important;
}

/* --- Responsive Layout --- */
@media screen and (max-width: 735px) {
  #frame {
    width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }
}

.social-media {
  gap: 15px;
  display: flex;
}

.attachment-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.attachment-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.image-attachment {
  border: 2px solid rgba(255, 255, 255, 0.1);
  max-width: 250px;
}

.image-attachment img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.doc-attachment {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 200px;
  display: flex;
  justify-content: space-between;
  color: #2d3748;
}

.bg-warning .doc-attachment {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.file-icon {
  font-size: 24px;
  color: #ff9944;
}

.bg-warning .file-icon {
  color: #fff;
}

.file-name {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: all 0.2s ease;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-left: 10px;
}

.bg-warning .download-btn {
  background: rgba(255, 255, 255, 0.2);
}

.download-btn:hover {
  transform: scale(1.1);
  background: #ff9944;
  color: #fff;
}

.image-attachment .download-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.image-attachment:hover .download-btn {
  opacity: 1;
}

.image-attachment:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.doc-attachment:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.bg-warning .doc-attachment:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* WhatsApp Styling */
.thisChat {
  display: flex !important;
  flex-direction: column;
  border-radius: 15px;
  min-height: 500px;
  list-style: none;
}

.chat-row {
  display: flex;
  width: 100%;
  margin-bottom: 20px;
}

.chat-row.me {
  justify-content: flex-end;
}

.chat-row.other {
  justify-content: flex-start;
}

.chat-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.me .chat-avatar {
  order: 2;
  margin-right: 0;
}

.other .chat-avatar {
  order: 1;
  margin-left: 0;
}

.chat-bubble-wrapper {
  max-width: 75%;
  display: flex;
  flex-direction: column;
}

.me .chat-bubble-wrapper {
  order: 1;
  align-items: flex-end;
}

.other .chat-bubble-wrapper {
  order: 2;
  align-items: flex-start;
}

.chat-user-name {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: #075e54; /* WhatsApp dark green */
}

.me .chat-user-name {
  text-align: right;
  color: #128c7e;
}

.chat-bubble {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  word-wrap: break-word;
}

.me .chat-bubble {
  background-color: #dcf8c6; /* WhatsApp user bubble */
  border-top-right-radius: 0;
  color: #303030;
}

.other .chat-bubble {
  background-color: #ffffff; /* WhatsApp other bubble */
  border-top-left-radius: 0;
  color: #303030;
}

/* Tail effects */
.me .chat-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  right: -5px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left-color: #dcf8c6;
  border-top-color: #dcf8c6;
}

.other .chat-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-right-color: #ffffff;
  border-top-color: #ffffff;
}

.chat-time {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 4px;
}

.me .chat-time {
  text-align: right;
}

/* Override existing attachments if needed inside WhatsApp bubbles */
.chat-bubble .attachment-container {
  margin-top: 8px;
}

.chat-bubble .attachment-item {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar for Chat */
.thisChat::-webkit-scrollbar {
  width: 6px;
}

.thisChat::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.thisChat::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.thisChat::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.messages {
  height: calc(100vh - 280px); /* Adjusted height to fit view */
  overflow-y: auto;
  border-radius: 15px;
}

.pcoded-main-container {
  background: #f4f7f6 !important;
}

#frame .content {
  background: #f8f9fa;
}

.messages {
  background-blend-mode: multiply;
  background-size: 400px;
  padding: 30px 20px !important;
  height: calc(100vh - 250px) !important;
  border-radius: 0;
  overflow-y: auto;
}

.thisChat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin: 0;
}

.chat-row {
  display: flex;
  width: 100%;
  margin-bottom: 5px;
  align-items: flex-end;
}

.chat-row.me {
  justify-content: flex-end;
}

.chat-row.other {
  justify-content: flex-start;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 2px;
  border: 2px solid #fff;
}

.other .chat-avatar {
  margin-right: 15px;
  border: 2px solid #8e44ad;
  /* Purple accent like CoPilot */
}

.me .chat-avatar {
  display: none;
  /* Hide my avatar in this specific design */
}

.chat-bubble-wrapper {
  max-width: 85%;
  display: flex;
  flex-direction: column;
}

.chat-bubble {
  position: relative;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px !important;
  line-height: 1.6;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  color: #333;
}

/* My Message (Green) */
.me .chat-bubble {
  background-color: #e4ffce;
  border-top-right-radius: 4px;
  align-self: flex-end;
}

/* Other Message (White) */
.other .chat-bubble {
  background-color: #ffffff;
  border-top-left-radius: 4px;
  align-self: flex-start;
  padding-bottom: 10px;
}

.chat-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #8e44ad;
  /* Purple for sender name */
}

.me .chat-user-name {
  display: none;
}

.chat-footer-info {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: #999;
  gap: 10px;
}

.chat-footer-info i {
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.chat-footer-info i:hover {
  color: #8e44ad;
}

.chat-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #888;
}

.me .chat-meta {
  color: #6fb33d;
}

.tick-icon {
  font-size: 10px;
  color: #34b7f1;
  /* WhatsApp blue tick style */
}

/* Layout modifications */
.pcoded-content {
  padding: 0 !important;
}

#frame {
  height: calc(100vh - 100px);
  margin: 0;
  border-radius: 0;
}

.message-input {
  padding: 15px 25px;
  background: #fff;
  border-top: 1px solid #eee;
}

.message-input .wrap {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 5px 15px;
  border-radius: 25px;
  border: 1px solid #e0e0e0;
}

.message-input .wrap input {
  background: transparent;
  border: none !important;
  flex-grow: 1;
  padding: 10px;
  font-size: 0.95rem;
}

.message-input .wrap button {
  background: #8e44ad !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.message-input .wrap button:hover {
  transform: scale(1.1);
}

.message-input .wrap i.attachment {
  font-size: 1.2rem;
  margin-right: 15px;
  color: #888;
}
