
      #chatPopup {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 320px;
        max-height: 500px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        display: none;
        flex-direction: column;
        overflow: hidden;
        z-index: 9999;
        font-family: Arial, sans-serif;
      }

}#chatHeader .chat-actions {
  display: flex;
  gap: 8px; /* space between buttons */
}#chatHeader button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
}

#chatHeader button:hover {
  color: #ff4444;
}
     
      #chatMessages {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 10px;
        background: #f7f7f7;
        overflow-y: auto;
      }
	  #chatMessages.light-theme {
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
}

/* Dark */
#chatMessages.dark-theme {
  background: linear-gradient(135deg, #1f1c2c, #928dab);
}

/* Fun gradient */
#chatMessages.gradient-theme {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}
/* 4. Pattern (small dots) */
#chatMessages.pattern-theme {
  background: url("https://learn.programfinder.in/chat/blue.png");
  background-size: cover;
  background-position: center;
}

/* 5. Abstract (geometric shapes) */
#chatMessages.abstract-theme {
  background: url("https://learn.programfinder.in/chat/sky.png");
  background-size: cover;
  background-position: center;
}

/* 6. Nature (soft leaves/forest) */
#chatMessages.nature-theme {
  background: url("https://learn.programfinder.in/chat/dark.png");
  background-size: cover;
  background-position: center;
}
      .msg {
        display: inline-flex;
        flex-direction: column;
        max-width: 70%;
        padding: 8px 12px;
        border-radius: 18px;
        font-size: 10px;
        line-height: 1.4;
        word-wrap: break-word;
        position: relative;
      }
      .student {
        background: #b3daff;
        color: #000;
        margin-left: auto;
        border-bottom-right-radius: 4px;
      }
      .counselor {
        background: #e6f3ff;
        color: #000;
        margin-right: auto;
        border-bottom-left-radius: 4px;
      }
      .text { display: block; }
      .meta { font-size: 10px; color: #666; align-self: flex-end; margin-top: 2px; }
 
      #chatForm {
        display: flex;
        padding: 10px;
        border-top: 1px solid #ddd;
        background: #fff;
      }
      #chatInput {
        flex: 1;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 8px;
      }
      #sendBtn {
        width: 50px;
        margin-left: 6px;
        background: #ba312c;
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
      }
      #openChatBtn {
        position: fixed;
        bottom: 20px;
        left: 20px;
        background: #ba312c;
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 22px;
        cursor: pointer;
        z-index: 9999;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      }
      .chat-date-header {
        text-align: center;
        font-size: 12px;
        color: #555;
        margin: 10px 0;
        font-weight: bold;
        opacity: 0.8;
      }
	  /* Dark theme override */
#chatMessages.dark-theme .chat-date-header {
  color: #ddd;        /* lighter text for dark background */
  opacity: 0.9;
}
	  #openChatBtn.chat-btn {
  position: fixed;
  bottom: 20px;
  left: 20px; /* left side */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

#openChatBtn.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

#openChatBtn .chat-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
} 
 #themeBtn {
        position: absolute;
        right: 70px;
        top: 5px;
        cursor: pointer;
        font-size: 20px;
      }
 #minimizeBtn {
        position: absolute;
        right: 10px;
        top: 5px;
        cursor: pointer;
        font-size: 20px;
      }
	  #closeChatBtn {
        position: absolute;
        right: 40px;
        top: 5px;
        cursor: pointer;
        font-size: 18px;
        color: #fff;
        background: transparent;
        border: none;
      }
      #closeChatBtn:hover {
        color: #ff4444;
      }
	  
	 
#chatMessages.nature-theme .chat-date-header {
  color: #fff;   /* make text white */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.counselor-status {
  display: flex;
  align-items: center;
  gap: 6px;              /* space between dot and text */
  background: #f1f1f1;   /* light background */
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-right: auto;    /* push close button to the right */
}

.rating-modal {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;

  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rating-modal.show {
  opacity: 1;
  transform: scale(1);
}

.rating-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.star {
  font-size: 30px;
  cursor: pointer;
  margin: 0 5px;
}

.star.selected {
  color: gold;
}



