/* Friend Section Sidebar */
#friendSection {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 100vh;
  background: linear-gradient(to bottom, var(--background-color), var(--primary-color), var(--gradient-mid));
  backdrop-filter: blur(8px);
  color: #f5f5f5;
  z-index: 20;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#friendSection.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Container - no box look */
.friend-container {
  padding: 0;
  margin: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: inherit;
}

/* Header */
.friend-header {
  padding: 16px 20px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 179, 0.5);
  position: sticky;
  top: 0;
  z-index: 1;
}

.friend-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

/* Content Area */
.friend-content {
  padding: 20px;
}

.friend-content p {
  margin-bottom: 10px;
}

/* Invite Link Input */
#inviteLink {
  width: 90%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Copy & Claim Buttons */
.copy-btn {
  background-color: #00bfa5;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin-bottom: 16px;
  width: 30%;
  text-align: center;
}

.copy-btn:hover {
  background-color: #009e8a;
}

/* Referral Section */
.referral-list {
  max-height: 150px; /* Control height for scrolling */
    overflow-y: auto; /* Enable scrolling */
    padding-right: 5px;
    scrollbar-width: thin; /* Firefox scrollbar */
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.referral-list h4 {
  margin-bottom: 8px;
}

#referralMessage {
  color: #ccc;
  font-style: italic;
}

/* Referral Table */
.referral-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.05);
}

.referral-table th,
.referral-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.referral-table th {
  font-weight: bold;
  color: #00ffd0;
}

/* Referral Summary */
#referralCount,
#referralEarnings {
  font-weight: bold;
  color: #00e676;
}

/* Claim Message */
#claimMessage {
  font-size: 14px;
  margin-top: 8px;
}