* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  padding: 25px;
  background-color: #4f46e5;
  color: white;
}

.card-header h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.card-body {
  padding: 25px;
}

.card-footer {
  padding: 15px 25px;
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

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

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: #4f46e5;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  background-color: #4f46e5;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #4338ca;
}

.message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
}

.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.error {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.hidden {
  display: none;
}

.loader {
  margin: 20px auto;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4f46e5;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.api-url {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}

/* Dashboard styles */
.dashboard {
  text-align: center;
}

.user-info {
  background-color: #f8fafc;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: left;
}

.user-info h3 {
  margin-bottom: 10px;
  color: #4f46e5;
}

.token-box {
  max-height: 80px;
  overflow-y: auto;
  background-color: #f1f5f9;
  padding: 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: #334155;
  margin-bottom: 10px;
  text-align: left;
  word-break: break-all;
}

/* API Testing styles */
.api-test-area {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: left;
}

.api-test-area h3 {
  margin-bottom: 15px;
  color: #4f46e5;
  text-align: center;
}

select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: monospace;
}

.response-box {
  max-height: 300px;
  overflow-y: auto;
  background-color: #f1f5f9;
  padding: 15px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.response-box.success {
  background-color: #f0fdf4;
  border: 1px solid #dcfce7;
}

.response-box.error {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
}
