body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #222;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.club-container {
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid #2980b9;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(255, 156, 0, 0.3);
  padding: 40px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
  margin-top: 80px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

h1 {
  color: #2980b9;
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #ffa500;
  font-size: 1.5rem;
  border-bottom: 2px solid #ffc149;
  padding-bottom: 10px;
  margin-top: 30px;
}

.membership-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.member-count, .today-count {
  background-color: #fff6e0;
  color: #ff8c00;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(255, 156, 0, 0.2);
}

.today-count {
  background-color: #ffecb3;
}

button#joinButton {
  background: linear-gradient(to right, #ffc107, #ff9800);
  color: white;
  border: none;
  padding: 15px 35px;
  margin: 15px 0;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 156, 0, 0.3);
}

button#joinButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 156, 0, 0.4);
  background: linear-gradient(to right, #ffcd38, #ffa726);
}

button#joinButton:active {
  transform: translateY(1px);
}

.member-list {
  background-color: #fff6e0;
  border-radius: 15px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
}

#memberList {
  list-style-type: none;
  padding: 0;
  text-align: left;
}

#memberList li {
  padding: 12px 15px;
  margin-bottom: 8px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  border-left: 4px solid #ffc107;
  position: relative;
  display: flex;
  align-items: center;
}

#memberList li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.delete-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.delete-button:hover {
  background-color: #ffecb3;
  transform: scale(1.1);
}

.member-info {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.member-name {
  font-weight: bold;
}

.member-role {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 2px;
  max-width: 80px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-button {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  margin-right: 5px;
  border: none;
  font-weight: bold;
  transition: all 0.2s;
}

.role-button.promote {
  background-color: #4CAF50;
  color: white;
}

.role-button.demote {
  background-color: #f44336;
  color: white;
}

.role-button:hover {
  transform: scale(1.1);
}

.role-controls {
  display: flex;
  margin-right: 10px;
}

.president {
  background-color: #2c3e50;
  color: white;
}

.representative {
  background-color: #34495e;
  color: white;
}

.citizen {
  background-color: #3498db;
  color: white;
}

.dotalead {
  background-color: #8e44ad;
  color: white;
}

.ftos-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(255, 156, 0, 0.3);
  padding: 40px;
  width: 80%;
  max-width: 600px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.ftos-content {
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
  padding: 15px;
  background-color: #fff6e0;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ftos-content p {
  margin-bottom: 15px;
}

.ftos-content::-webkit-scrollbar {
  width: 8px;
}

.ftos-content::-webkit-scrollbar-track {
  background: #fff6e0;
  border-radius: 10px;
}

.ftos-content::-webkit-scrollbar-thumb {
  background: #ffc107;
  border-radius: 10px;
}

.chat-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(255, 156, 0, 0.3);
  padding: 40px;
  width: 80%;
  max-width: 600px;
  margin-top: 50px;
  margin-bottom: 50px;
  position: relative;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.chat-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  background-color: rgba(255, 246, 224, 0.5);
  border-radius: 10px;
}

.lock-icon-container {
  width: 80px;
  height: 80px;
  background-color: #ffa500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lock-icon {
  width: 40px;
  height: 40px;
}

.lock-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff8c00;
}

.chat-area {
  display: none;
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  background-color: #fff6e0;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.chat-input-area {
  display: flex;
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
  padding: 12px;
  border: 2px solid #ffc107;
  border-radius: 50px;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.chat-input-area button {
  background: linear-gradient(to right, #ffc107, #ff9800);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-input-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 156, 0, 0.3);
}

.clear-chat-button {
  background: linear-gradient(to right, #ff9800, #f44336);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(255, 156, 0, 0.3);
}

.clear-chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 156, 0, 0.4);
}

.message {
  margin-bottom: 12px;
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  position: relative;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message .username {
  font-weight: bold;
  color: #ff8c00;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.message .username img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}

.chat-user-name {
  margin-right: 8px;
}

.chat-user-role {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 8px;
  color: white;
  margin-left: auto;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #fff6e0;
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #ffc107;
  border-radius: 10px;
}

.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(to right, #ffc107, #ff9800);
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(255, 156, 0, 0.4);
  font-weight: bold;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.notification.hide {
  opacity: 0;
}