/* Общие стили */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #222;
  color: #fff;
}

@media (min-width: 768px) {
  h1 {
    margin: 0;
    display: block;
  }
}

@media (max-width: 767px) {
  h1 {
    margin: 0;
    display: none;
  }
}

.logout-button {
  background-color: #ff4d4f;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
}
.bank-button {
  background-color: #4da0ff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
}

.header-buttons {
  display: flex;
  gap: 15px;
}

@media (min-width: 768px) {
  .player-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .player-info {
    display: none;
  }
}

.player-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.player-name {
  font-size: 16px;
  font-weight: bold;
}

.container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Модальное окно входа */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="submit"] {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  box-sizing: border-box;
}

.modal-content input[type="submit"] {
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Секция действий */
.moderator-actions {
  margin-bottom: 30px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.moderator-actions h2, .moderator-actions h3 {
  margin-top: 0;
}

.moderator-actions input, .moderator-actions select, .moderator-actions button {
  margin-bottom: 10px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.moderator-actions button {
  background-color: #28a745;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Секция списка модераторов */
.moderator-list {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.moderator-list button {
  width: 100%;
  font-size: 15px;
  display: flex;
  justify-content: center;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
}

/* .controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
} */

@media (min-width: 768px) {
  .controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .controls {
    display: block;
    margin-bottom: 20px;
  }
  #search {
    margin-bottom: 20px;
    width: 95%;
  }
}

.controls input, .controls select {
  padding: 10px;
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.card h4 {
  margin: 0;
  font-size: 18px;
}

.card p {
  margin: 5px 0;
  color: #666;
}

.card .actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column; /* Размещение кнопок вертикально */
  gap: 2px; /* Отступы между кнопками */
}

.card button {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 12px;
  display: block; /* Принудительное размещение кнопок по блочному типу */
}
.card .profile-button {
  background-color: #007bff;
}

/* Пагинация */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.pagination-button {
  padding: 5px 10px;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  color: #000;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  border-radius: 5px;
}

.page-input {
  width: 50px;
  text-align: center;
  padding: 5px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.pagination-button:hover {
  background-color: #e0e0e0;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-button.hidden {
  display: none;
}


/* Стили уведомлений */
#notificationContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fade-in 0.5s ease-out;
}

.notification.success {
  background-color: #d4edda;
  color: #155724;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Светлая тема */
.theme-toggle {
  background-color: #ddd;
  color: #222;
}

/* Темная тема */
.dark-theme .theme-toggle {
  background-color: #333;
  color: #f1f1f1;
}