/* Import Google Font for a modern look */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styling */
html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  background: #36393F; /* Discord dark background */
  color: #fff;
}

/* Container for sidebar and chat section */
.container {
  display: flex;
  height: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Channel List Sidebar */
#channelList {
  background: #2F3136;
  width: 200px;
  padding: 20px;
  overflow-y: auto;
}

#channelList ul {
  list-style: none;
}

#channelList li {
  padding: 10px;
  margin-bottom: 5px;
  background: #202225;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#channelList li:hover,
#channelList li.active {
  background: #5865F2;
  color: #fff;
}

/* Chat Section */
#chatSection {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 20px;
  background: #2F3136;
  border: 1px solid #202225;
  border-radius: 4px;
  overflow: hidden;
}

/* Chat Box */
#chatBox {
  flex: 1;
  padding: 15px;
  height: 60vh; /* Ensures fixed height */
  overflow-y: auto;
  border-bottom: 1px solid #202225;
}

/* Auto-scroll fix: make sure new messages are visible */
#chatBox p {
  margin-bottom: 10px;
}

/* Input area for messages */
.chat-input-container {
  display: flex;
  padding: 15px;
  background: #202225;
}

#messageInput {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #202225;
  border-radius: 4px;
  background: #2F3136;
  color: #fff;
}

button {
  padding: 10px 16px;
  margin-left: 10px;
  background: #5865F2;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #4752c4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  #channelList {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }
  #channelList ul {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  #chatSection {
    margin: 10px;
  }
}



/* Countdown Banner */
#countdownBanner {
  background: #4a90e2;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}
