#bans {
  background-image: url("/assets/img/wood-bg.png");
  background-repeat: repeat;
  background-size: contain;
  background-position: center top;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  color: white;
  padding-top: 90px;
  padding-bottom: 40px;
}

#bans .container {
  width: 95%;
  max-width: 1100px;
}

#bans h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #ffe100;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Tabs */
.bans-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.bans-tabs button {
  font-family: "Noto Serif", serif;
  font-size: 14px;
  padding: 10px 28px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.bans-tabs button:first-child {
  border-radius: 4px 0 0 4px;
}

.bans-tabs button:last-child {
  border-radius: 0 4px 4px 0;
}

.bans-tabs button.active {
  background: rgba(255,225,0,0.2);
  border-color: #ffe100;
  color: #ffe100;
  font-weight: 600;
}

.bans-tabs button:hover:not(.active) {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Controls */
.bans-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bans-controls select {
  font-family: "Noto Serif", serif;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  outline: none;
}

.bans-controls select:focus {
  border-color: rgba(246,201,14,0.6);
}

/* Table */
.bans-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bans-table thead th {
  background: rgba(0,0,0,0.6);
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #ffe100;
  border-bottom: 2px solid rgba(255,225,0,0.3);
  white-space: nowrap;
}

.bans-table tbody tr:nth-child(odd) {
  background: rgba(0,0,0,0.25);
}

.bans-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.15);
}

.bans-table tbody tr:hover {
  background: rgba(255,225,0,0.08);
}

.bans-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bans-table .col-account {
  color: #fff;
  font-weight: 600;
}

.bans-table .col-chars {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  line-height: 1.6;
}

.bans-table .col-chars .chars-server {
  color: #ffe100;
  font-weight: 600;
}

.bans-table .col-reason {
  color: rgba(255,255,255,0.85);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bans-table .col-duration {
  white-space: nowrap;
}

.bans-table .col-duration.permanent {
  color: #ff4444;
  font-weight: 600;
}

.bans-table .col-date {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  white-space: nowrap;
}

/* Pagination */
.bans-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.bans-pagination button {
  font-family: "Noto Serif", serif;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
}

.bans-pagination button:hover {
  border-color: rgba(246,201,14,0.5);
  background: rgba(0,0,0,0.6);
}

.bans-pagination button.active {
  background: rgba(255,225,0,0.2);
  border-color: #ffe100;
  color: #ffe100;
}

.bans-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}

.bans-stats {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

.bans-empty {
  text-align: center;
  padding: 40px 0;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
}

@media (max-width: 768px) {
  #bans {
    padding-top: 80px;
  }

  #bans .container {
    width: 100%;
    padding: 0 10px;
  }

  #bans h2 {
    font-size: 22px;
  }

  .bans-tabs button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .bans-controls {
    flex-direction: column;
    gap: 8px;
  }

  .bans-controls select {
    width: 100%;
  }

  .bans-table {
    font-size: 12px;
  }

  .bans-table thead th,
  .bans-table td {
    padding: 5px 4px;
  }

  .bans-table .col-date {
    font-size: 11px;
  }

  .bans-table .col-chars {
    font-size: 11px;
  }
}
