body {
  scroll-behavior: smooth;
  font-family: "Be Vietnam Pro", sans-serif !important;
}

.toast {
  border: none !important;
}

/* width */
::-webkit-scrollbar {
  width: 2px;
}

.gradient-custom {
  background-color: #0093e9;
  background-image: linear-gradient(160deg, #0093e9 0%, #80d0c7 100%);
}

.search-bar {
  margin-bottom: 20px;
}

.friend-card {
  margin-bottom: 20px;
}

.friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.form-control {
  border-radius: 9px;
}

.not-allowed {
  cursor: not-allowed !important;
}

/* navbar */
.navbar {
  background-color: #4267b2;
  /* Facebook blue */
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.2rem;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  background-color: #fff;
}

.navbar-collapse {
  background-color: #4267b2;
  /* Facebook blue */
}

.navbar-nav .nav-link {
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.search-form {
  flex-grow: 1;
}

.search-form input {
  border-radius: 20px;
  padding: 5px 10px;
  border: none;
  outline: none;
}

.search-form button {
  background-color: transparent;
  border: none;
  outline: none;
}

/* Responsive styles for mobile */
@media (max-width: 767px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }

  .search-form input {
    padding: 5px 8px;
  }
}

.py-6 {
  padding-top: 4rem !important;
  padding-bottom: 3rem !important;
}

.footer-custom-py {
  padding-top: 0rem !important;
  padding-bottom: 1rem !important;
}

#loading {
  /* height: 50px; */
  text-align: center;
}

.loading-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 2.5px solid #ccc;
  border-radius: 50%;
  border-top-color: #0d6efd;
  animation: spin 0.8s ease infinite;
  margin: 15px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-primary {
  transition: transform 0.2s ease-out;
}

.btn-shrink {
  transform: scale(0.9);
}

a {
  text-decoration: none !important;
}

.bg-gray {
  background-color: #f0f2f5;
}

.fs-0 {
  font-size: 4rem;
}

.fs-7 {
  font-size: 0.8rem;
}

/* nav button */
.nav__btn button:hover {
  background: #f0f2f5 !important;
}

.nav__btn button:hover i {
  color: #0d6efd !important;
}

.nav__btn-active i {
  color: #0d6efd !important;
}

.nav__btn-active {
  position: relative;
}

.nav__btn-active:before {
  content: "";
  position: absolute;
  bottom: -4.5px;
  left: 0;
  transform: translate(0, 4.5px);
  width: 100%;
  height: 3px;
  border-bottom: 3px solid #0d6efd !important;
}

/* dropdown */
.dropdown-item:active {
  background-color: #d5d5d5 !important;
}

/* chat box */
.modal-content:hover .fa-phone-alt {
  color: #0d6efd !important;
}

.modal-content:hover .fa-video {
  color: #0d6efd !important;
}

.modal-content:hover .fa-file-image {
  color: #0d6efd !important;
}

.modal-content:hover .fa-plus-circle {
  color: #0d6efd !important;
}

.modal-content:hover .fa-portrait {
  color: #0d6efd !important;
}

.modal-content:hover .fa-adjust {
  color: #0d6efd !important;
}

.modal-content:hover .fa-thumbs-up {
  color: #0d6efd !important;
}

/* edit */
.edit-button {
  opacity: 0;
}

.edit-button:hover {
  opacity: 1;
}

.edit-heading:hover .edit-button {
  opacity: 1;
}

/* scrollbar */
.scrollbar:hover {
  overflow: auto !important;
}

/* sponsor */
.sponsor-icon {
  opacity: 0;
}

.dropdown-item:hover .sponsor-icon {
  opacity: 1;
}

/* popover */
.pop-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 15px;
}

.chat-box {
  border: 0 !important;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* stories */
.story:hover {
  opacity: 0.8;
}

.story-image:hover {
  transform: scale(1.1);
  /* Zoom in by 10% on hover */
}

.pointer {
  cursor: pointer;
}

.wait {
  cursor: wait;
}

/* comment */
.post__comment .accordion-button::after {
  margin-left: 0 !important;
  display: none !important;
}

.post__comment .accordion-button:hover {
  background: transparent !important;
  border-color: transparent !important;
}

.post__comment .accordion-button:not(.collapsed) {
  background: transparent !important;
}

.post__comment .accordion-button:not(.collapsed) {
  box-shadow: none !important;
}

@media (min-width: 62em) {
  footer {
    position: fixed;
    bottom: 0;
    width: 100%;
  }
}

.text-danger-custom {
  color: rgb(255, 48, 64) !important;
}

.rounded-top-only {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.rounded-bottom-only {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.text-success-custom {
  color: #53bc7b !important;
}

.story-user {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  width: 36px;
  height: 36px;
  margin: 8px;
  position: absolute;
  border-radius: 50%;
  border: 2.6px solid #3877e1;
  z-index: 1;
}

.story-user-viewed {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  width: 36px;
  height: 36px;
  margin: 8px;
  position: absolute;
  border-radius: 50%;
  border: 2.6px solid #fff;
  z-index: 1;
}

.rounded-custom {
  border-radius: max(0px, min(8px, calc((100vw - 4px - 100%) * 9999))) / 8px !important;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
}

.skeleton-avatar {
  border-radius: 50%;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 10px;
}

.skeleton-line {
  border-radius: 4px;
}

.skeleton-image {
  border-radius: 8px;
}

.skeleton-button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f0f0f0;
}

.skeleton-icon {
  width: 20px;
  height: 20px;
  background: #f0f0f0;
  border-radius: 50%;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.dot-new-message {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
}

.modal-content {
  border-radius: 10px !important;
  border: none !important;
}

.modal-title {
  text-align: center !important;
  margin: 0 auto !important;
}

.btn-gray {
  background-color: #f0f2f5 !important;
  border-radius: 0.35em !important;
}

.disabled-link {
  color: #999999;
  cursor: not-allowed;
  pointer-events: none;
}

.disabled-button {
  cursor: not-allowed !important;
  border-color: #e4e6eb !important;
  color: #c8ccd0 !important;
  background-color: #e4e6eb !important;
}

/** loading */

.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Transparent Overlay */
.loading:before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.loader {
  animation: rotate 1s infinite;
  height: 50px;
  width: 50px;
}

.loader:before,
.loader:after {
  border-radius: 50%;
  content: "";
  display: block;
  height: 20px;
  width: 20px;
}

.loader:before {
  animation: ball1 1s infinite;
  background-color: #c2185b;
  box-shadow: 30px 0 0 #f8b334;
  margin-bottom: 10px;
}

.loader:after {
  animation: ball2 1s infinite;
  background-color: #00bcd4;
  box-shadow: 30px 0 0 #97bf0d;
}

@keyframes rotate {
  0% {
    -webkit-transform: rotate(0deg) scale(0.8);
    -moz-transform: rotate(0deg) scale(0.8);
  }

  50% {
    -webkit-transform: rotate(360deg) scale(1.2);
    -moz-transform: rotate(360deg) scale(1.2);
  }

  100% {
    -webkit-transform: rotate(720deg) scale(0.8);
    -moz-transform: rotate(720deg) scale(0.8);
  }
}

@keyframes ball1 {
  0% {
    box-shadow: 30px 0 0 #f8b334;
  }

  50% {
    box-shadow: 0 0 0 #f8b334;
    margin-bottom: 0;
    -webkit-transform: translate(15px, 15px);
    -moz-transform: translate(15px, 15px);
  }

  100% {
    box-shadow: 30px 0 0 #f8b334;
    margin-bottom: 10px;
  }
}

@keyframes ball2 {
  0% {
    box-shadow: 30px 0 0 #97bf0d;
  }

  50% {
    box-shadow: 0 0 0 #97bf0d;
    margin-top: -20px;
    -webkit-transform: translate(15px, 15px);
    -moz-transform: translate(15px, 15px);
  }

  100% {
    box-shadow: 30px 0 0 #97bf0d;
    margin-top: 0;
  }
}

/** END */

/** toastfy-js **/

.toastify {
  border-radius: 8px !important;
}

.active-comment {
  color: #0093e9 !important;
}

img,
video {
  /*max-width: 100%;*/
}

video {
  height: auto;
}

.avatar {
  /*height: auto !important;*/
  object-fit: cover !important;
}

.no-event {
  pointer-events: none;
  cursor: not-allowed;
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(farthest-side, #474bff 94%, #0000) top/5px 5px
      no-repeat,
    conic-gradient(#0000 30%, #474bff);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 0);
  animation: spinner-c7wet2 1.2s infinite linear;
}

@keyframes spinner-c7wet2 {
  100% {
    transform: rotate(1turn);
  }
}

.highlight-username {
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
}

.username-box {
  padding: 2px 8px;
  border: 1px solid #007bff;
  border-radius: 12px;
  background-color: #f0f8ff;
  font-size: 0.9em;
  margin-right: 5px;
}

@media screen and (max-width: 767px) {
  .m-0 {
    padding: 5px;
  }

  .highlight-username {
    display: inline-block;
    margin: 5px 0;
    font-size: 0.85em;
  }

  .username-box {
    padding: 4px 10px;
    font-size: 0.8em;
    border-radius: 8px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .highlight-username {
    font-size: 1em;
  }

  .username-box {
    padding: 4px 12px;
  }
}

@media screen and (min-width: 1025px) {
  .highlight-username {
    font-size: 1em;
  }

  .username-box {
    padding: 4px 12px;
  }
}

.nav-link {
  padding-right: 16px !important;
  padding-left: 16px !important;
}

.nav-link.active {
  color: #0d6efd !important;
  border-bottom-color: #0d6efd !important;
}

.nav-link:not(:active) {
  color: #6c757d;
}

.btn-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  font-size: 24px;
  /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); */
}

.btn-mic {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.btn-camera {
  background: linear-gradient(100deg, #1e83ab, #34e89e);
}

.btn-cancel {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.btn-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.btn-primary {
  overflow: hidden;
  position: relative;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -107%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 107%;
  border: none;
}

.post__content img {
  width: 100% !important;
  height: auto;
}

/* Pagination Styles */
.pagination {
  justify-content: center;
  gap: 8px;
}

.pagination .page-item .page-link {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  color: #555;
  font-weight: 500;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination .page-item .page-link:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  color: white;
  box-shadow: 0 4px 6px rgba(13, 110, 253, 0.3);
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}

/* custom btn */

.btn-primary {
  box-shadow: 0 4px 6px rgba(13, 110, 253, 0.3);
}

.btn {
  border-radius: 10px;
}

/* loading */

.loading-wrapper {
  position: fixed;
  inset: 0;
  background: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-app-spinner {
  position: relative;
  width: 100px;
  height: 100px;
}

.loading-app-spinner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 5px solid #fff;
  border-top-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-app-logo {
  width: 50%;
  height: 50%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Post Summary Feature */
.see-more-btn,
.see-less-btn {
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.see-more-btn:hover,
.see-less-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.post-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-text {
  white-space: pre-wrap;
  line-height: 1.5;
}

.post-content img {
  width: 100% !important;
}

#receiverAvatar {
  object-fit: cover !important;
}

#ToastNotification {
  cursor: pointer;
  z-index: 9999;
  pointer-events: auto;
}
