/* Admin rank styling */
.adm {
  color: #a361e0;
  font-weight: bold;
}

/* Moderator rank styling */
.mod {
  color: #00c787;
  font-weight: bold;
}

/* Designer rank styling */
.des {
  color: #e62626;
  font-weight: bold;
}

/* Online list container */
.online-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.online-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2.5em;
  border-bottom: 3px solid #ddd;
  padding-bottom: 10px;
}

/* Section styling */
.staff-section, .users-section {
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #444;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

.count {
  color: #666;
  font-weight: normal;
}

/* Online users container */
.online-users {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

/* User tag styling - similar to blog tagtext */
.user-tag {
  text-decoration: none;
  display: inline-block;
  margin: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.user-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tagbox {
  display: inline-flex;
  align-items: center;
  border-radius: 15px;
  padding: 8px 12px;
  margin: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tagbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.user-tag:hover .tagbox::before {
  left: 100%;
}

.tagtext {
  font-weight: bold;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  z-index: 1;
  position: relative;
}

.flame-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* Staff-specific styling */
.staff-tag .tagbox {
  border: 2px solid rgba(255,255,255,0.5);
  opacity: 0.95 !important;
}

.staff-tag:hover .tagbox {
  opacity: 1 !important;
  transform: scale(1.05);
}

/* Member-specific styling */
.member-tag:hover .tagbox {
  opacity: 0.95 !important;
  transform: scale(1.02);
}

/* No users message */
.no-users {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 5px;
}

/* Total count styling */
.total-count {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: #e8f4f8;
  border-radius: 8px;
  font-size: 1.1em;
}

/* Responsive design */
@media (max-width: 768px) {
  .online-container {
    margin: 10px;
    padding: 15px;
  }
  
  .online-container h1 {
    font-size: 2em;
  }
  
  .online-users {
    justify-content: center;
  }
  
  .tagbox {
    padding: 6px 10px;
  }
  
  .tagtext {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .online-container {
    margin: 5px;
    padding: 10px;
  }
  
  .online-container h1 {
    font-size: 1.5em;
  }
  
  .section-title {
    font-size: 1.2em;
  }
  
  .staff-section, .users-section {
    padding: 15px;
  }
  
  .tagbox {
    padding: 5px 8px;
  }
  
  .tagtext {
    font-size: 12px;
  }
  
  .flame-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }
}
