body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.no-outline{
    outline: none;
    border: 1px solid;
    box-shadow: 0;
}
.login-page {
    background-color: #f2fbfe;
    min-height: 100vh;        
    display: flex;           
    align-items: center;     
    justify-content: center;  
}
.login-page .main-logo {
    display: flex;                 
    justify-content: center;       
    align-items: center;          
    min-height: 100%;          
}
.login-page .main-logo img {
    width: 250px !important;
    display: block;           
    user-select: none;        
    pointer-events: none;     
}
.login{
    padding: 35px!important;
    border-radius: 15px!important;
}
hr{
    color: #f2fbfe;
}



/************   Sign up part css  start  ************/


/* Signup section container */
.usercreate {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Signup card */
.signup-card {
    background-color: #fff;
    width: 430px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 20px 25px;
    margin-bottom: 30px;
}

/* Headings */
.signup-card h3 {
    font-size: 25px;
    color: #1c1e21;
    margin-bottom: 4px;
}

.signup-card p {
    font-size: 15px;
    color: #606770;
    margin-bottom: 10px;
}

/* Horizontal line like fb */
.signup-card hr {
    border-top: 1px solid #dadde1;
    margin: 8px 0 18px;
}

/* Inputs */
.signup-card input.form-control,
.signup-card select.form-control {
    height: 40px;
    border-radius: 5px;
    border: 1px solid #ccd0d5;
    font-size: 14px;
    padding: 8px 10px;
    background-color: #fff;
    transition: border-color 0.2s;
}

.signup-card input.form-control:focus,
.signup-card select.form-control:focus {
    border-color: #1877f2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24,119,242,0.2);
}

/* Labels */
.signup-card label {
    font-size: 13px;
    font-weight: 500;
    color: #606770;
    margin-bottom: 4px;
}

/* Submit Button (Sign Up) */
.signup-card .signup-btn {
    background-color: #42b72a;
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border-radius: 6px;
    padding: 10px;
    transition: background-color 0.2s;
}

.signup-card .signup-btn:hover {
    background-color: #36a420;
}

/* Toggle password emoji fix */
.toggle-password {
    font-size: 17px;
    opacity: 0.7;
}

/* Error Messages */
.signup-card .invalid-feedback {
    font-size: 13px;
    border-radius: 5px;
}

/* "Already have an account?" */
.signup-card a {
    font-size: 14px;
    color: #1877f2;
    text-decoration: none;
}

.signup-card a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .signup-card {
        width: 95%;
        padding: 20px;
    }
}


/************   Sign up part css end **********/





/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
    padding: 0 10px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}




/* ===== LEFT (Logo + Search) ===== */
.logo img {
    width: 40px;
}

/* Inline Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 8px 12px;
    margin-left: 10px;
    flex: 1;
    max-width: 250px;
    cursor: text;
}

.search-box i {
    font-size: 16px;
    color: #65676b;
    margin-right: 6px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
}

/* Popup overlay (same for desktop & mobile) */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: 3px 3px 8px #e6e6e6!important;
    border-bottom-right-radius: 10px!important;

    /* ✅ height handling */
    height: auto;             /* normally jitna content aawe utna hi */
    max-height: 100vh;         /* limit kardiye taa ke full screen na le */
    overflow-y: auto;         /* jyada entries te scroll aa jave */
}



/* Header */
.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    /* border-bottom: 1px solid #ddd; */
}

.search-overlay-header i {
    font-size: 20px;
    cursor: pointer;
}

.search-overlay-header input {
    border: none;
    outline: none;
    flex: 1;
    padding: 8px 12px;
    background: #f0f2f5;
    border-radius: 20px;
    font-size: 14px;
}

/* Body */
.search-overlay-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.search-overlay-body h6 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #65676b;
}

.search-overlay-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-overlay-body li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-overlay-body li:hover {
    background: #f0f2f5;
    border-radius: 6px;
    padding-left: 6px;
}

.search-overlay-body img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}







/* ===== CENTER (Links) ===== */



.links {
    display: flex;
    justify-content: center;
    align-items: center;
}
.links a {
    color: #65676b;
    font-size: 22px;
    padding: 10px 30px;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}
.links a.active {
    color: #1877f2;
    border-bottom: 3px solid #1877f2;
}
.links a:hover {
    background: #f0f2f5;
    border-radius: 8px;
    text-decoration: none;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
}

/* Menu icons */
.menu > a {
    width: 40px;
    height: 40px;
    background: #f0f2f5;
    color: #050505;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
    text-decoration: none;
    position: relative;
}

.menu > a img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.menu > a:hover {
    background: #d8dadf;
}

/* Notification badge */

.menu .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
}

.notification-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f2f5;
    border-radius: 50%;
    font-size: 18px;
    color: #050505;
    text-decoration: none;
    cursor: pointer;
}

.notification-icon:hover {
    background: #e4e6eb;
}

.notification-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
}





/************************    Notification Popup   ******************************/
.notification-popup {
    position: absolute;
    top: 50px;
    right: 0;
    width: 25vw;           /* Desktop width */
    min-height: 150px;     /* Minimum height */
    max-height: 80vh;      /* Maximum height (viewport) */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;         /* Initially hidden */
    overflow-y: auto;      /* Scroll if content exceeds max-height */
}

/* Notification list */
.notification-popup ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.notification-popup ul li {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-popup ul li:hover {
    background: #f0f2f5;
    border-radius: 6px;
}

.notification-popup ul li img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Notification content */
.notif-content {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #050505;
}

.notif-content .name {
    font-weight: 600;
}

.notif-content .message {
    font-weight: 400;
    color: #65676b;
}

.notif-content .time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Show popup when class 'd-none' removed */
.notification-popup:not(.d-none) {
    display: block;
}





/* Popup      */
.menu-popup {
    display: none; /* initially hidden */
    position: absolute;
    top: 50px;
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 1000;
}
.menu-popup.show {
    display: block;
}

.menu-popup h5 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

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

.menu-popup ul li {
    padding: 8px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-popup ul li:hover {
    background: #f0f2f5;
}

/* Toggle visibility via JS */
.menu-popup.show {
    display: block;
}















/* **********   message 3 dot ala popup    *********** */
.msg-settings-popup {
  position: absolute;
  top: 55px;
  right: 10px;
  width: 300px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1200;
  overflow: hidden;
  max-height: 80vh;
}

.msg-settings-header {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}
.msg-settings-header h6 {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}
.msg-settings-header p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #666;
}

/* Setting items */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  cursor: pointer;
}
.setting-item:hover {
  background: #f0f2f5;
}
.setting-item span {
  font-size: 14px;
  color: #050505;
}
.setting-item i {
  margin-right: 8px;
  color: #606770;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #1877f2;
}
input:checked + .slider:before {
  transform: translateX(16px);
}

/* List section */
.msg-setting-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.msg-setting-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  font-size: 14px;
  color: #050505;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}
.msg-setting-list li:hover {
  background: #f0f2f5;
}
.msg-setting-list i {
  color: #606770;
}

/* Hide by default */
.msg-settings-popup.d-none { display: none; }






/********  sidebars dashboard page 😂  ********/

/* Sticky sidebar */
.sticky-sidebar {
  position: fixed;
  top: 70px; /* navbar height if you have one */
  width: 23%!important;
  height: calc(100vh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  margin-top: 10px;
}

.right-sidebar {
  background: #fff;
  border-left: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
}

/* Hover effects */
.hover-effect:hover {
  background: #f0f2f5;
  border-radius: 8px;
}

/* Profile image */
.user-image {
  width: 35px;
  height: 35px;
}

/* .user-min-image {
  width: 30px;
  height: 30px;
} */

/* Feed area */
.feed-area {
  margin-top: 15px;
}

/* Posts */
.post {
  border: 1px solid #ddd;
}

/* Scrollbar styling */
.sticky-sidebar::-webkit-scrollbar {
  width: 6px;
}
.sticky-sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.sticky-sidebar::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Hover effect same like Facebook */
.hover-effect:hover {
  background: #f0f2f5;
  border-radius: 8px;
}

/* Contact list items */
.right-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.right-sidebar li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.right-sidebar li:hover {
  background: #f0f2f5;
  border-radius: 6px;
}

.right-sidebar li img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}





/* ***********************    dashboard center part    *********************** */

.feed-area {
  max-width: 600px;
  margin: 0 auto;
}

.story-carousel::-webkit-scrollbar {
  height: 6px;
}
.story-carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.story-item {
  width: 90px;
  flex-shrink: 0;
}
.story-img {
  width: 90px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  position: relative;
}
.add-story-btn {
  bottom: -10px;
  right: 28px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  border: 2px solid #fff;
}
.post button {
  font-size: 14px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
}

.icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.icon-btn:hover i.fa-video {
  background-color: rgba(255, 0, 0, 0.1);
  border-radius: 50%;
}
.icon-btn:hover i.fa-images {
  background-color: rgba(0, 128, 0, 0.1);
  border-radius: 50%;
}
.icon-btn:hover i.fa-film {
  background-color: rgba(255, 0, 128, 0.1);
  border-radius: 50%;
}


.create-post-box.rounded-15{
    border-radius: 15px!important;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
}

.icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.icon-action {
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 6px;
  border-radius: 50%;
}

.icon-action:hover {
  transform: scale(1.2);
  background-color: rgba(0, 0, 0, 0.05);
}

.modal-content {
  border-radius: 15px;
}

textarea:focus {
  box-shadow: none !important;
}







/********** story section **********/

.stories-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

.stories-container {
  display: flex;
  gap: 10px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  flex: 1;
  padding: 10px 0;
}

/* Story Card */
.story-card {
  position: relative;
  width: 120px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.story-card:hover {
  transform: scale(1.03);
}
.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card p {
  position: absolute;
  bottom: 8px;
  left: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* Create Story */
.create-story {
  background: #f0f2f5;
  text-align: center;
}
.create-story img {
  height: 75%;
  width: 100%;
  border-radius: 12px 12px 0 0;
  z-index: 0;
}
.create-story .add-icon {
  background: #0866ff;
  color: #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: -20px auto 5px;
  border: 3px solid #fff;
  z-index: 999!important;
}

/* Profile Pic */
.profile-pic {
  position: absolute;
  top: 8px;
  left: 8px;
  border: 3px solid #0866ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  overflow: hidden;
}
.profile-pic img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.profile-pic.watched {
  border: 3px solid rgba(255,255,255,0.6);
}

/* Navigation Buttons */
.stories-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: none;
  color: #000;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  z-index: 10;
  transition: opacity 0.3s ease;
}
.stories-nav.prev {
  left: -15px;
  opacity: 0;
  pointer-events: none;
}
.stories-nav.next {
  right: -15px;
}
.stories-nav.show {
  opacity: 1;
  pointer-events: auto;
}

/* lightbox css */

:root{
  --lb-width: 780px;
  --lb-height: 80vh;
  --accent: #1877f2;
  --bg: #fff;
  --dark: #0b0b0b;
}

/* Lightbox overall */
.story-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .22s ease;
}
.story-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(3px);
  z-index: 1;
}

/* Content card */
.story-content {
  position: relative;
  z-index: 2;
  width: min(94%, var(--lb-width));
  height: var(--lb-height);
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(2,6,23,0.45);
  display: flex;
  flex-direction: column;
  color: var(--dark);
}

/* Header */
.story-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  gap:12px;
  border-bottom: 1px solid #ececec;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3));
}
.story-user { display:flex; align-items:center; gap:10px; }
.story-user-img { width:44px; height:44px; border-radius:50%; object-fit:cover; }
.lb-username{ font-weight:700; font-size:15px; }
.lb-meta{ font-size:12px; color: #616161; }

/* Close */
.lb-controls { display:flex; align-items:center; gap:8px; }
.lb-close {
  border: none;
  background: transparent;
  font-size:28px;
  color:#222;
  cursor:pointer;
  line-height:1;
  padding:4px 8px;
  border-radius:6px;
}
.lb-close:focus{ outline:2px solid rgba(24,119,242,0.18); }

/* Main area: media with nav buttons */
.story-main {
  flex: 1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  background: #000;
}
.lb-media { width: 100%; height:100%; display:flex; align-items:center; justify-content:center; position:relative; }
.lb-media img, .lb-media video{ max-width:100%; max-height:100%; object-fit:contain; }

/* Nav buttons */
.lb-nav {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: none;
  width:56px; height:56px; border-radius:50%;
  font-size:26px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background .18s ease, transform .12s ease;
}
.lb-nav:hover{ background: rgba(255,255,255,0.12); transform:translateY(-50%) scale(1.04); }
.lb-prev{ left: 14px; }
.lb-next{ right: 14px; }

/* Progress (small bar strip) */
.lb-progress { height:6px; display:flex; gap:6px; padding:8px; background: transparent; }

/* Bottom: reactions + chat */
.story-bottom{
  border-top:1px solid #eee;
  padding:10px 12px;
  background: linear-gradient(180deg, #fff, #fbfbfb);
}
.bottom-inner{ max-height:220px; display:flex; flex-direction:column; gap:8px; }

/* Reaction row */
.reactions-row{ display:flex; gap:10px; align-items:center; }
.reaction-btn{
  background: transparent;
  border:none;
  font-size:20px;
  cursor:pointer;
  padding:6px;
  border-radius:8px;
}
.reaction-btn:hover{ transform:scale(1.15); }

/* emoji toggle */
.emoji-toggle{
  margin-left:6px;
  background:#f5f7fb; border:1px solid #e6e9ef; padding:6px 8px; border-radius:8px; cursor:pointer;
}

/* Emoji picker */
.emoji-picker{
  display:flex; flex-wrap:wrap; gap:6px; padding:8px 4px; border-radius:8px; background:#fff; border:1px solid #ececec; max-height:120px; overflow:auto;
}
.emoji-picker .emoji-item{
  background:transparent; border:none; font-size:20px; cursor:pointer; padding:6px;
}

/* Chat area (message list) */
.chat-area{
  overflow:auto;
  max-height:100px;
  padding:6px 4px;
  display:flex; flex-direction:column; gap:6px;
  border-radius:6px;
  background: linear-gradient(180deg, #fff, #fff);
}
.chat-bubble{
  max-width:75%;
  padding:8px 10px;
  background:#f1f1f1;
  border-radius:12px;
  font-size:14px;
  color:#111;
  align-self:flex-start;
  box-shadow:0 2px 6px rgba(0,0,0,0.04);
}
.chat-bubble.me{ background: #1877f2; color:#fff; align-self:flex-end; }

/* Message form */
.message-form{ display:flex; gap:8px; align-items:center; margin-top:4px; }
.message-form input{
  flex:1; padding:8px 12px; border-radius:24px; border:1px solid #e6e6e6; outline:none; font-size:14px;
}
.message-form input:focus{ box-shadow: 0 0 0 3px rgba(24,119,242,0.08); }
.send-btn{
  background:var(--accent); color:#fff; border:none; padding:8px 11px; border-radius:50%; cursor:pointer; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center; font-size:16px;
}
.send-btn:active{ transform:scale(.98); }

/* Responsive */
@media (max-width:900px){
  :root{ --lb-width: 720px; }
}
@media (max-width:560px){
  :root{ --lb-width: 98%; --lb-height: 76vh; }
  .lb-nav{ width:44px; height:44px; font-size:22px; }
  .lb-close{ font-size:22px; }
}





/**********   Post srction css   **********/

/* Feed wrapper */
.feed {
  max-width: 100%;
  margin: 20px auto;
  padding: 0 12px;
}

/* Post card */
.post {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #dddfe2;
}

/* Post header */
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}
.post-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}
.post-header .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-header .info {
  flex: 1;
}
.post-header .info .name {
  font-weight: 600;
  font-size: 14px;
}
.post-header .info .time {
  color: #65676b;
  font-size: 12px;
}
.post-header .menu {
  color: #65676b;
  cursor: pointer;
}

/* Post content */
.post-content {
  padding: 0 12px 12px;
}
.post-text {
  font-size: 14px;
  padding: 8px 0;
}

/* Media container */
.post-media img,
.post-media video {
  width: 100%;
  max-height: 480px;
  border-radius: 8px;
  object-fit: cover;
}

/* Reaction counts */
.post-counts {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  color: #65676b;
  border-top: 1px solid #f0f2f5;
}

/* Action buttons */
.post-actions {
  display: flex;
  justify-content: space-around;
  padding: 4px 0;
  border-top: 1px solid #f0f2f5;
}
.action-btn {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  cursor: pointer;
  color: #65676b;
  font-weight: 600;
  border-radius: 6px;
  user-select: none;
}
.action-btn:hover {
  background: #f2f2f2;
}
.action-btn.liked {
  color: #1877f2;
}
.action-btn i {
  margin-right: 6px;
}

/* Modal (for comments) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.modal.show {
  display: flex;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}
.modal-body {
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
}
.modal-footer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #ddd;
}
.modal-footer input {
  flex: 1;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
}
.modal-footer button {
  background: #1877f2;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
}












/* *****************************   custom classes   ******************************** */

.font-weight-600{
    font-weight: 600!important;
}
.font-weight-700{
    font-weight: 700!important;
}
.bg-clight{
    color: #e6e6e6!important;
}
th{
  font-size: 16px;
  font-weight: 500;
}
.f-25{
  font-size: 25px!important;
}
a, i:hover {
  text-decoration: none!important;
}













/* *********   left sidebar toggle   *********** */

.sidebar {
    background: #fff;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1050;
    padding-bottom: 60px;
    border-radius: 10px;
    border-right: 1px solid #ddd;
}

/* Scrollbar styling (optional) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* ✅ Desktop (always visible, sticky left) */
@media (min-width: 992px) {
    .sidebar {
        position: fixed;
        top: 70px!important;
        height: calc(100vh - 70px); 
        width: 23%!important;
        overflow-y: auto;
        transform: translateX(0);
        z-index: 1;
    }
}

/* ✅ Mobile (hidden by default, slides in full height, no gap) */

@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        transform: translateX(-100%);
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
        z-index: 1050;
    }

    .sidebar.active {
        transform: translateX(0);
    }
}


/* Main Content */
@media (min-width: 992px) {
    .main-content {
        margin-left: 260px;
    }
}











/* ******************   create post style css    ****************** */


  /* ===== Cropper Overlay ===== */
  .cropper-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      display: none;
      z-index: 2000;
      align-items: center;
      justify-content: center;
      padding: 20px;
  }



  .cropper-modal-overlay.show {
      display: flex;
  }


  .cropper-modal-card {
      width: 100%;
      max-width: 900px;
      background: #fff;
      border-radius: 6px;
      padding: 12px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }
  .cropper-modal-card img {
      max-width: 100%;
      display: block;
      max-height: 70vh;
  }

  /* ===== Emoji Popup ===== */
  #emojiPickerBox {
      position: absolute;
      width: 320px;
      height: 300px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 5px 25px rgba(0,0,0,0.25);
      display: none;
      z-index: 5000;
      overflow: auto;
      padding: 8px;
  }
  #emojiPickerBox .emoji-grid { display:flex; flex-wrap:wrap; gap:8px; padding:6px; }
  #emojiPickerBox .emoji-grid span { cursor:pointer; font-size:22px; padding:6px; border-radius:6px; }
  #emojiPickerBox .emoji-grid span:hover { background:#f1f3f5; }

  /* Post card */
  .post-card { max-width:650px; width:100%; }

  /* Media preview adjustments */
  #imagePreviewContainer img, #imagePreviewContainer video {
    display:block;
    max-height:420px;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    border-radius:8px;
  }
  #imagePreviewContainer .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    background: #0000ff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  #imagePreviewContainer .remove-btn i {
    color: #fff; /* Icon white for visibility */
    font-size: 18px;
  }
  


  /* small fix for textarea bottom icon spacing */
  .position-relative textarea { padding-right:46px; }

  /* make sure emoji picker doesn't overflow viewport */
  @media (max-width: 480px) {
    #emojiPickerBox { width: 92vw; right: 8px; left:8px; }
    .cropper-modal-card { max-width: 95%; }
  }

  .action-buttons .btn {
    padding: 4px 12px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    white-space: nowrap;
}

.action-buttons form {
    display: inline-block;
    margin: 0;
}

.action-buttons .btn + .btn,
.action-buttons a + form,
.action-buttons a + a,
.action-buttons form + .btn {
    margin-left: 8px;
}








/*  Show profile picture cropper popup  */
.profile-preview { 
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

#cropModal {
    z-index: 1055;
}

.modal.show .modal-dialog{
  justify-content: center!important;
}




#cropModal .modal-body {
    height: 70vh;
    padding: 0;
}

#cropModal .modal-body .row {
    height: 100%;
    width: 100%;
}






#cropImage {
    width: 100% !important;
    height: auto !important;
    max-height: 100%;
    object-fit: contain;
}

#previewCanvas {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* Cropper should fill parent */

/* REMOVE WHITE SPACE */
#cropModal .cropper-wrap-box,
#cropModal .cropper-canvas {
    width: 100% !important;
    height: 100% !important;
}









/*   comment modal css   */
#commentModal .modal-dialog {
  z-index: 1060!important;
}
.modal.show {
  z-index: 1060!important; 
}



/* like btn active */
.like-btn {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: color 0.3s, transform 0.2s;
}

.like-btn i {
  color: #999; /* default grey */
  transition: color 0.3s, transform 0.2s;
}

/* Active/liked state */
.like-btn.active-like i,
.like-btn.liked i {
  color: #0d6efd; /* primary color */
  transform: scale(1.2);
}

/* Optional: smooth icon fill effect if needed */
.like-btn i.filled::before {
  content: "\f004"; /* FontAwesome heart icon if needed */
}








/* Modal content max height and scroll */
.modal-content {
    max-height: 70vh; 
    overflow-y: auto; 
}

.modal-body {
    padding: 15px;
}



.profile-sticky {
    position: sticky;
    top: 120px; /* navbar height jitni */
    align-self: flex-start;
}

@media(min-width: 320px) and (max-width: 767px){
  .profile-sticky {
    position: relative!important;
    top: 0!important;
    margin-bottom: 50px;
  }

}







