body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

header {
  background: #3b82f6;
  color: white;
  padding: 1rem;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  padding: 1rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.filter-group select,
.filter-group input,
.filter-group button {
  padding: 0.4rem;
  font-size: 0.9rem;
}

.filter-group button {
  cursor: pointer;
  border: none;
  background: #3b82f6;
  color: white;
  border-radius: 4px;
  transition: background 0.2s;
}

.filter-group button:hover {
  background: #2563eb;
}

.proxy-table-container {
  overflow-x: auto;
}

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

.proxy-table th, .proxy-table td {
  padding: 0.6rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.proxy-table th[data-sort] {
  cursor: pointer;
}

.proxy-table th.sort-asc::after {
  content: " ⬆";
}
.proxy-table th.sort-desc::after {
  content: " ⬇";
}

.status-cell {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.status-active { background: #22c55e; }
.status-inactive { background: #ef4444; }

.copy-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.copy-btn:hover {
  background: #059669;
}

.pagination {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.pagination button {
  padding: 0.3rem 0.6rem;
}

.last-updated {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

.dark-mode {
  background: #1f2937;
  color: #e5e7eb;
}
.dark-mode header {
  background: #111827;
}
.dark-mode .proxy-table th, 
.dark-mode .proxy-table td {
  border-color: #374151;
}
.dark-mode .filter-group button {
  background: #2563eb;
}
