/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  height: 100vh;
}

.tabs {
background-color: black;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #212121;
  color: #ffffff;
}

.navbar {
  background-color: #424242 !important;
  color: #ffffff;
}

.sidenav {
  background-color: #424242 !important;
}

.sidenav li a {
  color: #ffffff !important;
}

.user-box {
  margin: 10px;
  padding: 10px;
  border: 1px solid #ff9800;
  border-radius: 5px;
  background-color: #424242;
}

.user-box textarea {
  width: 100%;
  height: 100px;
  background-color: #616161;
  color: #ffffff;
  border: 1px solid #ff9800;
  border-radius: 5px;
  padding: 10px;
  resize: none;
  box-sizing: border-box;
}

.collection-item {
  background-color: rgba(0, 0, 0, 0.16);
  color: #ffffff;
  line-height: 1.5rem;
  padding: 10px 20px;
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
}

.collection-item:hover {
  background-color: #424242;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: black;
  color: white;
  text-align: center;
}

.input-field input, .input-field label {
  color: white;
}

#roomList {
  background-color: #212121;
}

#roomList .collection-item {
  background-color: #212121;
  color: #ffffff;
}

#roomList .collection-item:hover {
  background-color: #424242;
}

/* Dropdown Menu Styling */
.select-wrapper input.select-dropdown {
  background-color: #424242 !important;
  color: #ffffff !important;
  border-color: #424242 !important;
}

.dropdown-content {
  background-color: #424242 !important;
}

.dropdown-content li>a, .dropdown-content li>span {
  color: #ffffff !important;
}

/* Light Mode Styles */
body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

.navbar.light-mode {
  background-color: #f0f0f0 !important;
  color: #000000;
}

.navbar.light-mode .brand-logo,
.navbar.light-mode a {
  color: #000000 !important;
}

.sidenav.light-mode {
  background-color: #f0f0f0 !important;
}

.sidenav.light-mode li a {
  color: #000000 !important;
}

.user-box.light-mode {
  background-color: #e0e0e0 !important;
  border: 1px solid #000000 !important;
}

.user-box.light-mode textarea {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
}

.collection-item.light-mode {
  background-color: #ffffff;
  color: #000000;
}

.collection-item.light-mode:hover {
  background-color: #e0e0e0;
}

.footer.light-mode {
  background-color: #f0f0f0;
  color: #000000;
}

.input-field.light-mode input, .input-field.light-mode label {
  color: #000000;
}

.btn.light-mode {
  color: #000000;
  background-color: #e0e0e0;
}

.btn.light-mode:hover {
  background-color: #d0d0d0;
}

.chatbox {
  width: 100%;
  height: 100px;
  padding: 10px;
  border-radius: 5px;
  resize: none;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif; /* Default font */
}

.chatbox.light-mode {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
}

#roomList.light-mode {
  background-color: #ffffff;
}

#roomList.light-mode .collection-item {
  background-color: #ffffff;
  color: #000000;
}

#roomList.light-mode .collection-item:hover {
  background-color: #e0e0e0;
}

/* Dropdown Menu Styling for Light Mode */
body.light-mode .select-wrapper input.select-dropdown {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #e0e0e0 !important;
}

body.light-mode .dropdown-content {
  background-color: #ffffff !important;
}

body.light-mode .dropdown-content li>a, body.light-mode .dropdown-content li>span {
  color: #000000 !important;
}

/* Logo Styles */
.nav-wrapper .brand-logo img {
  height: 40px;
  margin-top: 10px;
}

.desktop-logo {
  display: block;
}

.mobile-logo {
  display: none;
}

@media only screen and (max-width: 600px) {
  .desktop-logo {
    display: none;
  }
  .mobile-logo-container {
    display: block;
  }
  .mobile-logo {
    display: block;
    height: 40px;
    margin-top: 10px;
  }
}

/* Admin Panel Styles */
.admin-panel {
  padding: 20px;
}

.admin-panel h2, .admin-panel h3 {
  color: #ff9800;
}

.collection .collection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
}

/* Ensure visibility of collection items in admin panel for light mode */
.admin-panel .collection-item.light-mode {
  background-color: #ffffff;
  color: #000000;
}

.admin-panel .collection-item.light-mode:hover {
  background-color: #e0e0e0;
}

/* Modal Styling */
.modal {
  background-color: #424242;
  color: #ffffff;
}

.modal.light-mode {
  background-color: #ffffff;
  color: #000000;
}

.modal .input-field label {
  color: #ffffff;
}

.modal.light-mode .modal.light-mode .input-field label {
  color: #000000;
}

input {
  color: white;
}

.modal .modal-footer {
  background-color: #333333;
}

.modal.light-mode .modal-footer {
  background-color: #e0e0e0;
}

.modal .btn {
  color: #ffffff;
}

.modal.light-mode .btn {
  color: #000000;
}

.modal .btn.red {
  background-color: #e53935;
}

.modal.light-mode .btn.red {
  background-color: #ef9a9a;
}

/* Add this to change the text color in input fields in light mode */
body.light-mode input,
body.light-mode textarea {
  color: #000000 !important;
}
