body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  text-align: left;
  font-weight: bold;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button {
  background-color: #4caf50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

.modal {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

h1 {
  color: #333;
  margin-bottom: 1.5rem;
}

.info {
  color: #666;
  margin-bottom: 1rem;
}

.mock-notice {
  background: #ffe;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-align: left;
  font-style: italic;
}

.mock-notice strong {
  display: block;
  margin-bottom: 0.5rem;
}

.scopes {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.scopes h2 {
  color: #495057;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}

.scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.scope-list li {
  color: #666;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  font-family: monospace;
}

.scope-list li::before {
  content: "✓";
  color: #28a745;
  margin-right: 0.5rem;
}

button {
  background-color: #007bff;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
}

button:hover {
  background-color: #0056b3;
}

.token-container {
  margin-top: 2rem;
  text-align: left;
}

.token-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #495057;
  font-size: 0.9rem;
}

.copy-hint {
  color: #6c757d;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.copy-hint.copied {
  color: #28a745;
}

#token-body {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

#token {
  cursor: pointer;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: none;
  transition: border-color 0.2s;
}

#token:hover {
  border-color: #007bff;
}

#token:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

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

.claims-label-row label {
  margin-bottom: 0;
}

.claims-toggle {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 8px;
  text-transform: none;
  font-weight: normal;
}

.claims-toggle:hover {
  background-color: #f0f7ff;
  border-color: #007bff;
  color: #007bff;
}

.claims-raw {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
  resize: vertical;
}

.claims-editor {
  text-align: left;
}

.claim-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}

.claim-key {
  flex: 1;
  min-width: 0;
}

.claim-value {
  flex: 2;
  min-width: 0;
}

.claim-key,
.claim-value {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: monospace;
}

.claim-remove {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  text-transform: none;
  font-weight: normal;
}

.claim-remove:hover {
  background-color: #fee;
  border-color: #e99;
  color: #c00;
}

.claim-add-row {
  margin-top: 4px;
}

.claim-add {
  background: none;
  border: 1px dashed #ccc;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 6px 12px;
  text-transform: none;
  font-weight: normal;
  width: 100%;
}

.claim-add:hover {
  background-color: #f0f7ff;
  border-color: #007bff;
  color: #007bff;
}
