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

:root {
  --primary-dark: #388E8C;
  --primary-medium: #337E7B;
  --primary-darker: #316E6B;
  --primary-darkest: #2A514D;
  --accent-bright: #E5FE46;
  --accent-light: #FCFFE7;
  --secondary-1: #7DBB97;
  --secondary-2: #A1CDB3;
  --secondary-3: #C5E1D0;
  --secondary-4: #F6FEF9;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6a6a6a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--secondary-4);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

.page-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid var(--secondary-3);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--secondary-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-darkest) 100%);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: white;
  letter-spacing: -0.5px;
}

.sidebar-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  position: relative;
  transition: var(--transition);
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.toggle-icon::before {
  top: -8px;
}

.toggle-icon::after {
  top: 8px;
}

.sidebar-nav {
  padding: 12px 0;
}

.nav-section {
  margin-bottom: 4px;
}

.nav-section-toggle {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-section-toggle:hover {
  background: var(--secondary-4);
}

.nav-arrow {
  font-size: 20px;
  transition: var(--transition);
  color: var(--text-light);
}

.nav-section-toggle[aria-expanded="true"] .nav-arrow {
  transform: rotate(90deg);
}

.nav-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-section-toggle[aria-expanded="true"] + .nav-links {
  max-height: 500px;
}

.nav-link {
  display: block;
  padding: 10px 20px 10px 40px;
  color: var(--text-medium);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: var(--secondary-4);
  color: var(--primary-dark);
  border-left-color: var(--accent-bright);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(229, 254, 70, 0.15) 0%, transparent 100%);
  color: var(--primary-dark);
  font-weight: 600;
  border-left-color: var(--accent-bright);
}

.main-content {
  flex: 1;
  margin-left: 280px;
  transition: var(--transition);
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-darkest) 100%);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 48px;
  color: white;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--accent-light);
  margin-bottom: 32px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: var(--accent-bright);
  color: var(--primary-darkest);
  box-shadow: 0 4px 14px rgba(229, 254, 70, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 254, 70, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.hero-decoration {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-1 {
  width: 250px;
  height: 150px;
  right: 100px;
  top: 50px;
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  width: 150px;
  height: 150px;
  right: 50px;
  bottom: 100px;
  animation: float 8s ease-in-out infinite 1s;
}

.card-3 {
  width: 180px;
  height: 180px;
  right: 250px;
  bottom: 50px;
  animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.documentation-content {
  max-width: 1200px;
  padding: 60px 40px;
}

.doc-section {
  margin-bottom: 80px;
  scroll-margin-top: 20px;
}

.section-title {
  font-size: 36px;
  color: var(--primary-darkest);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent-bright);
  display: inline-block;
}

.section-text {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 24px;
}

.subsection-title {
  font-size: 18px;
  color: var(--primary-darker);
  margin: 24px 0 12px;
  font-family: 'Outfit', sans-serif;
}

.info-box {
  background: linear-gradient(135deg, var(--secondary-4) 0%, white 100%);
  border: 2px solid var(--secondary-3);
  border-radius: var(--border-radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.info-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary-darkest);
}

.info-icon {
  font-size: 24px;
}

.inline-code {
  background: var(--accent-light);
  color: var(--primary-darker);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  border: 1px solid var(--accent-bright);
}

.warning-box {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
  border: 2px solid #FFE066;
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 24px 0;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.warning-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.warning-box strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-dark);
  display: block;
  margin-bottom: 8px;
}

.warning-box p {
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}

.code-block {
  background: var(--primary-darkest);
  border-radius: var(--border-radius);
  margin: 24px 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-darker);
}

.code-header {
  background: var(--primary-darker);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--primary-medium);
}

.code-lang {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.copy-btn {
  background: rgba(229, 254, 70, 0.15);
  color: var(--accent-bright);
  border: 1px solid var(--accent-bright);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

.copy-btn:hover {
  background: var(--accent-bright);
  color: var(--primary-darkest);
  transform: scale(1.05);
}

.copy-btn.copied {
  background: var(--secondary-1);
  color: white;
  border-color: var(--secondary-1);
}

.code-block pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  color: #e6e6e6;
}

.keyword {
  color: #8BE9FD;
}

.string {
  color: #F1FA8C;
}

.property {
  color: #50FA7B;
}

.method {
  color: #FFB86C;
}

.param {
  color: #FF79C6;
}

.number {
  color: #BD93F9;
}

.endpoint-card {
  background: white;
  border: 2px solid var(--secondary-3);
  border-radius: var(--border-radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.endpoint-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.http-method {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.http-method.get {
  background: #E8F5E9;
  color: #2E7D32;
}

.http-method.post {
  background: #E3F2FD;
  color: #1565C0;
}

.http-method.put {
  background: #FFF3E0;
  color: #E65100;
}

.http-method.delete {
  background: #FFEBEE;
  color: #C62828;
}

.endpoint-path {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 16px;
  color: var(--primary-darker);
  background: var(--secondary-4);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.endpoint-description {
  color: var(--text-medium);
  margin-bottom: 16px;
}

.params-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  background: white;
  border: 1px solid var(--secondary-3);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.params-table thead {
  background: var(--secondary-4);
}

.params-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--primary-darkest);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.params-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--secondary-3);
  color: var(--text-medium);
  font-size: 14px;
}

.params-table code {
  background: var(--accent-light);
  color: var(--primary-darker);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  border: 1px solid var(--accent-bright);
}

.webhook-list {
  list-style: none;
  margin-top: 12px;
}

.webhook-list li {
  padding: 8px 0;
  color: var(--text-medium);
}

.webhook-list code {
  background: var(--accent-light);
  color: var(--primary-darker);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  border: 1px solid var(--accent-bright);
  margin-right: 8px;
}

.error-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: white;
  border: 1px solid var(--secondary-3);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.error-table thead {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-darkest) 100%);
}

.error-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.error-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--secondary-3);
  color: var(--text-medium);
  font-size: 14px;
}

.status-code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.status-code.success {
  background: #E8F5E9;
  color: #2E7D32;
}

.status-code.error {
  background: #FFEBEE;
  color: #C62828;
}

.rate-limit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.rate-limit-card {
  background: white;
  border: 2px solid var(--secondary-3);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.rate-limit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-dark);
}

.rate-limit-title {
  font-size: 16px;
  color: var(--primary-darker);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rate-limit-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1;
}

.rate-limit-period {
  color: var(--text-light);
  font-size: 14px;
}

.footer {
  background: var(--primary-darkest);
  color: white;
  padding: 60px 40px 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--accent-bright);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-link {
  display: block;
  color: var(--secondary-2);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-bright);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  padding-top: 24px;
  border-top: 1px solid var(--primary-darker);
  text-align: center;
  color: var(--secondary-2);
  font-size: 14px;
}

.contact-card {
  background: white;
  border: 2px solid var(--secondary-3);
  border-radius: var(--border-radius);
  padding: 32px;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.contact-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-dark);
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-name {
  font-size: 24px;
  color: var(--primary-darkest);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

.contact-detail {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.6;
}

.contact-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--primary-darker);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 260px;
  }

  .main-content {
    margin-left: 260px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-decoration {
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .hero-section {
    padding: 60px 24px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-decoration {
    display: none;
  }

  .documentation-content {
    padding: 40px 24px;
  }

  .section-title {
    font-size: 28px;
  }

  .endpoint-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rate-limit-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 40px 24px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 24px;
  }

  .params-table,
  .error-table {
    font-size: 12px;
  }

  .params-table th,
  .params-table td,
  .error-table th,
  .error-table td {
    padding: 8px;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-img {
    width: 80px;
    height: 80px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--secondary-4);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--secondary-2);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-medium);
}

.code-block pre::-webkit-scrollbar {
  height: 8px;
}

.code-block pre::-webkit-scrollbar-track {
  background: var(--primary-darkest);
}

.code-block pre::-webkit-scrollbar-thumb {
  background: var(--primary-darker);
  border-radius: 4px;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
  background: var(--primary-medium);
}
