
:root {
  --bg-color: #111;
  --text-color: #fff;
  --accent-color: #7700e7;
  --secondary-color: #444;
  --hover-color: #666;
  --background-color: #111;
  --modal-bg-color: #181818;
  --input-bg-color: #222;
  --text-color: #fff;
  --muted-text-color: #888;
  --border-radius: 10px;
  --transition-duration: 0.3s;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="lightblue"] {
  --bg-color: #111;
  --text-color: #fff;
  --accent-color: #00aaff;
}

[data-theme="green"] {
  --bg-color: #111;
  --text-color: #fff;
  --accent-color: #00ff4c;
}

[data-theme="orange"] {
  --bg-color: #111;
  --text-color: #fff;
  --accent-color: #ff7300;
}

[data-theme="blue"] {
  --bg-color: #111;
  --text-color: #fff;
  --accent-color: #0800ff;
}

[data-theme="red"] {
  --bg-color: #111;
  --text-color: #fff;
  --accent-color: #cb2121;
}

[data-theme="pink"] {
    --bg-color: #111;
    --text-color: #fff;
    --accent-color: #FF88D0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ensures space between logo and other content */
  padding: 10px 0px; /* Optional: Add padding */
}

.logo {
  margin-right: auto; /* This ensures it stays on the left */
  max-width: 150px; /* Optional: Restrict max size for responsiveness */
}
.modal {
  border: 1px solid var(--accent-color);
  padding: 1rem;
  width: 100%;
  max-width: 20rem;
  text-align: center;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 100;
  color: var(--text-color);
  margin-top: -100px;
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.modal button.btn {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 0.5rem;
  transition: background-color var(--transition-duration);
}

.modal button.btn:hover {
  background-color: var(--hover-color);
}

.modal input,
.modal select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  margin-bottom: 1rem;
  background-color: var(--input-bg-color);
  color: var(--text-color);
}

.modal input::placeholder {
  color: var(--muted-text-color);
}

.modal-content {
  background-color: var(--modal-bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-picture {
  position: relative;
  cursor: pointer;
  margin-bottom: 1rem;
}

.profile-picture img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  transition: filter var(--transition-duration);
}

.profile-picture:hover img {
  filter: brightness(0.7);
}

.camera-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-duration);
}

.profile-picture:hover .camera-icon {
  opacity: 1;
}

.profile-name {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.profile-initials {
  font-size: 1.25rem;
  color: var(--muted-text-color);
}

.next-button {
  background-color: transparent;
  color: var(--text-color);
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.25rem;
}

.floating-bubbles {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 3rem;
  opacity: 0.3;
  z-index: 50;
}

.username-input {
  background: transparent;
  border: none;
  color: var(--text-color);
  text-align: center;
  font-size: 1.15rem;
  padding: 0;
  margin: 0;
  width: auto;
  height: 100%;
  outline: none;
}

.room-info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
}

.leave-room-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.leave-room-icon {
  color: var(--text-color);
  font-size: 1.25rem;
}

.room-id-heading {
  margin-left: 0.5rem;
  color: var(--text-color);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.75rem;
  font-weight: lighter;
}

.roominform {
  position: absolute;
  top: -0.5rem;
  left: 3rem;
  background: rgba(0, 0, 0, 0);
  color: var(--text-color);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  z-index: 1000;
}

.chatContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 65%;
  overflow-y: auto;
  padding: 1rem;
  margin-top: -6rem;
}

#messageContainer {
  height: calc(100% - 5rem);
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.messageContainer::-webkit-scrollbar,
.chatContainer::-webkit-scrollbar {
  display: none;
}

.message {
  display: flex;
  position: relative; 
  align-items: flex-start; 
  background-color: #1e1e1e; 
  border-radius: 1rem;
  padding: 0.75rem; 
  margin-bottom: 0.75rem; 
  width: 100%; 
  box-shadow: var(--box-shadow);
}

.message-text {
  flex-grow: 1; 
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word; 
  max-width: calc(100% - 3rem); /* Avoid overlapping the profile picture */
}

.timestamp {
  font-size: 0.75rem;
  color: var(--muted-text-color);
  position: absolute;
  top: 10px;
  right: 0.75rem;
}

.messageInputContainer {
  border-radius: 0.5rem;
  background-color: transparent;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
}

.messageInputContainer-inp {
  border: 1px solid var(--text-color);
  border-radius: 0.5rem;
  background-color: #313131;
  color: var(--text-color);
  padding: 0.5rem;
  flex-grow: 1;
}

.messageInputContainer-btn {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.messageInputContainer-btn:hover {
  background-color: var(--accent-color);
}

.profile-pic {
  width: 2rem; 
  height: 2rem; 
  border-radius: 50%; 
  object-fit: cover;
  margin-right: 0.75rem; /* Add margin to separate from text */
  flex-shrink: 0; /* Prevent shrinking of the profile image */
}
