* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
}
/* ✅ LEFT SIDEBAR */
.side-menu {
  width: 350px;
  max-width: 350px;
  background-color: #eeeeee;
  padding: 15px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
    display: flex;
  flex-direction: column;
  align-items: flex-start; /* aligns child elements to the left */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 3000;
}

.side-menu.show {
  transform: translateX(0);
}

/* ✅ RIGHT CHAT/MESSAGE AREA */
.messo-area {
  width: 350px;
  background-color: #fff;
  padding: 20px;
  overflow-y: auto;
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 2500;
}

.messo-area.show {
  transform: translateX(0);
}

/* ✅ Desktop view: keep both panels visible */
@media screen and (min-width: 1280px) {
  .side-menu {
    transform: translateX(0) !important;
    position: fixed;
  }

  .messo-area {
    transform: translateX(0) !important;
    position: fixed; /* fixed ensures visibility */
    right: 0;
  }

  #overlay {
    display: none !important;
  }

  .middle {
    margin-left: 200px;
    margin-right: 300px; /* prevent overlap with messo area */
  }
}

/* ✅ Overlay for mobile (non-blocking when behind menu) */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  display: none;
  pointer-events: none; /* 🚀 Prevent overlay from blocking clicks */
  z-index: 900;
}

#overlay.show {
  display: block;
  pointer-events: auto; /* active only when visible AND above everything */
}

/* ✅ Toggle buttons */
.menu-toggle {
  position: fixed;
  top: 15px;
  font-size: 30px;
  z-index: 4000;
  cursor: pointer;
  background-color: transparent;
  border-radius: 5px;
  padding: 5px 10px;
}

#menuToggle { left: 15px; }
#rightToggle { right: 15px; }

/* ✅ Middle content area */
.middle {
  flex-grow: 1;
  background-image: url('backgroundFeed.jpeg');
  background-repeat: repeat;
  background-size: contain;
  padding: 20px;
  overflow-y: auto;
  border: 3px double lightblue;
  width: 100%;
  max-width: 700px;
  min-width: 0;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.middle::-webkit-scrollbar { width: 0px; }

.header-links a {
  text-decoration: none;
  font-weight: bold;
  color: #007bff;
}

.sticky-title {
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 10;
  padding: 1rem;
  overflow: hidden;
}

.middle div {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.feed-content {
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
}

/* ✅ Bottom Navigation */
.bottom-nav { display: none; }

@media screen and (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0d1a40;
    border-top: 1px solid #1f2d5a;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 100;
  }

  .bottom-nav a {
    text-decoration: none;
    color: #dbe4f0;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
  }

  .bottom-nav a i {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .bottom-nav a:hover,
  .bottom-nav a.active {
    color: #4da6ff;
  }
}

/* ✅ Feed content truncation */
.feed-content {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

.read-more {
  display: none;
  color: blue;
  cursor: pointer;
  font-size: 14px;
  margin-top: 5px;
}

/* ✅ Fire topics */
.topics {
  padding: 10px;
  max-width: 300px;
  font-family: Arial, sans-serif;
}

.fire-topics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fire-topics li {
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fire-topics a {
  text-decoration: none;
  font-weight: bold;
  color: #e63946;
}

.fire-rank { font-weight: bold; min-width: 50px; }

.fire-topics li:nth-child(1) .fire-rank { color: gold; }
.fire-topics li:nth-child(2) .fire-rank { color: silver; }
.fire-topics li:nth-child(3) .fire-rank { color: #cd7f32; }
.fire-topics li:nth-child(n+4) .fire-rank { color: orange; }

.count { color: #666; font-size: 0.85em; }

.feed-container {
  padding: 12px;
  border-radius: 12px;
  margin: 0px auto;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  max-width: 600px;
  width: 100%;
}

/*send message part*/
	.chat-box {
            max-height:700px;
            overflow-y: auto;
            margin-bottom: 55px;
			margin-top: 55px;
        }
        .message {
            margin-bottom: 70px;
        }
        .message {
    display: flex;
    margin: 5px 0;
}

.message.left {
    justify-content: flex-start;
}

.message.right {
    justify-content: flex-end;
}

.message .bubble {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(0, 0, 200, 0.8);
    color: #eee;
    max-width: 350px;
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.message.right .bubble {
    background: #4CAF50;
    color: #fff;
}

        }
        .message small {
            display: block;
            margin-top: 5px;
            font-size: 0.75em;
            color: #aaa;
        }
        textarea {
            width: 100%;
            padding: 10px;
            background: #333;
            border: none;
            color: #eee;
            resize: none;
        }
		/* For Chrome, Safari, and Edge */
.chat-box::-webkit-scrollbar {
    display: none;
}

/* For Firefox */
.chat-box {
    scrollbar-width: none;
}

/* Common property */
.chat-box {
    overflow-y: scroll; /* or auto */
}
#userList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 5px; /* Space between blocks */
    
    /* Add scrolling */
    max-height: 400px;   /* adjust height as needed */
    overflow-y: auto;    /* enable vertical scroll */
    overflow-x: hidden;  /* prevent horizontal scroll */
}


.user-item a {
    display: flex;
    align-items: center;
    background-color: #1e1e1e; /* WhatsApp dark mode feel */
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: background 0.2s;
}

.user-item a:hover {
    background-color: #2c2c2c; /* Hover effect */
}

.user-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-item .unseen {
    background: #25d366;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.8em;
}
/*notifications*/
		.order {
            border: 1px solid #ccc;
            border-radius: 10px;
            padding: 15px;
            margin: 10px auto;
            max-width: 600px;
            background: #f9f9f9;
        }
        .status {
            font-weight: bold;
            color: green;
        }
		.order-wrapper {
    border: 1px solid #ccc;
	display:none;
    border-radius: 10px;
    margin: 20px auto;              /* Adds vertical space between orders */
    padding: 0;
    background: #fdfdfd;
    max-width: 700px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);  /* subtle shadow for elevation */
}

.order-header {
    padding: 15px 20px;
    cursor: pointer;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

.order-details {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #ccc;
    border-radius: 0 0 10px 10px;
}

.status {
    color: green;
    font-weight: bold;
}

#toggleAll {
    cursor: pointer;
    color: #007bff;
    margin: 30px 0 20px;
    font-size: 24px;
}
/*timeline page*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 10px;
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#map { height: 400px; width: 100%; border-radius: 8px; }
.close {
  float: right;
  font-size: 20px;
  cursor: pointer;
}
.apply-agent-btn {
    position: fixed;
    top: 90px;             /* distance from top of page */
    right: 25px;           /* distance from right edge */
    z-index: 1050;         /* stays above everything */
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    background: #007bff;
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.apply-agent-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
    color: #fff;
    text-decoration: none;
}

/*view_product*/

.product-card img {
  width: 100%;        /* Fill the card width */
  height: auto;      /* Fixed height (or use auto for scaling) */
  object-fit: cover;  /* Crop neatly without distortion */
  border-radius: 8px; /* Optional */
}
 