:root {
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --primary-light: #64b5f6;
  --secondary: #ff6e40;
  --bg-light: #f5f7fa;
  --bg-dark: #2c3e50;
  --text-dark: #333;
  --text-light: #f8f9fa;
  --success: #43a047;
  --danger: #e53935;
  --warning: #ffb300;
  --code-bg: #263238;
  --border-radius: 4px;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
  --spacing: 1rem;
}

* {
  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: var(--text-dark);
  background-color: var(--bg-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.content {
  margin-top: 1em;
}

/* Header styles */
header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 50px;
  margin-right: 10px;
  align-self: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  line-height: 1.2;
}

.tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: left;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 1.5rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.8;
}

/* Main content styles */
main {
  padding: 2rem 0;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-dark);
  opacity: 0.8;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Usage section */
.usage-section {
  margin-bottom: 3rem;
}

.usage-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.code-example {
  margin-bottom: 2rem;
}

.code-example h3 {
  margin-bottom: 0.5rem;
}

pre {
  background-color: var(--code-bg);
  color: var(--text-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

/* Welcome section */
.welcome-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.welcome-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.welcome-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-dark);
  opacity: 0.8;
}

.create-transform-section {
  margin: 2rem 0;
}

.primary-button {
  display: inline-block;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}

.primary-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* CTA section */
.cta-section {
  text-align: center;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--text-light);
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: var(--primary-dark);
}

/* Footer styles */
footer {
  color: var(--primary-dark);
  padding: 2rem 0;
  text-align: center;
}

/* Documentation page styles */
.docs-header {
  text-align: center;
  margin-bottom: 3rem;
}

.docs-header h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.docs-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.docs-nav {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.docs-nav ul {
  list-style: none;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.docs-nav li {
  margin-bottom: 0.5rem;
}

.docs-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.docs-nav a:hover {
  color: var(--primary-dark);
}

.docs-section {
  margin-bottom: 3rem;
}

.docs-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.docs-section h4 {
  margin: 1.5rem 0 0.5rem;
}

.docs-section ul, .docs-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Transform Editor Page */
.editor-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.editor-title {
  color: var(--primary);
  margin: 0;
}

.uuid-display {
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
}

.uuid-value {
  margin-right: 0.5rem;
  font-family: monospace;
  font-weight: bold;
}

.copy-button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
}

.editor-textarea {
  width: 100%;
  min-height: 400px;
  padding: 1rem;
  font-family: monospace;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
}

.editor-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.endpoint-info {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.endpoint-url {
  font-family: monospace;
  background: var(--code-bg);
  color: var(--text-light);
  padding: 0.5rem;
  border-radius: 3px;
  display: block;
  width: 100%;
  margin-top: 0.5rem;
}

.save-button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.save-button:hover {
  background-color: var(--primary-dark);
}

.save-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
}

.success {
  background-color: rgba(67, 160, 71, 0.1);
  color: var(--success);
}

.error {
  background-color: rgba(229, 57, 53, 0.1);
  color: var(--danger);
}

/* Responsive design */
@media (max-width: 768px) {
  .docs-nav {
    position: static;
    margin-bottom: 2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .editor-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .uuid-display {
    margin-top: 1rem;
    width: 100%;
  }
}