body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #1e1f22;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-box {
  background: #2b2d31;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 300px;
}

.auth-box h1 {
  margin-bottom: 10px;
}

.auth-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 5px;
  background: #383a40;
  color: white;
  font-size: 14px;
}

.auth-box button {
  width: 100%;
  padding: 10px;
  background: #5865f2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 10px;
}

.auth-box button:hover {
  background: #4752c4;
}

.switch {
  margin-top: 15px;
  font-size: 13px;
}

.switch a {
  color: #5865f2;
  text-decoration: none;
}

.switch a:hover {
  text-decoration: underline;
}
/* --- App Layout --- */
.app {
  display: flex;
  height: 100vh;
  background-color: #313338;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

/* --- Server Bar --- */
.server-bar {
  width: 80px;
  background-color: #1e1f22;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  gap: 10px;
}

.server {
  width: 50px;
  height: 50px;
  background-color: #5865f2;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
}

.server:hover {
  background-color: #4752c4;
}

/* --- Sidebar (Friends) --- */
.sidebar {
  width: 250px;
  background-color: #2b2d31;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #202225;
}

.sidebar-header h2 {
  font-size: 18px;
}

#logout-btn {
  background: #f04747;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}

#logout-btn:hover {
  background: #d13b3b;
}

#friend-list {
  list-style: none;
  padding: 10px;
  margin: 0;
}

#friend-list li {
  padding: 8px;
  margin: 4px 0;
  border-radius: 5px;
  background: #383a40;
  cursor: pointer;
}

#friend-list li:hover {
  background: #4f545c;
}

/* --- Chat Section --- */
.chat {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid #202225;
  background: #2b2d31;
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  background: #383a40;
  padding: 10px;
  border-radius: 8px;
  max-width: 70%;
}

/* --- Message Input --- */
#message-form {
  display: flex;
  background: #2b2d31;
  padding: 10px;
  border-top: 1px solid #202225;
}

#message-input {
  flex-grow: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #383a40;
  color: white;
}

#message-form button {
  margin-left: 10px;
  background: #5865f2;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
}

#message-form button:hover {
  background: #4752c4;
}

