/* Additional CSS for navigation bar */
nav {
  background-color: #007bff; /* Change button color to match table header */
  padding: 10px;
  text-align: center;
}

nav button {
  color: white;
  background-color: transparent;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-right: 10px;
  cursor: pointer;
}

nav button:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Lighten button on hover */
}

@media (max-width: 767px) {
  nav button {
    padding: 8px 16px; /* Decrease padding for smaller screens */
  }
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  padding: 10px;
}

th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

td button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
}

td button:hover {
  background-color: #0069d9;
}

.pagination {
  display: flex;
  list-style: none;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.pagination li {
  padding: 5px;
}

.pagination button {
  cursor: pointer;
  background-color: white;
  color: black;
  border: 1px solid black;
  margin: 0 5px;
  padding: 5px 10px;
  border-radius: 5px;
}

.pagination button.active {
  background-color: black;
  color: white;
}

@media (max-width: 767px) {
  th,
  td {
    padding: 5px;
  }
}

.search-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.search-container label {
  font-size: 16px;
  margin-right: 10px;
}

.search-container input[type="text"] {
  border: 2px solid #dcdcdc;
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
  width: 100%;
  max-width: 300px;
}

.search-container input[type="text"]::placeholder {
  color: #a9a9a9;
}

.table-box {
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
}

.button {
  display: inline-block;
  margin: 0;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

.button:hover {
  background-color: #0069d9;
}

td .block-button {
  background-color: orange;
}

td .ban-button {
  background-color: red;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 500px;
  padding: 20px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

.popup__title {
  font-size: 1.5rem;
  font-weight: bold;
}

.popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5em;
  font-weight: bold;
  padding: 5px;
  cursor: pointer;
  border: none;
  background: none;
}

.popup__close:hover {
  color: red;
}

.popup__content {
  height: calc(100% - 120px);
  overflow-y: auto;
}

.popup__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.popup__item:last-child {
  border-bottom: none;
}

.popup__timestamp {
  font-size: 0.9rem;
}

.popup__ip-address {
  font-weight: bold;
}

.popup__text {
  font-size: 0.9rem;
}

.message-button-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
}

.message-button-message {
  color: red;
  border: 1px solid red;
  background-color: #ffe6e6;
  padding: 10px;
  margin-right: 10px;
  border-radius: 25px; /* Adjust this to get the rounded corners you desire */
  display: inline-block; /* Add this to wrap the text within the div */
}