/* ===== My Friends List (scoped) ===== */
.my-friends-list {
  --card: #1a1b21;
  --muted: #b8b8c7;
  --text: #ffffff;
  --online: #0fd976;
  --away: #ffd166;
  --offline: #8a8f98;
  --grad-1: #6a11cb;
  --grad-2: #b91372;
  background: var(--bg);
  border-radius: 6px;
  padding: 0; /* removed padding */
  margin: 0; /* removed margin */
}

.my-friends-list .friends-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.my-friends-list h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.my-friends-list .toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
   width: 100%;
}

.my-friends-list .search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto; /* allow search to expand and fill available space */
}

.my-friends-list .search input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 10px 36px 10px 12px;
  border-radius: 999px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.my-friends-list .search input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.25);
}

.my-friends-list .search .icon {
  position: absolute;
  right: 10px;
  font-size: 1rem;
  opacity: 0.8;
  pointer-events: none;
}

.my-friends-list select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: black;
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
}

.my-friends-list .friends {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.my-friends-list .friend {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  background: linear-gradient(
        90deg,
        rgba(106, 17, 203, 0.18),
        rgba(185, 19, 114, 0.18)
      )
      border-box,
    var(--card);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.my-friends-list .friend:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  background: linear-gradient(
        90deg,
        rgba(106, 17, 203, 0.28),
        rgba(185, 19, 114, 0.28)
      )
      border-box,
    var(--card);
}

.my-friends-list .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

.my-friends-list .info {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.my-friends-list .name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-friends-list .name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-friends-list .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.my-friends-list .status-dot.online {
  background: var(--online);
}
.my-friends-list .status-dot.away {
  background: var(--away);
}
.my-friends-list .status-dot.offline {
  background: var(--offline);
}

.my-friends-list .meta {
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}
.my-friends-list .flag {
  font-size: 1.05rem;
}

.my-friends-list .btn {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.my-friends-list .btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 14px rgba(106, 17, 203, 0.35);
}
.my-friends-list .btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Responsive */
@media (max-width: 520px) {
  .my-friends-list .toolbar {
    width: 100%;
  }
  .my-friends-list .search input {
    min-width: 0;
    width: 100%;
  }
  .my-friends-list select {
    flex: none;
  }
  .my-friends-list .btn {
    padding: 8px 12px;
  }
}

/* Content 2 container */
#content2 {
  background: linear-gradient(145deg, #111, #1e1e2f);
  padding: 20px;
  border-radius: 12px;
  color: #eee;
  min-height: 300px;
}

/* Title */
#content2 h3 {
  color: #c084fc; /* purple */
  font-size: 1.6rem;
  margin-bottom: 15px;
  text-align: center;
}

/* Search + filter row */
#content2 input[type="text"],
#content2 select {
  background: #222;
  border: 1px solid #333;
  color: #ddd;
  padding: 10px;
  margin: 5px;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

#content2 input[type="text"]:focus,
#content2 select:focus {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

#myFriendsList2 {
  list-style: none; /* remove default bullets */
  padding: 0;
  margin: 0 auto; /* center the ul horizontally */
  display: flex;
  flex-direction: column; /* keep items stacked vertically */
  align-items: center; /* center items horizontally */
  gap: 20px; /* optional spacing between friends */
}

/* Friend item layout with old colors */
#myFriendsList2 .friend {
  display: flex;
  align-items: center;
  background: #1a1a1a; /* dark background */
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  width: 100%; /* fixed width for better centering */
  justify-content: space-between; /* space between info and button */
}

/* Avatar */
.friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Info */
.friend-info {
  flex-grow: 1;
  color: #fff;
  font-size: 0.9rem;
}

.friend-name {
  font-weight: bold;
  display: block;
  margin-bottom: 2px;
}

.friend-location {
  font-size: 0.8rem;
  color: #bbb;
  display: block;
  margin-bottom: 4px;
}

/* Status */
.friend-status {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.friend-status.online {
  color: #4caf50;
}

.friend-status.offline {
  color: #f44336;
}

/* Add Friend button */
.add-friend-btn {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.add-friend-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.5);
}

/* Limit the max width for small screens and enable smooth scrolling */
/* New users wrapper */
.new-users-wrapper {
  width: 100%; /* Full width */
  max-width: 100vw; /* Ensure it doesn't exceed viewport */
}

/* Flex container for cards */
.new-users-wrapper .d-flex {
  gap: 0.75rem; /* or whatever gap you want */
  flex-wrap: nowrap; /* Keep horizontal scroll */
}

/* User card */
.user-card {
  flex-shrink: 0; /* Don't let cards shrink */
  width: 90px; /* Fixed width for cards */
}

/* Optional: hide horizontal scrollbar on WebKit */
.new-users-wrapper .d-flex::-webkit-scrollbar {
  display: none;
}

/* Ensure user cards don't shrink too much */
.user-card {
  flex-shrink: 0;
}

/* Horizontal scrollbar styling */
.new-users-wrapper::-webkit-scrollbar {
  height: 6px;
}
.new-users-wrapper::-webkit-scrollbar-thumb {
  background: #7873f5;
  border-radius: 4px;
}
.new-users-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .user-card h6 {
    font-size: 0.7rem !important;
  }
  .user-card small {
    font-size: 0.6rem !important;
  }
  .user-card {
    width: 80px !important;
  }
  .user-card img {
    width: 60px !important;
    height: 60px !important;
  }
  .user-card button {
    font-size: 0.6rem !important;
  }
}

.gradient-purple {
  background: linear-gradient(90deg, #8e2de2, #4a00e0);
  color: white;
  font-weight: 500;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gradient-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 0, 224, 0.5);
}

/* Inbox list wrapper */
.inbox-list {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  padding: 12px;
  color: black;
}

/* Each inbox item */
.inbox-item {
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}
.inbox-item:hover {
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  transform: translateY(-2px);
  color: #fff;
}

/* Avatar gradient border */
.avatar-wrapper {
  padding: 3px;
  background: linear-gradient(135deg, #9d50bb, #6e48aa);
  border-radius: 50%;
}
.avatar {
  border: 2px solid #fff;
}

/* Purple text highlight */
.text-purple {
  color: #6e48aa;
  font-weight: 500;
}

.inbox-list .status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* Desktop: show up to 10 users */
@media (min-width: 992px) {
  .user-card:nth-child(n + 11) {
    display: none;
  }
}

/* Optional: keep overflow scroll for small screens */
.d-flex.overflow-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Top: Modal Overlay
   This styles the overlay background for the modal in the see-new-globys component.
   - The modal is hidden by default (display: none).
   - Positioned fixed to cover the entire viewport (top: 0; left: 0; width & height 100%).
   - Semi-transparent black background (rgba(0,0,0,0.7)) to dim the page content.
   - Uses flexbox to center the modal content both vertically and horizontally.
   - High z-index ensures it appears above all other content.
*/
.see-new-globys .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Step: Modal Content */
.see-new-globys .modal-content {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  border-radius: 1rem;
  padding: 1rem;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  color: white;
}

/* Step: Modal Header */
.see-new-globys .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.see-new-globys .close-btn {
  cursor: pointer;
  font-size: 1.5rem;
}

/* Step: Modal Body */
.see-new-globys .modal-body {
  overflow-y: auto;
  flex: 1;
}

/* Step: Wrapper Class */
.new-globys-wrapper {
  margin-bottom: 25px; /* slightly reduced spacing */
}

/* Step: Friend Card */
.new-globys-card {
  background: linear-gradient(145deg, #2e2e2e, #3a0ca3);
  border-radius: 15px;
  padding: 15px; /* reduced padding for smaller card */
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.new-globys-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(58, 12, 163, 0.5);
}

/* Step: Friend Thumbnail */
.new-globys-card img {
  width: 80px; /* reduced from 100px */
  height: 80px; /* reduced from 100px */
  margin-bottom: 10px;
}

/* Step: Gradient Button */
.btn-gradient {
  background: linear-gradient(45deg, #6a0dad, #ff00ff);
  color: #fff;
  border: none;
}
.btn-gradient:hover {
  background: linear-gradient(45deg, #ff00ff, #6a0dad);
}

/* Step: Search Bar */
.search-bar input {
  border-radius: 50px;
  padding: 10px 20px;
  border: none;
  width: 100%;
  max-width: 500px;
  background: #2e2e2e;
  color: #fff;
}
.search-bar input::placeholder {
  color: #bbb;
}

/* Step: Country Badge */
.country-badge {
  display: inline-block;
  background: #6a0dad;
  color: #fff;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

/* Step: Online Status */
.status-dot {
  width: 10px; /* slightly smaller */
  height: 10px; /* slightly smaller */
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.see-new-globys .online {
  background-color: #00ff00;
}
.see-new-globys .offline {
  background-color: #ff0000;
}

/* Step: Status & Name */
.status-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 5px;
}

/* Top: Fancy Gradient Title
   This styles a large, uppercase gradient title with a glowing effect.
   - Uses a linear gradient text fill.
   - Glow effect applied via ::after pseudo-element.
   - Centered horizontally using margin auto and text-align center.
*/
.fancy-title {
  font-size: 3rem; /* Bigger title */
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff00ff, #6a0dad, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;

  /* Centering */
  display: block; /* Make title block-level */
  text-align: center; /* Center text inside the block */
  margin: 0 auto 2rem auto; /* Center horizontally with bottom margin */
}

/* Glow effect */
.fancy-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%; /* Start at horizontal center */
  transform: translateX(-50%); /* Align glow exactly behind the text */
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(8px);
  opacity: 0.6;
  z-index: -1;
}

/* Optional animation for gradient movement */
@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.fancy-title {
  background-size: 200% 200%;
  animation: gradient-move 5s ease infinite;
}

/* End of see-new-globys CSS */

/* Top: Parent Wrapper
   This styles the overall modal background for mutual friends.
   - Applies a gradient background and no border radius.
*/
.mutual-friends-modal {
  background: linear-gradient(135deg, #1a1a2e, #162447, #1f4068);
  border-radius: 0;
}

/* Step: Card Wrapper
   This wraps all friend cards inside the modal and adds bottom spacing.
*/
.mutual-friends-wrapper {
  margin-bottom: 25px;
}

/* Step: Friend Card
   Styles individual friend cards with gradient, padding, and hover effect.
   - Smooth transform and shadow on hover.
*/
.mutual-friends-card {
  background: linear-gradient(145deg, #2e2e2e, #162447);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.mutual-friends-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(22, 36, 71, 0.5);
}

/* Step: Card Thumbnail
   Styles the image inside each friend card.
   - Fixed size and spacing below the image.
*/
.mutual-friends-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

/* Step: Gradient Button
   Applies gradient styling to buttons inside friend cards.
   - Changes gradient on hover for effect.
*/
.mutual-friends-card .btn-gradient {
  background: linear-gradient(45deg, #1f4068, #00bfff);
}
.mutual-friends-card .btn-gradient:hover {
  background: linear-gradient(45deg, #00bfff, #1f4068);
}

/* Step: Country Badge
   Styles country label badges inside friend cards.
*/
.mutual-friends-card .country-badge {
  background: #1f4068;
}

/* Step: Status Dot
   Styles online/offline indicators inside friend cards.
   - Small colored dot with spacing.
*/
.mutual-friends-card .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.mutual-friends-card .online {
  background-color: #00ff00;
}
.mutual-friends-card .offline {
  background-color: #ff0000;
}

/* End: Mutual Friends Card Styles */

/* =======================
   Full-Screen Modal Gradient
   ======================= */
.user-modal {
  background: linear-gradient(135deg, #112a5f 0%, #550343 100%);
  color: white; /* Ensures text is readable */
}

/* =======================
   General Dark Card
   ======================= */
.dark-card {
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* =======================
   Profile Card Customization
   ======================= */
.profile-card {
  background: linear-gradient(135deg, #2a2a2a, #3d0f5f);
  border-radius: 10px;
  color: white;
}

.avatar-img {
  background: linear-gradient(45deg, #8e2de2, #4a00e0);
  padding: 3px;
}

/* =======================
   List Group Dark Mode
   ======================= */
.list-group-item {
  background: transparent;
  color: #ccc;
}

.list-group-item.active {
  background: linear-gradient(90deg, #8e2de2, #4a00e0);
  border-color: #4a00e0;
  color: #fff;
}

/* =======================
   Table Styling
   ======================= */
.table-dark th,
.table-dark td {
  border-color: #333;
  vertical-align: middle;
}

/* =======================
   Gradient Badges
   ======================= */
.badge-purple {
  background: linear-gradient(90deg, #8e2de2, #4a00e0);
  color: #fff;
}

/* =======================
   Timeline
   ======================= */
.timeline {
  list-style: none;
  padding-left: 0;
}

.timeline li {
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8e2de2;
}

.timeline li.active::before {
  background: #4a00e0;
}

.text-purple {
  color: #8e2de2;
}

/* =======================
   User Stats Gradient Cards
   ======================= */
.user-stats .gradient-card {
  background: linear-gradient(135deg, #6a11cb 0%, #50023c 100%);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
  cursor: pointer;
}

.user-stats .count {
  font-size: 1rem;
  font-weight: bold;
}

.user-stats .label {
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.8;
}

/* =======================
   End of User Profile Styles
   ======================= */

.gradient-modal {
  background: linear-gradient(135deg, #252966 0%, #490246 100%);
  color: white;
  overflow-y: auto;
}

