 




/* 🌿 Root Variables */
:root {
  --sidebar: 600px;
  --accent: #1f9d55;
  --muted: #666;
}

/* 🧩 Basic Layout */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  background: #f6f7fb;
  color: #222;
}

/* 🧭 Header Bar */
header {
  padding: 8px 16px;
  background: aqua;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
}

/* 🌿 Brand Title */
.brand {
  font-weight: 600;
  font-size: 18px;
  color: #2d0a0a9e;
  letter-spacing: 0.5px;
  
}




 












/* 🧱 Main Container */
.container {
  display: flex;
  height: calc(100vh - 60px);
}

/* 👥 Left Sidebar (Users List) */
.left {
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid #eaeaea;
  padding: 12px;
  box-sizing: border-box;
  overflow-y: auto;
  transition: all 0.3s ease;
} 

/* 💬 Right Chat Area */
.right {
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fafafa;
}

/* 🧍‍♂️ Users Header */
.users-header {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: #222;
  text-transform: capitalize;
}



 









#usersList .user-row {
    padding: 6px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 2px;
     
}





#usersList .user-row:hover {
    background:#f2f8f4;
    cursor: default; 
    border-color:#e6efea;
}

/* ✅ FIX: active user ka color hover se bhi change na ho */
#usersList .user-row.active:hover {
    background: #efc6ff80;
    border-color: #cfeee0;
}









#usersList .user-row.active {  background: #e6f7ef;  border-color: #cfeee0; } 
#usersList .user-row.active .user-name { color: #0b6b39; }
 
 






.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #9aaba0;  
  box-shadow: 0 0 4px rgba(77, 124, 255, 0.4); /* optional glow effect */
}

.user-name {
    font-weight: 400;
    font-size: 17px;        /* ← yahi se visual bold kam hota hai */
    letter-spacing: 0.2px; /* ← text thoda halka lagega */
}






.small{color:var(--muted);font-size:12px}

.chat-header {
    padding: 6px 6px;
    font-weight: 700;
    background: #bef5f5;
    border-radius: 15px;
    padding-left: 20px;
    margin-bottom: 6px !important;
    min-height: 35px;
}

/* messages container */


.messages {
  flex: 1;
  background-image: url('../assets/background.jpg');
background-size: auto;
background-repeat: repeat;
background-position: center;

 /* border: 0px solid #cd94b7; */
  border-radius: 10px;
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reply-bubble {
    opacity: 0.8;
}







.message {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  margin: 0;
  line-height: 1.3;
  word-wrap: break-word;
  /* background: #f1f1f1; */
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #1060602e;
}
  
  
.message:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
}
  
  
  
  
/* ================================
   💬 Message Bubbles & Layout
================================ */

.message.them {
  align-self: flex-start;
  text-align: left;
   background: #cbffff26; 
}

.message.me {
  align-self: flex-end;
  text-align: right;
}

/* Bubble Styles */
.bubble {
  padding: 8px 10px;
  border-radius: 12px;
  display: inline-block;
  font-size: 14px;
  white-space: pre-wrap;
}

/* Sender & Receiver Colors */
.message.me .bubble {
  background: #dff6e8;
  color: #053d1a;
  border-bottom-right-radius: 3px;
}

.message.them .bubble {
  background: #f2f2f2;
  color: #111;
  border-bottom-left-radius: 3px;
}

/* Timestamp */
.timestamp {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}

/* Composer (Message Input Area) */
.composer {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding-left: 8px;
}

.composer input[type="text"] {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.composer button {
  padding: 8px 5px;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: #fff;
}

/* Pending Message (sending animation / opacity) */
.pending {
  opacity: 0.7;
}

/* ================================
   📱 Responsive (Mobile View)
================================ */

@media (max-width: 800px) {
  .left {
    display: none;
  }
  
  .container {
    flex-direction: column;
  }
}





.chat-file img {
  display: block;
  margin-top: 4px;
  border-radius: 10px;
}

.message.me .chat-file img {
  margin-left: auto;
}

.message.them .chat-file img {
  margin-right: auto;
}

.chat-file a {
  color: #957bf7;
  text-decoration: none;
  font-weight: 600;
}

#imgModal {
  transition: opacity 0.25s ease;
}
#imgModal img {
  transition: transform 0.25s ease;
}
#imgModal:active img {
  transform: scale(1.05);
}

/* user dropdown menu */
.user-menu {
  position: relative;
  display: inline-block;
}
.user-btn {
  background: transparent;
  color: #66539d;
  border: none;
  font-size: 14px;
  cursor: default;
  font-weight: 200;
  padding-right: 25px;
}
.dropdown {
  display: none;
  position: absolute;
  right: 0;
  background: white;
  min-width: 245px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
  z-index: 1000;
  padding: 10px 18px 10px 7px;
}
.dropdown a {
  display: block;
  padding: 10px 3px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}
.dropdown a:hover {
  background: #f2f2f2;
}
.dropdown a:last-child {
  border-bottom: none;
}
.user-menu:hover .dropdown {
  display: block;
}

/* ✅ Unread indicator final tested fix */
/* 🔵 Unread blue dot */
.user-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
}

 
 







 


#msgContextMenu:hover {
  background: #f1f1f1;
}


/* Context menu (message right-click) */
.msg-context-menu {
  position: fixed;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  border-radius: 8px;
  z-index: 9999;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: background 0.15s ease;
}
.msg-context-menu:hover {
  background: #f5f5f5;
}

 


 
#videoModal {
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}




/* ✅ WhatsApp-style mobile responsive layout */


 
 

@media (max-width: 800px) {
  .container {
    flex-direction: column;
    height: calc(var(--vh, 1vh) * 93);   /* 👈 error-free dynamic height */
    position: relative;
    overflow: hidden;
  }
  
  
  

  .left, .right {
    width: 100%;
    height: calc(var(--vh, 1vh) * 93);   /* 👈 same safe method */
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
    background: #fff;
  }

  .left.show { transform: translateX(0); opacity: 1; z-index: 2; }
  .left.hide { transform: translateX(-100%); opacity: 0; z-index: 1; }
  .right.show { transform: translateX(0); opacity: 1; z-index: 2; }
  .right.hide { transform: translateX(100%); opacity: 0; z-index: 1; }

  #backBtn {
    width: 100%;
    text-align: left;
    font-weight: bold;
  }
}

 
 
 


.unread-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #007bff;
  display: none;
  margin-left: 6px;
}















/* ✅ FIX: show unread blue dot */
.user-row.unread .unread-indicator {
  display: inline-block !important;
  background: #007bff;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 6px;
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}


















 /* 💬 Emoji Reaction Styles */
/* ✅ Reaction popup (above message bubble) */
.reaction-popup {
 position: absolute;  /* ✅ popup अब message bubble के नीचे attach होगा */
bottom: -40px;       /* ✅ emoji bar bubble के नीचे gap से खुलेगा */
top: auto;           /* ✅ ऊपर से position हटा दो */

  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 30px;
  padding: 6px 10px;
  z-index: 10000;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  animation: fadeIn 0.12s ease;
  transform: translateY(12px); /* ✅ popup bubble के नीचे दिखे */

}
.reaction-popup span:hover {
  transform: scale(1.25);
}



/* 🔹 Reaction Bar */
.reaction-bar {
  margin-top: 4px;
  font-size: 18px;
  position: relative;
}

.reaction-bar .add-reaction {
  cursor: pointer;
  margin-right: 6px;
  opacity: 0.6;
}
.reaction-bar .add-reaction:hover {
  opacity: 1;
}

/* 🔹 Reaction List */
.reactions-list {
  display: inline-block;
  margin-left: 6px;
}
.reactions-list span {
  background: #f1f1f1;
  border-radius: 8px;
  padding: 2px 6px;
  margin-right: 4px;
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.15s ease;
}
.reactions-list span:hover {
  transform: scale(1.2);
}
 
 
 
 
 
 
 
 
 
 
 
 .reactions span {
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.reactions span:hover {
  transform: scale(1.25);
}
 
 
 
 
 
 
 
 
 
 
 
 .message .reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 18px;
  position: relative;
}

.message.me .reactions {
  justify-content: flex-end;
}

 




/* 🔽 Chat emoji (reactions below messages) smaller size fix */
.message .reactions span {
  font-size: 14px !important;  /* तुम चाहो तो 12px भी कर सकते हो */
  transform: scale(0.95);
}

.message .reactions {
  margin-top: 1px !important;
  gap: 0px !important;
}




 


  



/* 🚫 Disable long-press Google Search / Lens popup */
.user-row,
.message,
.chat-file,
.chat-file img,
.chat-file video {

  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  touch-action: manipulation !important;
}











/* 💬 FaceFriend Welcome Box Styling (Image ऊपर, Text नीचे) */
.welcome-box {
  display: flex;
  flex-direction: column; /* column रखें ताकि vertical में दिखे */
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 20px;
}

.welcome-logo {
  max-width: 400px !important;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 50px; /* image और text के बीच gap */
  
}

.welcome-text {
  font-size: 18px;
  font-weight: 300;
  color: #007bff;
}


 
 .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-left: 8px;
  object-fit: cover;
  border: 2px solid #ddd;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .user-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
  }
}





/* hihe and block user list manage user */
#manageUsersBody::-webkit-scrollbar {
  width: 6px;
}
#manageUsersBody::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 3px;
}
#manageUsersBody::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}


 
 

#messageInput {
  resize: none;
  overflow-y: hidden;
  height: 28px;          /* पहले 32px था — थोड़ा छोटा किया */
  line-height: 26px;     /* text vertical center रहेगा */
  padding: 2px 8px;      /* 🔹 ऊपर-नीचे सिर्फ़ 2px, left-right वही 8px */
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 100%;
  transition: none;
}

#messageInput.reply-mode {
  height: 48px;          /* reply पर दो लाइन */
  line-height: 22px;
  padding: 6px 8px;      /* थोड़ा अंदर spacing */
}




 /* ✅ Responsive header font fix for small mobiles */
@media (max-width: 420px) {
  .brand {
      
    font-size: 18px !important;   /* normal से थोड़ा छोटा */
  }
  .right {
    padding: 3px !important;
  }
  
  
  
}

@media (max-width: 360px) {
  .brand {
    font-size: 15px !important;   /* बहुत छोटे phones (Galaxy J2, SE, etc) के लिए */
  }
}



/* 🔹 Very small / old phones (up to 320px) */
 
@media (max-width: 320px) {
  .brand {
    font-size: 13px !important;
    letter-spacing: 0.3px;
  }
  .right {
    padding: 3px !important;
  }
  
  

  /* 👇 Logo को छोटा करने के लिए */
  .brand img,
  .brand .user-avatar {
    width: 26px !important;
    height: 26px !important;
  }
}


   
   
   
   
   
   
   
   
   
   
   
   
   
   /* 📌 TABLET VIEW FIX (WhatsApp desktop जैसा layout) */
@media (min-width: 801px) and (max-width: 1200px) 

 

{
    
     
    
      .container {
      height: calc(var(--realvh) * 100 - 60px) !important;
  }

  .left, .right {
      height: calc(var(--realvh) * 100 - 60px) !important;
  }

     
    
    
    
    
    
    

  /* Sidebar width कम और chat area ज्यादा */
  .left {
    width: 320px !important;   /* पहले 600px था → अब tablet में perfect size */
  }

  .right {
    flex: 1 !important;
    width: calc(100% - 320px) !important;
  }

  /* container height सही रहे */
  .container {
     
    flex-direction: row !important;
  }

  /* Mobile वाला slide-panel बंद करें */
  .left,
  .right {
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

   
    
   
   .chat-video {
    width: 100%;
    max-width: 220px;
    height: auto !important;
    border-radius: 10px;
    display: block;
    margin-top: 4px;
    background: #000;
}

    /* emoji zoom */
 .react-emoji {
    display: inline-block;
    transition: transform 0.15s ease;
    cursor: pointer;
}

.react-emoji:hover {
    transform: scale(1.3);
}







/* group chat user anem + time*/
.sender-name {
    font-size: 11px;
    color: #fbfbfb;
    margin-bottom: 2px;
    margin-left: 5px;
}


.timestamp {
    font-size: 9px;
    color: #fbfbfb;
    margin-top: 4px;
    margin-left: 5px;
}

   
   
   
   
   element.style {
    max-width: 220px;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 50px;
}
   
   
   
   
   
   .chat-file audio {
    width: 250px !important;
    max-width: 250px !important;   /* FIXED: अब 300px नहीं जाएगा */
    height: 40px !important;
    display: block !important;
    margin-top: 4px !important;
    border-radius: 10px !important;
    background: transparent !important;
}

   .message.me .chat-audio {
    background: #dcf8c6;
    padding: 6px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
}

.message.them .chat-audio {
    background: #ffffff;
    padding: 6px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #eee;
}

.chat-audio audio {
    width: 250px !important;
    height: 40px !important;
    border-radius: 10px !important;
}

   
/* 📱 Mobile में header hid
@media (max-width: 800px) {
  header {
    display: none !important;
  }
}e */

 

 .seo-h1{
  position:absolute;
  left:-9999px;
}


 








/* 🚫 Hide fullscreen (zoom ⛶) button from video controls */

/* Chrome / Edge / Safari */
video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* Chrome (new UI) */
video::-webkit-media-controls-toggle-closed-captions-button {
    display: none !important;
}

/* Firefox */
video::-moz-fullscreen-button {
    display: none !important;
}





#chatOptionsMenu,
#groupChatOptions {
  display: none;
}




 








 
  