@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #fef6e4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.page-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 48px;
}

/* Deprecation Banner */
.deprecation-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.deprecation-banner a {
  color: #78350f;
  text-decoration: underline;
  font-weight: 700;
}
.deprecation-banner a:hover {
  color: #451a03;
}

/* Version Toggle */
.version-toggle {
  position: fixed;
  top: 62px;
  right: 20px;
  z-index: 1001;
  display: flex;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.version-toggle a {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #718096;
  transition: all 0.2s ease;
}
.version-toggle a:hover {
  color: #2d3748;
  background: #f7fafc;
}
.version-toggle a.active {
  background: #4db5bc;
  color: white;
}
.version-toggle a.active:hover {
  background: #319795;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1000;
}
.sidebar-header {
  padding: 40px 30px;
  border-bottom: 1px solid #e2e8f0;
}
.logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}
.logo img {
  width: 100%;
  height: auto;
}
.sidebar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 5px;
}
.sidebar-subtitle {
  font-size: 0.875rem;
  color: #718096;
}
nav ul {
  list-style: none;
  padding: 20px 0;
}
nav li {
  margin: 0;
}
nav a {
  display: block;
  padding: 12px 30px;
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}
nav a:hover {
  background: #f7fafc;
  color: #2d3748;
  border-left-color: #4db5bc;
}
nav a.active {
  background: #e6fffa;
  color: #2d3748;
  border-left-color: #4db5bc;
}
/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.hamburger {
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  width: 100%;
  height: 2px;
  background: #2d3748;
  transition: all 0.3s ease;
}
/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
  max-width: 1200px;
}
.section {
  background: #fff;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #2d3748;
}
h3 {
  color: #2d3748;
  margin: 32px 0 20px;
  font-size: 1.75rem;
  font-weight: 600;
}
h4 {
  color: #4a5568;
  margin: 24px 0 16px;
  font-size: 1.25rem;
  font-weight: 600;
}
p {
  color: #4a5568;
  margin-bottom: 16px;
}
.endpoint {
  background: #e6fffa;
  padding: 20px 24px;
  border-radius: 12px;
  margin: 24px 0;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #4db5bc;
}
.method {
  background: #4db5bc;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}
code {
  background: #f7fafc;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 0.9em;
  color: #e53e3e;
}
pre {
  background: #2d3748;
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 20px 0;
  line-height: 1.6;
  position: relative;
  width: 100%;
  max-width: 100%;
}
pre code {
  background: transparent;
  padding: 0;
  color: #e2e8f0;
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* JSON Syntax Highlighting */
.json-key {
  color: #a78bfa;
}
.json-string {
  color: #86efac;
}
.json-number {
  color: #fbbf24;
}
.json-boolean {
  color: #60a5fa;
}
.json-null {
  color: #f87171;
}
.json-punctuation {
  color: #94a3b8;
}
/* Responsive Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}
th {
  background: #f7fafc;
  font-weight: 600;
  color: #2d3748;
}
td {
  color: #4a5568;
}
tr:hover td {
  background: #f7fafc;
}
tr:last-child td {
  border-bottom: none;
}
.field-table td:first-child {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-weight: 500;
  color: #e53e3e;
}
.required {
  color: #e53e3e;
  font-weight: 600;
}
.warning {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  color: #92400e;
}
.warning::before {
  content: '⚠️ ';
  font-size: 1.2em;
}
.info {
  background: #dbeafe;
  border: 1px solid #60a5fa;
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  color: #1e40af;
}
.info::before {
  content: 'ℹ️ ';
  font-size: 1.2em;
}
.error {
  background: #fee2e2;
  border: 1px solid #f87171;
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  color: #991b1b;
}
.success {
  background: #d1fae5;
  border: 1px solid #34d399;
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  color: #065f46;
}
.tab-container {
  margin: 32px 0;
}
.tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 32px;
  gap: 4px;
}
.tab {
  padding: 12px 24px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  color: #718096;
  transition: all 0.2s ease;
  border-radius: 12px 12px 0 0;
  font-weight: 500;
  white-space: nowrap;
}
.tab.active {
  color: #2d3748;
  background: #e6fffa;
  border-bottom: 2px solid #4db5bc;
  margin-bottom: -2px;
}
.tab:hover:not(.active) {
  color: #2d3748;
  background: #f7fafc;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.copy-button {
  background: #4db5bc;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  position: absolute;
  top: 16px;
  right: 16px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.copy-button:hover {
  background: #319795;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(77, 181, 188, 0.3);
}
ul {
  margin-left: 24px;
  color: #4a5568;
}
li {
  margin: 12px 0;
}
a {
  color: #4db5bc;
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #319795;
  text-decoration: underline;
}
/* Go Live Checklist */
.checklist {
  background: #f0fdfa;
  border: 1px solid #5eead4;
  border-radius: 12px;
  padding: 32px;
  margin-top: 32px;
}
.checklist h3 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #0f766e;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.checklist-item:hover {
  background: rgba(94, 234, 212, 0.1);
}
.checklist-item input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #14b8a6;
  cursor: pointer;
  flex-shrink: 0;
}
.checklist-item label {
  cursor: pointer;
  color: #134e4a;
  font-size: 1rem;
  flex: 1;
  user-select: none;
}
.checklist-item input[type='checkbox']:checked + label {
  color: #6b7280;
  text-decoration: line-through;
}
.checklist-progress {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #5eead4;
}
.progress-bar {
  height: 8px;
  background: #ccfbf1;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6 0%, #0d9488 100%);
  transition: width 0.3s ease;
  width: 0%;
}
.progress-text {
  color: #0f766e;
  font-size: 0.875rem;
  margin-top: 8px;
  font-weight: 500;
}
/* Responsive Design */
@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu-toggle.menu-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-menu-toggle.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.menu-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  .section {
    padding: 24px;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .tabs {
    margin: 0 -24px;
    padding: 0 24px;
  }
  pre {
    margin: 20px 0;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.75rem;
  }
  pre code {
    font-size: 0.75rem;
  }
  .copy-button {
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .version-toggle {
    top: 20px;
    right: 70px;
  }
}
@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
  }
  th,
  td {
    padding: 12px 8px;
  }
}
/* Stack table headers and cells on very small screens */
@media (max-width: 640px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  table {
    border: none;
    box-shadow: none;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    padding: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  td {
    border: none;
    position: relative;
    padding: 12px 16px;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
  }
  td:last-child {
    border-bottom: none;
  }
  td:before {
    content: attr(data-label);
    font-weight: 600;
    color: #2d3748;
    flex-shrink: 0;
    font-size: 0.875rem;
  }
  td:after {
    content: ': ';
    color: #2d3748;
    font-weight: 600;
    margin-left: -8px;
    margin-right: 4px;
  }
  /* Ensure content wraps properly */
  td * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
}
/* Overlay for mobile menu */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.overlay.active {
  display: block;
}
