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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 968px) {
  main {
    grid-template-columns: 1fr;
  }
}

/* Tablet and mobile responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  header {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  section {
    padding: 20px;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  main {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  header {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  section {
    padding: 15px;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  main {
    gap: 15px;
  }

  .endpoint {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}

section {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #34495e;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #555;
}

.endpoint-info {
  margin-bottom: 30px;
}

.endpoint-details {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin-top: 10px;
}

.endpoint {
  display: inline-block;
  background-color: #e9ecef;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-weight: 600;
  margin-bottom: 10px;
}

.code-block {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  max-width: 100%;
}

.code-header {
  background-color: #f0f0f0;
  padding: 8px 15px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #555;
}

pre {
  background-color: #f8f9fa;
  padding: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  white-space: pre;
  max-width: 100%;
  box-sizing: border-box;
}

code {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #2c3e50;
}

/* Mobile responsiveness for code blocks */
@media (max-width: 768px) {
  pre {
    padding: 10px;
    font-size: 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  code {
    font-size: 0.8rem;
    white-space: pre;
  }

  .code-block {
    margin-bottom: 15px;
    overflow: hidden;
    max-width: 100%;
  }

  .code-header {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

.response-example {
  margin-bottom: 20px;
}

.info-text {
  color: #666;
  margin-bottom: 20px;
}

.test-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

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

input[type="text"],
textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

small {
  color: #666;
  font-size: 0.85rem;
  margin-top: 5px;
}

small a {
  color: #007bff;
  text-decoration: none;
}

small a:hover {
  text-decoration: underline;
}

.submit-button {
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.submit-button:active {
  transform: translateY(1px);
}

.response-container {
  margin-top: 20px;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.response-container.success {
  border-color: #28a745;
  background-color: #f8fff9;
}

.response-container.error {
  border-color: #dc3545;
  background-color: #fff8f8;
}

.response-container h3 {
  margin-bottom: 10px;
}

.response-container pre {
  background-color: transparent;
  padding: 0;
}

.privacy-notice {
  background-color: #e8f5e8;
  padding: 15px;
  border-left: 4px solid #28a745;
  margin-bottom: 25px;
  border-radius: 4px;
  color: #155724;
  font-size: 0.9rem;
}

#getUpdatesLink a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

#getUpdatesLink a:hover {
  text-decoration: underline;
}

.docs-link {
  display: inline-block;
  color: #007bff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
}
