.showLinkBox {
    display: block;
    position: fixed;
    z-index: 222;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner {
    text-align: center;
    padding: 16px;
    color: #6b7280; /* A muted gray color */
    font-size: 0.9rem;
    font-weight: 500;

    /* This ensures the element doesn't shrink if space is tight */
    flex-shrink: 0;

    /* Apply the custom fadeIn animation */
    animation: fadeIn 0.5s ease-in-out;
}

/* This keyframe animation creates a simple and smooth fade-in effect.
   It makes the appearance of the loader less jarring. */
@keyframes fadeIn {
    from {
        opacity: 0;
        /* Start slightly above its final position for a subtle drop-in effect */
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- END SPINNER STYLING --- */

.textarea {
  width: 95%;
  height: 200px;
  box-sizing: border-box;
  resize: none;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.comment-item .embedded-post-container {
    width: 103.8%;
    margin: 0 0 0 -10px;
}

#messages-section {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  touch-action: pan-y;
}

#notifications-section{
	padding-bottom: 100px;
}

.conversation-element strong {
  margin-left: 10px;
}
.sent {
  justify-content: flex-start;
  text-align: left;
}

.received {
  justify-content: flex-start;
  text-align: left;
}

.profile-pic:hover {
  transform: scale(1.2) !important;
}

.messages-content {
  display: flex;
  flex-direction: column;
  background-color: white;
  margin: 10px auto;
  width: 96%;
  max-width: 500px;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  height: 95dvh;
  max-height: 777px;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}



.share-content {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(240,240,240,0.1)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill-opacity="0.02"><rect width="100%" height="100%" fill="white"/></svg>');
    background-blend-mode: overlay;
    backdrop-filter: blur(10px) brightness(1.1);
    -webkit-backdrop-filter: blur(10px) brightness(1.1);
    margin: 10px auto;
    width: 96%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    height: 95dvh;
    max-height: 777px;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.message-content {
  width: 100%;
}


.timestamp {
  font-size: small;
  color: #888;
  margin-top: 5px;
  position: absolute;
  /* Position relative to .message-content */
  top: -4px;
  right: 0;
  padding: 0 5px;
  /* Add some padding for better readability */
}

.like-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 3px;
  width: 96%; /* <== Make it full width */
}

.like-item img {
  margin-right: 10px;
}

.like-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  background-color: #3DDC84;
  /* Blue background */
  border: none;
  border-radius: 25px;
  /* Rounded corners */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  /* Smooth transitions */
}

/* Hover effect */
.follow-button:hover {
  background-color: #3DDC84;
  /* Darker blue on hover */
  transform: translateY(-2px);
  /* Slight lift effect */
}

/* Active state */
.follow-button:active {
  background-color: #07ff51;
  /* Even darker blue when pressed */
  transform: translateY(0);
  /* Remove lift effect */
}

/* Disabled state */
.follow-button:disabled {
  background-color: #6c757d;
  /* Grey background for disabled */
  cursor: not-allowed;
}


#customConfirmDialog,
#statusMessage,
#GPTConfirmDialog, 
#reportResultModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 900;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 400px;
  text-align: center;
  font-family: "Chakra Petch", sans-serif;
}

#customConfirmDialog,
#reportResultModal
#GPTConfirmDialog p {
  font-size: 16px;
  color: #333;
  padding: 10px;
}

.confirm-dialog-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 95%;
  text-align: center;
  font-family: "Chakra Petch", sans-serif;
}

#confirmBtn,
#GPTConfirmBtn,
.confirmBtn {
  background-color: #28a745;
  color: #fff;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px;
  transition: background-color 0.3s ease;
}

#confirmBtn:hover,
#GPTConfirmBtn:hover,
.confirmBtn:hover {
  background-color: #218838;
}

#cancelBtn,
.cancelBtn {
  background-color: #dc3545;
  color: #fff;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 10px;
  transition: background-color 0.3s ease;
}

#cancelBtn:hover,
.cancelBtn:hover {
  background-color: #c82333;
}


/* Header Styles */
#comments-header,
#likes-header,
#messages-header {
  position: sticky;
  /* Fixes it at the top of its container */
  top: 0;
  /* Align to the top of the container */
  background-color: lightgreen;
  /* Match background color to avoid overlap issues */
  border-bottom: 1px solid #888;
  padding: 7px 0 5px 10px;
  display: flex;
  justify-content: space-between;
  /* Space out title and close button */
  align-items: center;
  /* Center align items vertically */
  /* Ensure it stays above other content */
  font-weight: bold;
}

/* Ensure the parent container has a defined height and overflow */
#comments-section {
  overflow-y: auto;
  /* Enable vertical scrolling */
  border: 1px solid #ccc;
  /* Optional: for visual boundary */
  padding: 1px;
  /* Optional: for visual padding */
  position: relative;
  /* Ensure correct positioning context */
  padding-bottom: 55px;
}

#replies-section {
  overflow-y: auto;
  /* Enable vertical scrolling */
  padding: 10px;
  /* Optional: for visual padding */
  position: relative;
  /* Ensure correct positioning context */
  padding-bottom: 55px;
}

#UM-section,
#messages-section {
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    background-color: white;
}
.comments-modal,
.messages-modal {
  overflow-y: auto;
  width: 100%;
}

.comments-modal{
     position: fixed;
  left: 0;
  top: 0px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
 z-index: 633;
}

.more-info-modal{
  position: fixed;
  left: 0;
  top: 0px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
 z-index: 1111;
}

.messages-modal {
  z-index: 622;
}

.share-modal {
  z-index: 988;
}

#likes-modal {
  z-index: 644;
}

.replies-count {
  text-align: end;
  margin-right: 5px;
}

.comment-container {
  display: flex;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 3px;
  margin-top: 3px;
}

.reply-container {
  margin: 5px 0px 5px 10px;
  padding-left: 3px;
}

#shortReply {
  resize: none;
  overflow-y: hidden;
  /* Hide scrollbar */
  margin: 10px;
  font-size: 16px;
  box-sizing: border-box;
  border: 3px solid #ccc;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: none;
  width: 100%;
  height: auto;
  /* Ensure auto height */
  line-height: 1.2em;
  /* Set line height */
  min-height: 1.2em;
  /* Minimum height to match one line */
}


.reply_comment {
  margin: 10px;
  font-size: 16px;
  padding: 8px;
  box-sizing: border-box;
  border: 3px solid #ccc;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: none;
  width: 90%;
}

.comment-profile {
  flex-shrink: 0;
  margin-right: 10px;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.notification-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.comments-content {
  display: flex;
  flex-direction: column;
  background-color: #fefefe;
  max-width: 555px;
  border: 1px solid #888;
  height: 85vh;
  max-height: 777px;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  /* Prevent overflow from affecting the layout */
}


/* Container for the list of conversations */
#conversations-section {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
  /* Space between conversations */
  padding: 10px;
  max-height: 80vh;
  /* Limit the height */
  overflow-y: auto;
  /* Add scroll if content exceeds max-height */
}

/* Individual conversation item */
.conversation {
  display: flex;
  position: relative;
  /* Ensure timestamp is positioned relative to this */
  align-items: center;
  border: 1px solid #ddd;
  /* Light border */
  border-radius: 5px;
  /* Rounded corners */
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* Smooth transition for hover effect */
}

/* Individual conversation item */
.conversation-item {
  display: flex;
  position: relative;
  /* Ensure timestamp is positioned relative to this */
  align-items: center;
  border: 1px solid #ddd;
  /* Light border */
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 3px !important;
  /* Smooth transition for hover effect */
}


.conversation:hover {
  background-color: #e0e0e0;
  /* Change background on hover */
}


.conversation-content strong {
  font-size: 1em;
  /* Adjust font size */
  color: #333;
  /* Darker text color for username */
}

.conversation-element {
  position: relative;
  /* Ensure timestamp is positioned relative to this */
  align-items: center;
  border: 1px solid #ddd;
  /* Light border */
  border-radius: 5px;
  margin: 0px 2px;
  transition: background-color 0.3s ease;
  width: 98%;
	max-width: 498px;
}


.UM-content {
  display: flex;
  flex-direction: column;
  color: black;
  margin: auto;
  /* Centers horizontally */
  width: 350px;
  /* Keeps width fixed */
  border: 1px solid #888;
  height: 80vh;
  max-height: 666px;
  overflow: hidden;
  /* Prevents overflow from affecting the layout */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Centers vertically and horizontally */
}

.setting-content {
  display: flex;
  flex-direction: column;
  background-color: #fefefe;
  color: black;
  margin: auto;
  /* Centers horizontally */
  width: 350px;
  /* Keeps width fixed */
  border: 1px solid #888;
  overflow: hidden;
  /* Prevents overflow from affecting the layout */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Centers vertically and horizontally */
}

.setting-content .fullTextbox {
  width:94%;
}


#comments-section {
  flex: 1;
  /* Ensure it grows to fill available space */
  overflow-y: auto;
  /* Enable vertical scrolling */
  padding-bottom: 60px;
  /* Space for the sticky footer */
}

.conversation-content {
  width: 98%;
  max-width: 490px;
}

.comments-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width:500px;
  width: 100%;
  background-color: lightgreen;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
  padding: 0 6px 0 4px;
}

#commenter_icon {
  margin-left: 3px;
}


.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  padding-top: 3px;
  padding-bottom: 4px;
}


.profile_icon {
  border-radius: 50%;
  margin-left: 2px;
}

.comment-details {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  margin-left: 5px;
}

.comment-author {
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.time-delete-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 5px;
}

.comment-time {
  font-size: 0.85rem;
  color: #888;
}


.comment-details p {
  margin: 0px 5px;
  font-size: 0.9rem;
  color: #333;
  text-align: left;
}

.full_textbox {
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.profile-link {
  text-decoration: none;
}

.reply-controls {
  text-align: right;
  margin-right: 8px;
  cursor: pointer;
}

.reply-button {
  background-color: lightgreen;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 8px;
}

.reply-button:hover {
  opacity: 0.7;
}

.action-count {
  font-size: 14px;
  color: #333;
  margin-left: 5px;
}

.settings-container {
  width: 100%;
  max-width: 600px;
  /* Optional: Max width for parent container */
  margin: 0 auto;
  /* Center the container */
}

.toggle-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 86.5%;
  margin: 10px auto;
  padding: 10px;
  background-color: #f4f4f4;
  border-radius: 5px;
}

.toggle-label {
  flex-grow: 1;
  font-size: 1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #4CAF50;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

.button-wrapper {
  width: 90%;
  margin: 20px auto;
}

#verify_password,
#verify_password2 {
  z-index: 830;
}

.update-setting-modal{
  z-index: 830;
}

.delete-button {
  padding: 0px 0px;
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.delete-button:hover {
  color: darkred;
}

/* Styling for the update buttons */
.update-button {
  display: block;
  width: 90%;
  padding: 10px 0px;
  margin: 10px auto;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.update-button:hover {
  background-color: #0056b3;
}

/* Styling for the update buttons */
.delete-account-button {
  display: block;
  width: 100%;
  padding: 10px 0px;
  margin: 20px auto;
  font-size: 16px;
  color: #fff;
  /* Keep text white for better contrast */
  background-color: #ff4d4d;
  /* Use a bright red color for the background */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.delete-account-button:hover {
  background-color: #cc0000;
  /* Darken the red color on hover */
}

.sign-out-all-button {
  display: block;
  width: 100%;
  padding: 10px 0px;
  margin: 20px auto;
  font-size: 16px;
  color: #fff;
  /* Keep text white for better contrast */
  background-color: darkred;
  /* Use a bright red color for the background */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.sign-out-all-button:hover {
  background-color: red;
  /* Darken the red color on hover */
}

 .messages-content-mobile {
	  display: flex;
    flex-direction: column;
    background-color: #fefefe;
    border: 1px solid #888;
    height: 100dvh;
    width:100%;
    margin: 0 auto;
    position: fixed;
    bottom: 0;
}
