body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1, h2 {
  color: #222;
  margin-top: 0;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #444;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

input:focus,
select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

button {
  background: #0066cc;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

button:hover {
  background: #0052a3;
}

button.secondary {
  background: #666;
}

button.secondary:hover {
  background: #555;
}

button.danger {
  background: #d32f2f;
}

button.danger:hover {
  background: #b71c1c;
}

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background: #ffebee;
  border: 1px solid #ef5350;
  color: #c62828;
}

.alert-success {
  background: #e8f5e9;
  border: 1px solid #66bb6a;
  color: #2e7d32;
}

.alert-info {
  background: #e3f2fd;
  border: 1px solid #42a5f5;
  color: #1565c0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}

table th {
  background: #f9f9f9;
  padding: 10px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  font-weight: 600;
}

table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

table tr:hover {
  background: #f5f5f5;
}

.token-cell {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  max-width: 200px;
  word-break: break-all;
}

details {
  cursor: pointer;
}

details summary {
  user-select: none;
  color: #0066cc;
  text-decoration: underline;
}

details summary:hover {
  color: #0052a3;
}

details > code {
  display: block;
  background: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
  margin-top: 8px;
  word-break: break-all;
  font-size: 12px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0066cc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header button {
  font-size: 13px;
  padding: 8px 12px;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.inline-form input {
  flex: 1;
}

.inline-form button {
  flex-shrink: 0;
}

.client-row-actions {
  display: flex;
  gap: 5px;
}

.copy-btn {
  padding: 4px 8px;
  font-size: 12px;
  background: #666;
}

.copy-btn:hover {
  background: #555;
}

.footer {
  text-align: center;
  color: #666;
  font-size: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

