:root {
  --primary-color: #3498db;
  --accent-color: #2ecc71;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --warning-color: #e74c3c;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--light-color);
  color: var(--dark-color);
}

html {
  scroll-behavior: smooth;
}

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

/* Header Styles */
header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
}

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

.logo h1 {
  margin: 0;
  font-size: 2rem;
}

.logo p {
  margin: 5px 0 0;
  font-size: 1rem;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-btn.primary {
  background: var(--accent-color);
  border: none;
}

.nav-btn.primary:hover {
  background: #27ae60;
}

/* Page Navigation */
.page-nav {
  background: var(--dark-color);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.page-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.page-nav a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: white;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #2980b9;
}

.btn-accent {
  background: var(--accent-color);
}

.btn-accent:hover {
  background: #27ae60;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 1rem auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card-content {
  flex-grow: 1;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-top: 0;
  color: var(--primary-color);
  border-bottom: 2px solid var(--light-color);
  padding-bottom: 0.5rem;
}

.card-footer {
  margin-top: auto;
  text-align: center;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.feature h3 {
  margin-top: 0;
  color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.documentation-section {
  margin: 2rem 0;
}

.endpoint {
  background: var(--light-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.endpoint h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.endpoint-method {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.endpoint-url {
  display: inline-block;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.endpoint-details {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 1rem;
}

.endpoint-details h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.endpoint-details pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.8rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9rem;
}

.admin-only {
  border-left: 4px solid var(--accent-color);
}


/* For mobile devices */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-buttons {
    margin-top: 20px;
  }
  
  .page-nav ul {
    flex-direction: column;
    align-items: center;
  }
}
