@import url("style-home.css");


.admincp-tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0;
}

.admincp-tabs button {
  background-color: #2c2f4a;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.admincp-tabs button:last-child {
  margin-right: 0;
}

.admincp-tabs button:hover {
  background-color: #3d3f6a;
}

.admincp-tabs button.active {
  background-color: #7b4dfb;
}

.admincp-content {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  min-height: 450px;
  max-height: 450px;
  overflow-y: auto;
}

.admincp-content::-webkit-scrollbar {
  width: 0px;
}
.admincp-content::-webkit-scrollbar-track {
  background: rgba(44, 47, 74, 0.5);
  border-radius: 12px;
  margin: 40px 0;
}
.admincp-content::-webkit-scrollbar-thumb {
  background: #7b4dfb;
  border-radius: 12px;
  border: 2px solid rgba(44, 47, 74, 0.5);
}
.admincp-content::-webkit-scrollbar-thumb:hover {
  background: #9c71ff;
}

/* 📊 Таблица */
.anticheat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  table-layout: fixed;
}

.anticheat-table th,
.anticheat-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anticheat-table th {
  background-color: rgba(255, 255, 255, 0.08);
}

.anticheat-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.admincp-content p {
  margin: 3px 0;
}

.anticheat-table td p {
  margin: 3px 0;
}

.screenshot-preview:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(123, 77, 251, 0.5);
}

/* Модальное окно */
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
}

.img-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.img-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.pagination {
	margin-top: 12px;
	text-align: center;
}

.pagination button,
.pagination .dots {
	margin: 0 4px;
	padding: 6px 12px;
	border: none;
	border-radius: 6px;
	background-color: #2c2f4a;
	color: white;
	cursor: pointer;
	font-size: 13px;
}

.pagination button:hover {
	background-color: #3d3f6a;
}

.pagination button.active {
	background-color: #7b4dfb;
	font-weight: bold;
}

.pagination .dots {
	cursor: default;
	background: transparent;
	color: #aaa;
}

.img-modal-close:hover {
  color: #ff4d4d;
}

.ban-active {
  background-color: rgba(255, 0, 0, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  color: white;
}

.ban-expired {
  background-color: rgba(0, 255, 0, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  color: white;
}

.unban-btn {
  padding: 4px 8px;
  background-color: #7b4dfb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.detail-container {
  background-color: rgba(255, 165, 0, 0.08);
  border-radius: 0px;
  padding: 10px;
}

.detail-row-flex {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
}

.reason-process {
  color: white;
  background-color: rgba(255, 77, 77, 0.15);
  border-radius: 6px;
  padding: 0px 10px;
}

.screenshot-preview {
  max-width: 120px;
  max-height: 100px;
  margin-right: 3px;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* 📸 Screenshot */
.btn-screenshot {
  background: rgba(0, 123, 255, 0.15);
  border-color: #007bff;
}

/* 🚫 Ban / Unban */
.btn-ban-toggle {
  background: rgba(255, 0, 0, 0.1);
  border-color: #f00;
}

.btn-add-coins {
  padding: 4px 6px;
  font-size: 12px;
  min-width: 26px;
  margin-right: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 🔍 Фильтры (поиск, селекты) */
.donate-filters {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
}
.donate-filters > * {
  margin-right: 10px;
  margin-bottom: 6px;
}
.donate-filters input,
.donate-filters select,
.character-search {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid #555;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
}

/* 📋 Обёртка таблицы с прокруткой */
.donate-table-container,
.character-scroll {
  overflow-x: auto;
  width: 100%;
  max-height: 480px;
}

/* 🖱️ Кастомный Scrollbar для character */
.character-scroll::-webkit-scrollbar,
.donate-scroll::-webkit-scrollbar {
  width: 6px;
}
.character-scroll::-webkit-scrollbar-track,
.donate-scroll::-webkit-scrollbar-track {
  background: rgba(44, 47, 74, 0.5);
  margin: 40px 0;
  border-radius: 12px;
}
.character-scroll::-webkit-scrollbar-thumb,
.donate-scroll::-webkit-scrollbar-thumb {
  background: #7b4dfb;
  border-radius: 12px;
  border: 2px solid rgba(44, 47, 74, 0.5);
}
.character-scroll::-webkit-scrollbar-thumb:hover,
.donate-scroll::-webkit-scrollbar-thumb:hover {
  background: #9c71ff;
}

/* 📊 Таблица */
.donate-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  table-layout: auto; /* 👈 Важно */
}

/* Заголовки и ячейки */
.donate-table th,
.donate-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 💡 Минимальные ширины колонок */
.donate-table th:nth-child(1), .donate-table td:nth-child(1) { min-width: 120px; }  /* Character */
.donate-table th:nth-child(2), .donate-table td:nth-child(2) { min-width: 80px; }   /* Status */
.donate-table th:nth-child(3), .donate-table td:nth-child(3) { min-width: 80px; }   /* WCoinC */
.donate-table th:nth-child(4), .donate-table td:nth-child(4) { min-width: 80px; }   /* WCoinP */
.donate-table th:nth-child(5), .donate-table td:nth-child(5) { min-width: 80px; }   /* GP */
.donate-table th:nth-child(6), .donate-table td:nth-child(6) { min-width: 100px; }  /* Screenshot */
.donate-table th:nth-child(7), .donate-table td:nth-child(7) { min-width: 100px; }  /* Ban / Unban */
.donate-table th:nth-child(8), .donate-table td:nth-child(8) { min-width: 180px; }  /* Add Coins */

/* Заголовки */
.donate-table th {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Ячейки */
.donate-table td {
  color: #eee;
  font-weight: 400;
}

/* 🔘 Кнопки */
.donate-table button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid #666;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 4px;
}
.donate-table button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #aaa;
}
