html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  /* height: 100%; */
  /* Ensure full screen height */
  overflow-y: auto;
  /* overflow-x: hidden; */
  font-family: 'Helvetica', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  /* Arrange content vertically */
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

main {
  flex: 1;
  /* Content area stretches to take available space */
}

.navbar-brand img {
  height: 70px;
  /* Adjust logo size */
}

.navbar-nav .nav-link.active {
  font-weight: bold;
  /* Make active item bold */
}

.form-control {
  width: 250;
  /* Set search input width */
  border-radius: 999px;
}

.banner {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 5.59%, #0A97B0 113.75%);
  height: 500px;
  width: 100%;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Add dots (...) at the end */
}

.line-clamp-none {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.show-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 5px;
}

.share-btn-container {
  position: relative;
  display: inline-block;
}

.copy-message {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4caf50;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
  visibility: hidden;
}

.copy-message.show-message {
  opacity: 1;
  visibility: visible;
}

/* #chevron-arrow-down {
  transform: rotate(45deg);
}

#chevron-arrow-up {
  transform: rotate(225deg);
}

.chevron {
  display: inline-block;
  border-right: 1.5px solid rgb(0 0 0);
  border-bottom: 1.5px solid rgb(0 0 0);
  width: 8px;
  height: 8px;
} */

.create-post-modal {
  display: none;
  position: fixed;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.toast {
  animation: fadeIn 0.5s ease, fadeOut 0.5s ease 2.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .page-update {
    flex-direction: row !important;
    /* Override flex-col on mobile */
    justify-content: space-between;
  }

  .page-update .mt-4 {
    margin-top: 0 !important;
    /* Remove extra margin */
  }
}

.shadow-lg {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rounded-md {
  border-radius: 0.375rem;
}

.tagify__tag {
  margin-inline: 0px !important; 
  margin-block: 0px !important;
}


.tagify__input {
  margin: 0px !important; 
  padding: 0px !important; 
}

/* CSS z-index layering suggestion */
#single-post-modal {
  z-index: 1000;
}

#delete-post-modal , .update-post-modal {
  z-index: 1050;
}

/* @media screen and (min-width: 1024px) and (max-width: 1279px) {
  .custom-ml {
    margin-left: -2px !important;
  }
}

@media screen and (min-width: 1280px) {
  .custom-ml {
    margin-left: -14px !important;
  }
} */
/* For shimmer animation */
@keyframes shimmer {
  0% { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}

.skeleton-loader-gradient {
  background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
  background-size: 1000px 100%;
  animation: shimmer 1.2s infinite linear;
}
.masonry-hidden {
  visibility: hidden;
}
.page-content-hidden {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
.page-content-visible {
  opacity: 1;
}
.page-loader-hidden {
  display: none;
}
