* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

/* Custom Alert Styles */
.alert {
  margin-top: 30px;
  padding: 9px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600 !important;
  line-height: 1.5;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.ml-12 {

  margin-left: 20px !important;
}

.pinned-btn {
  font-size: 12px !important;
  width: fit-content;
}

.pinned-btn i {
  margin-right: 8px;
  font-size: 12px;
  flex: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alert Icon */
.alert::before {
  content: '';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

/* Success Alert */
.alert-success {
  background-color: #d4edda;
  border: 1px solid #000000;
  color: #fff;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.alert-success::before {
  content: '\f058';
  /* fa-circle-check */
  color: #fff;
}

/* Danger/Error Alert */
.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #000000d1;
}

.alert-danger::before {
  content: '\f06a';
  /* fa-circle-exclamation */
  color: #dc3545;
}

/* Warning Alert */
.alert-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.alert-warning::before {
  content: '\f071';
  /* fa-triangle-exclamation */
  color: #ffc107;
}

/* Info Alert */
.alert-info {
  background-color: #d4edda;
  border: 1px solid #000000;
  color: #fff;
}

.alert-info::before {
  content: '\f05a';
  /* fa-circle-info */
  color: #ffffff;
}

/* Alert Content */
.alert ul {
  margin: 0;
  padding-left: 20px;
  flex: 1;
}

.alert ul li {
  margin-bottom: 4px;
}

.alert ul li:last-child {
  margin-bottom: 0;
}

/* Remove default margin from last element */
.mb-0 {
  margin-bottom: 0 !important;
}

/* Close button (optional) */
.alert-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-close:hover {
  opacity: 1;
}

/* Modern variant with left border accent */
.alert.alert-modern {
  border-left: 4px solid;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.alert-modern.alert-success {
  border-left-color: #000000;
  background-color: #000;
}

.alert-modern.alert-danger {
  border-left-color: #dc3545;
  background-color: #fef8f8;
}

.alert-modern.alert-warning {
  border-left-color: #ffc107;
  background-color: #fffef8;
}

.alert-modern.alert-info {
  border-left-color: #000000;
  background-color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
  .alert {
    padding: 12px 16px;
    font-size: 13px;
  }

  .alert::before {
    font-size: 16px;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 0px 20px;
  z-index: 1000;
}

.upperarea {
  padding: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logoparent {
  display: flex;
  align-items: center;
}

.header-span {
  height: 35px;
  width: 35px;
  margin-right: 6px !important;
  border-radius: 50%;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.header-span:hover {
  background-color: #cad4de26;
}

.header-span img {
  width: 26px;
  /* opacity: 70%; */
}

.notification i {
  font-size: 20px;
}

.logo {
  cursor: pointer;
  color: #000;
  font-size: 17px;
  font-weight: 500;
  margin-left: 15px;
  display: flex;
  text-decoration: none;
}

.logo img {
  width: 50px;
}

.usersdata {
  display: flex;
  align-items: center;
}

.usersimage {
  cursor: pointer;
  flex: none;
  margin-left: 15px;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  overflow: hidden;
}

.usersimage img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

/* lowerarea------------ */
.lowerarea {
  padding: 15px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.headerformparent {
  width: 400px;
  margin-left: 10px;
}

.headerform {
  border-radius: 5px;
  padding: 0 12px 0 15px;
  width: 100%;
  background-color: #cad4de26;
  display: flex;
  align-items: center;
}

.headerform input {
  border: 0;
  padding: 9px 0;
  flex: 1;
  background-color: transparent;
  outline: 0;
  font-size: 12px;
  font-weight: 500;
}

.headerform button {
  border: 0;
  cursor: pointer;
  outline: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
}

.headerform button i {
  font-size: 15px;
  opacity: 50%;
}

.navlist {
  display: flex;
}

.navlist li {
  list-style: none;
  margin-right: 20px;

}

.navlist li:last-child {
  margin: 0;
}

.navlist li a,
.auth-btns {
  display: block;
  padding: 0 4px;
  text-decoration: none;
  color: #000000ad;
  font-size: 14px;
  position: relative;
  font-weight: 500;
}

.mr-2 {
  margin-right: 10px !important;
}

.mt-0 {
  margin-top: 0px !important;
}


/* Header Actions Container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Base Button Styles - Smaller & Sleeker */
.auth-btns {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Primary Button (Add Post, Sign Up) - Sleek Black */
.btn-primary {
  color: #ffffff;
  background-color: #000000;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Secondary Button (Add Thread) - Subtle Gray */
.btn-secondary {
  color: #374151;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  color: #111827;
  background-color: #f3f4f6;
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* Outline Button (Login) - Clean Border */
.btn-outline {
  color: #374151;
  background-color: transparent;
  border: 1.5px solid #d1d5db;
}

.btn-outline:hover {
  color: #000000;
  background-color: #ffffff;
  border-color: #9ca3af;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-outline:active {
  transform: scale(0.97);
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ef4444;
  color: white;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  padding: 0 5px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

@keyframes pulse-notification {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

/* Notification Icon - Compact & Modern */
.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #f9fafb;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  border: 1px solid #f3f4f6;
}

.header-icon i {
  font-size: 16px;
  color: #6b7280;
  transition: color 0.25s ease;
}

.header-icon:hover {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-icon:hover i {
  color: #374151;
}

.header-icon:active {
  transform: scale(0.95);
}

/* Notification Badge - Smaller & Refined */
.notification::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: none;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.notification.has-notification::after {
  display: block;
  animation: pulse-notification 2s ease-in-out infinite;
}

.notification-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  cursor: pointer;
  background-color: #ffffff;
}

.notification-item:hover {
  background-color: #f9fafb;
  transform: translateX(2px);
}

.notification-item.unread {
  background-color: #eff6ff;
  border-left: 3px solid #3b82f6;
}

.notification-item.read {
  opacity: 0.85;
}

/* Icon Section */
.notification-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.notification-icon i {
  font-size: 18px;
  color: #ffffff;
}

/* Content Section */
.notifications-text {
  flex: 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.noti-link {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-subject strong {
  font-weight: 700 !important;
}

.noti-link-child {
  color: #000;
  font-size: 12px;
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
}

.timestamp {
  color: #000000a1;
  margin-bottom: 0;
}

.notifications-text h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: #1f2937;
}

.user-name {
  font-weight: 600;
  color: #111827;
}

.notification-action {
  font-weight: 400;
  color: #6b7280;
}

.notifications-text p {
  /* margin: 0 0 6px 0; */
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-time {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}

/* Read/Unread Badge */
.read-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* this classes for js */
.nothingfound {
  padding: 20px;
  width: 100%;
  text-align: center;
}

.mt-30 {

  margin-top: 30px !important;
}

.p-0 {

  padding: 0 !important;
}

.nf-other {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.nothingfound h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.nothingfound p {
  font-size: 12px;
  color: #000000b8;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 25px;
}

.nothingfound img {
  width: 230px;
  margin-bottom: 20px;
}

.mt-5 {
  margin-top: 100px !important;
}


/* name bagg  */
.name-bagg {
  color: #fff;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 600;
  /* letter-spacing: 1px; */
  margin-left: 5px;
  border-radius: 5px;
  display: inline-block;
  height: 20px;
  width: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
}

.lp-1 {
  letter-spacing: 1px !important;
}

.golden-bagg {

  color: #000000 !important;
  background-color: #FFC107 !important;
}

/* dark bagg  */
.dark-bagg {
  background-color: #000;
}

.full-badge {
  height: 28px;
  width: 28px;
  font-size: 12px;
}

.featured-bagg {

  margin-left: 1px !important;
  color: #fff !important;
  background-color: #000 !important;
}

.bagg-sm {

  letter-spacing: normal !important;
  font-size: 8px !important;
  height: 16px;
  width: 16px;
}

/* danger bagg  */
.danger-bagg {
  background-color: #f44336;
}

/* blue bagg  */
.blue-bagg {
  background-color: #2196F3;
}

.dark-blue-bagg {
  background-color: #3f51b5;
}

.blue-bagg {
  background-color: #2196F3;
}

.badge-unread {
  background-color: #000000;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(1, 1, 2, 0.3);
}

.badge-read {
  background-color: #e5e7eb;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
  .notification-item {
    padding: 12px;
    gap: 12px;
  }

  .notification-icon {
    width: 38px;
    height: 38px;
  }

  .notification-icon i {
    font-size: 16px;
  }
}

@keyframes pulse-notification {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* User Avatar - Compact */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid #e5e7eb;
  transition: all 0.25s ease;
  margin-left: 2px;
}

.user-avatar:hover {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Header Actions Container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive - Even Smaller on Mobile */
@media (max-width: 768px) {
  .auth-btns {
    padding: 6px 12px;
    font-size: 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-icon {
    width: 32px;
    height: 32px;
  }

  .header-icon i {
    font-size: 14px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
  }
}

.d-block {

  display: block !important;
}

.text-sm {

  font-size: 13px !important;
}

.navlist li a::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #f44336;
  background-color: #000;
}

.navlist li a.activetab::after {
  width: 100%;
}

/* -----------------------onclick features  */
.notification-bar {
  display: none;
  padding: 20px;
  box-shadow: 1px 2px 10px #00000017;
  position: absolute;
  top: 100%;
  background-color: #fff;
  width: 360px;
  right: 20px;
}

.heading {
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heading a {
  color: #000000;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.heading span {
  text-decoration: underline;
  font-size: 11px;
  font-weight: 600;
}

.notifications-parent {
  margin-top: 20px;
}

.notifications {
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
}

.notificatonimage {
  margin: 0;
}

.notifications-text {
  margin-left: 10px;
  color: #000000ad;
}

.notifications-text h3 {
  font-size: 12px;
  /* margin-bottom: 3px; */
  /* font-weight: 500; */
}

.notifications-text h3 span {
  font-weight: 600;
  color: #000;
}

.notifications-text p {
  font-size: 11px;
  font-weight: 500;
}

/* -----------------------------notifications ended here ---------- */
.menu-bar {
  display: none;
  padding: 20px;
  box-shadow: 1px 2px 10px #00000017;
  position: absolute;
  top: 100%;
  color: #000000ad;
  background-color: #fff;
  width: 360px;
  right: 20px;
}

/* class for open bars  */
.open {
  display: block;
}

.profilelink {
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 1px 2px 8px #3f51b524;
}

.profilelink .usersimage {
  margin: 0;
  width: 40px;
  height: 40px;
}

.linktextarea {
  margin-left: 15px;
}

.linktextarea h3 {
  font-size: 13px;
  font-weight: 700;
}

.linktextarea p {
  font-size: 11px;
  font-weight: 600;
}

.links-btns {
  margin-top: 10px;
}

.links-btns a {
  display: block;
  color: #000000ad;
  text-decoration: none;

}

.links {
  padding: 15px 20px;
  display: flex;
  border-bottom: 1px solid #00000054;
  align-items: center;
}

.links i {
  font-size: 16px;
  height: auto;
  opacity: 70%;
  margin-right: 40px;
}

.links p {
  font-size: 14px;
  font-weight: 600;
}

/* -------------------------responsivs css design --------------- */

@media only screen and (max-width:1600px) {
  .headerformparent {
    width: 400px;
  }
}

@media only screen and (max-width:1440px) {
  .headerformparent {
    width: 380px;
  }
}

@media only screen and (max-width:920px) {
  .header {
    padding: 0 10px;
  }

  .lowerarea {
    display: flex;
    flex-direction: column;
  }

  .navbar {
    align-self: flex-start;
  }

  .headerformparent {
    align-self: flex-start;
  }

  .navlist {
    margin-top: 20px;
    margin-left: 10px;
  }
}

@media only screen and (max-width:620px) {
  .lowerarea {
    margin-top: 10px;
  }
}

@media only screen and (max-width:540px) {
  .headerformparent {
    width: 100%;
    align-self: center;
  }
}

@media only screen and (max-width:440px) {
  .upperarea {
    flex-direction: column;
    flex: none;
    width: 370px;
  }

  .headerformparent {
    width: 370px;
  }

  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .headerformparent {
    margin: 0;
  }

  .navlist {
    margin-left: 0;
  }

  .navlist li a {
    font-size: 13px;
  }
}

.w-100 {

  width: 100% !important;
}

.follow-btn {
  position: relative;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  min-width: 120px;
  margin-left: 20px;
  justify-content: center;
}

.btn-loader {
  position: relative;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50px;
  cursor: not-allowed;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  min-width: 120px;
  margin-left: 20px;
  justify-content: center;
  opacity: 0.7;
}

.btn-loader::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #000;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

.mb-20 {

  margin-bottom: 20px !important;
}

.btn-loader span {
  opacity: 0;
}

.btn-loader .icon-circle {

  display: none !important;
}

@keyframes btn-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.mt-15 {
  margin-top: 20px !important;
}

.mb-15 {
  margin-bottom: 15px !important;
}

.mb-40 {
  margin-bottom: 40px !important;
}

.follow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.follow-btn:active {
  transform: scale(0.95);
}

/* Icon circle background */
.follow-btn .icon-circle {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 28px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.follow-btn i {
  color: #fff;
  font-size: 12px;
  transition: all 0.3s ease;
}

.follow-btn .text {
  margin-left: 36px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

/* Following state - icon circle expands to fill button */
.follow-btn.following .icon-circle {
  width: 100%;
  height: 100%;
  left: 0;
  border-radius: 50px;
}

.follow-btn.following {
  color: #fff;
}

.follow-btn.following .text {
  margin-left: 0;
  position: relative;
  z-index: 3;
}

/* Icon swap animation */
@keyframes iconSwap {
  0% {
    transform: rotateY(0deg) scale(1);
  }

  50% {
    transform: rotateY(90deg) scale(0.5);
  }

  100% {
    transform: rotateY(0deg) scale(1);
  }
}

.follow-btn.swap i {
  animation: iconSwap 0.5s ease;
}

/* Particles effect */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #000;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes particleBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--x), var(--y)) scale(0);
    opacity: 0;
  }
}

.particle.burst {
  animation: particleBurst 0.6s ease-out forwards;
}

/* Text morphing effect */
.follow-btn .text {
  position: relative;
  display: inline-block;
}

@keyframes textMorph {

  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }

  50% {
    transform: scaleX(0.8);
    opacity: 0.5;
  }
}

.follow-btn.morph .text {
  animation: textMorph 0.4s ease;
}

/* Magnetic hover effect */
.follow-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.follow-btn-sm {

  padding: 9px 0px !important;
  font-size: 12px !important;
  min-width: 96px !important;
  margin-left: 15px !important;
}

.follow-btn-sm i {
  font-size: 10px;
}