#friendsContainer {
  padding: 24px;
  overflow-y: auto;
}

#homeButton {
  top: 87px;
  left: 25px;
  z-index: 1;
  color: white;
  background: #1d1d1d;
  padding: 6px 6px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s, transform 0.1s;
  white-space: nowrap;
  width: auto;
  text-align: center;
  box-sizing: content-box;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  position: fixed;
}

#homeButton:hover {
  background: black;
}

#homeButton:active {
  transform: scale(0.96);
}

.friends-row {
  display: flex;
  gap: 16px;
  margin: 30px auto;
  padding-right: 0px;
  margin-top: 265px;
  flex-wrap: wrap;
}

.friends-row-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.friend-box {
  padding: 12px 12px;
  /* color: white; */
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  /* min-width: 250px;
  max-width: 280px; */
}

#usersData {
  display: flex;
  justify-content: center;
  padding-left: 0px;
  padding-right: 0px;
  margin-top: 130px;
  font-size: 18px;
  color: #ffffff;
}

.status-tabs-container {
  display: flex;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 25px;
  z-index: 1;
}

/* 1. APPROVED/FRIENDS Tab (Green) */
.tab-btn.active-tab[data-tab="approved"] {
  background-color: white;
  /* Dark Green fill */
  color: #333;
  box-shadow: 0 0 8px rgba(3, 231, 56, 2.6);
  /* Green glowing shadow */
}

/* 2. PENDING Tab (Yellow/Orange) */
.tab-btn.active-tab[data-tab="pending"] {
  background-color: white;
  /* Orange fill */
  color: #333;
  /* Dark text for contrast against bright yellow/orange */
  box-shadow: 0 0 8px rgba(255, 193, 7, 2.6);
  /* Yellow/Orange glowing shadow */
}

/* 3. REJECTED Tab (Red) */
.tab-btn.active-tab[data-tab="rejected"] {
  background-color: white;
  /* Red fill */
  color: #333;
  box-shadow: 0 0 8px rgba(220, 53, 69, 2.6);
  /* Red glowing shadow */
}

/* Base Styling */
.friend-item {
  display: flex;
  justify-content: space-between;
  /* Pushes name to left, actions to right */
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-family: Arial, sans-serif;
}

.friend-item:hover {
  background-color: #f5f5f5;
  /* Slight hover effect */
}

.friend-name {
  font-weight: bold;
  font-size: 16px;
  min-width: 180px;
  max-width: 280px;
}

.friend-actions button {
  padding: 6px 12px;
  /* margin-left: 8px; */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s, background-color 0.2s;
  margin-right: 6px;
}

.friend-actions button:last-child {
  margin-right: 0;
  /* clean edge */
}

.friend-actions button:hover {
  opacity: 0.9;
}

.status-approved {
  border-left: 5px solid #28a745;
  /* Green border on the side */
  background-color: #e6ffed;
  /* Very light green background */
}

/* Styles for the APPROVED action buttons */
.status-approved .action-delete {
  background-color: #dc3545;
  /* Red for deletion */
  color: white;
}

.status-approved .action-reject {
  background-color: #0a57fc;
  /* Gray for "Change to Rejected" */
  color: white;
}

.status-pending {
  border-left: 5px solid #ffc107;
  /* Yellow/Orange border on the side */
  background-color: #fff9e6;
  /* Very light yellow background */
}

/* Styles for the PENDING action buttons */
.status-pending .action-approve {
  background-color: #28a745;
  /* Green for approval (primary action) */
  color: white;
  font-weight: bold;
}

.status-pending .action-reject {
  background-color: #0a57fc;
  /* Gray for rejection */
  color: white;
}

.status-pending .action-delete {
  background-color: #dc3545;
  /* Blue for direct deletion (a neutral, non-status-changing action) */
  color: white;
}


.status-rejected {
  border-left: 5px solid #dc3545;
  /* Red border on the side */
  background-color: #fdeaea;
  /* Very light red/pink background */
  color: #555;
  /* Slightly muted text color */
}

/* Styles for the REJECTED action buttons */
.status-rejected .action-delete {
  background-color: #dc3545;
  /* Red for the only remaining action */
  color: white;
  font-weight: bold;
}

.friend-actions-menu-toggle,
.friend-actions-menu {
  display: none;
}



.add-friend-bar {
  display: flex;
  gap: 5px;
  /* margin-bottom: 25px; */
  margin-top: 200px;
  padding: 8px;
  background-color: #2c2c2c;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  position: fixed;
  z-index: 200;
width: 25%;
}

.add-friend-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  background-color: #3d3d3d;
  color: #fff;
  font-size: 16px;
  outline: none;
  width: 25%;
}

.add-friend-input::placeholder {
  color: #a0a0a0;
}

.add-friend-input:focus {
  background-color: #4a4a4a;
  box-shadow: 0 0 0 2px #28a745;
  /* Light green border on focus */
}

.add-friend-button {
  background-color: #28a745;
  /* Action color: Green */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.2s, box-shadow 0.2s;
  line-height: 1;
}

.add-friend-btn:hover {
  background-color: #34b752;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}



@media (max-width: 480px) {

  /* Outer section or container */
  #friendsContainer {
    padding: 14px;
    -webkit-overflow-scrolling: touch;
    /* smooth scroll on iOS */
    margin-inline: 0;
    overflow-y: unset;
  }

  #homeButton {
    font-size: 12px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s, transform 0.1s;
    white-space: nowrap;
    width: auto;
    text-align: center;
    box-sizing: content-box;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: fixed;
    margin-top: -17px;
    margin-left: -11px;
  }

  .friends-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0px;
    margin-top: 250px;
    padding-left: 2px;
    padding-right: 0px;
    text-align: start;
    flex-direction: column;
    width: 100%;
    z-index: 0;
  }

  /* Each league box */
  .friend-box {
    padding: 6px 14px;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
  }

  .friends-row-item {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
    margin-right: 0px;
  }

  #usersData {
    display: flex;
    justify-content: center;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 100px;
    font-size: 14px;

  }

  .friend-name {
    font-weight: bold;
    font-size: 14px;
    min-width: 250px;
    max-width: 350px;
  }



  .friend-actions button {
    display: none;
  }

  /* Hamburger (⋮) icon */
  .friend-actions-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: var(--btn-bg, #222);
    /* match your existing button bg */
    color: var(--btn-fg, #fff);
    /* match your existing button color */
    cursor: pointer;
    font-size: 22px;
  }

  .friend-actions-menu-toggle:active {
    transform: scale(0.96);
  }

  /* Dropdown container */
  .friend-actions-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* spacing between buttons */
    position: absolute;
    right: 8px;
    top: 44px;
    padding: 10px;
    border-radius: 12px;
    background: var(--menu-bg, #1a1a1a);
    /* same tone as your dark theme */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    min-width: 80px;
  }

  .friend-actions-menu.open {
    opacity: 1;
    pointer-events: auto;
    /* transform: translateY(0); */
  }

  /* Menu items mimic your existing buttons */
  .friend-actions-menu .menu-item {
    padding: 6px 12px;
    /* margin-left: 8px; */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: sans-serif;
    transition: opacity 0.2s, background-color 0.2s;
  }

  /* Optional: per-action colors if your desktop had them */
  .menu-item.action-approve {
    background: #2e7d32;
    /* green */
  }

  .menu-item.action-reject {
    background: #0a57fc;
    /* red */
  }

  .menu-item.action-delete {
    background: #b71c1c;
    /* gray delete */
  }

  .add-friend-bar {
    display: flex;
    flex-wrap: wrap;
    margin-top: 190px;
    left: 15px;
    right: 0px;
    width: 90%;
  }

  .add-friend-input {
  flex-grow: 1;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background-color: #3d3d3d;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.add-friend-input::placeholder {
  color: #a0a0a0;
}

.add-friend-input:focus {
  background-color: #4a4a4a;
  box-shadow: 0 0 0 2px #28a745;
  /* Light green border on focus */
}

.add-friend-button {
  background-color: #28a745;
  /* Action color: Green */
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.2s, box-shadow 0.2s;
  line-height: 1;
}

.add-friend-btn:hover {
  background-color: #34b752;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}
}