:root {
  --color-bg: #ffffff;
  --color-text: #30313d;
  --color-primary: #0570de;
  --font-base: 15px;
  --font-family: "Ideal Sans", system-ui, sans-serif;
  --code-bg: #f6f9fc;
  --methodPOST: #22c55e;
  --methodGET: #74b8ff;
  --methodPATCH: #c1c522;
  --methodDELETE: #c02f2f;
  --apiResponseColor: #93c5fd;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  display: grid;
  grid-template-columns: 250px 1fr;
  height: 100vh;
}

.methodPOST {
  color: var(--methodPOST);
}

.methodGET {
  color: var(--methodGET);
}

.methodPATCH {
  color: var(--methodPATCH);
}

.methodDELETE {
  color: var(--methodDELETE);
}

nav {
  border-right: 1px solid #E0E6EB;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.menu-section {
  margin-bottom: 1.5rem;
}

.menu-section h3 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-section h3::after {
  content: "▾";
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.menu-section.collapsed h3::after {
  transform: rotate(-90deg);
}

.menu-links {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  display: block;
}

.menu-section.collapsed .menu-links {
  display: none;
}

.menu-links a {
  display: block;
  color: var(--color-primary);
  text-decoration: none;
  margin: 0.25rem 0;
}

.menu-links a:hover {
  text-decoration: underline;
}

main {
  padding: 2rem;
  overflow-y: auto;
}

.content-section {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
  border-top: 1px solid #DDD;
  padding: 1rem 0;
}

header {
  border-top: 1px solid #DDD;
  display: block;
  padding: 10px 0;
  background-color: rgb(246, 246, 246);
}

header h1 {
  font-size: 2rem;
  margin: 0 0 0 0;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

header h1 a {
  text-decoration: inherit;
  color: inherit;
}

.content-left {
  flex: 1;
  min-width: 300px;
}

.content-right {
  flex: 1;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow: hidden;
  border: 1px solid #334155;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.code-header {
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-family);
}

.method-tag {
  /* color: #22c55e; */
  font-weight: bold;
  margin-right: 0.5rem;
}

.endpoint-path {
  color: #e2e8f0;
  flex-grow: 1;
}

tr {
  text-align: center;
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  margin-left: 15px;
}

.copy-btn:hover {
  background: #2563eb;
}

.content-right pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  white-space: pre;
}

nav h1{
  margin-top: 0;
}

.a-bold {
  font-weight: bold;
}

.api-response {
  border-top: 10px solid #334155;
  font-size: 0.9rem;
  /* padding: 1rem 1.25rem; */
}

.response-header {
  font-weight: bold;
  margin: 0.5rem 0.8rem;
  color: var(--apiResponseColor);
}

.response-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.note {
  border-radius: 20px;
  padding: 15px;
  /* background-color: antiquewhite; */
  background-color: #cfffc9ad;
  margin: 5px 0;
}

.note div {
  padding-left: 15px;
}

.warning {
  border-radius: 20px;
  padding: 15px;
  background-color: #ff717159;
  margin: 5px 0;
}

.warning div {
  padding-left: 15px;
}

.toggle-button {
  cursor: pointer;
  background: none;
  border: none;
  color: #007bff;
  font-weight: bold;
  font-size: 1em;
  padding: 0;
  margin-bottom: 0.5em;
  margin-left: 15px
}

code[class*="language-"], pre[class*="language-"],
code[class*="language-"], pre[class*="language-"] code
{
  font-size: 0.93em;
}

table {
  width: 100%;
}

.collapsible-section button {
  margin: 0 0 0 0;
}

  .collapsible-section button {
    background-color: #2b6cb0;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .collapsible-section button:hover {
    background-color: #2c5282;
  }

  .collapsible-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
  }

  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }


.api-table-container {
  margin: 1em 0;
  /* border: 1px solid #ccc; */
  border-radius: 8px;
  overflow: hidden;

  font-family: system-ui, sans-serif;
}

.api-table-header {
  background-color: #f5f7fa;
  font-weight: bold;
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
}

.api-table th,
.api-table td {
  vertical-align: top;
  font-size: 13px;
  text-overflow: clip;
}

.api-table th {
  background-color: #f0f2f5;
  font-weight: 600;
  color: #333;
}

.api-table td.code {
  font-family: monospace;
  color: #2b6cb0;
  white-space: nowrap;
}

.api-table td code {
  background-color: #f3f3f3;
  padding: 2px 4px;
  border-radius: 4px;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
}

.api-table th, 
.api-table td {
  padding: 8px;
  border: 1px solid #ddd;
  white-space: normal;
}

.get_tag,
.post_tag,
.patch_tag,
.delete_tag {
  display: inline-block;
  padding: 1px 10px;
  border: 2px black;
  border-style: outset;
  border-radius: 25px;
  font-size: 18px;
  pointer-events: none;
  user-select: none;
}

.get_tag {
    color: var(--methodGET);
}

.post_tag {
    color: var(--methodPOST);
}

.delete_tag {
    color: var(--methodDELETE);
}

.patch_tag {
    color: var(--methodPATCH);
}

nav .menu-links a.active {
  font-weight: bold;
  color: #007bff;
  border-left: 4px solid #007bff;
  padding-left: 8px;
  background-color: #f0f7ff;
  transition: all 0.2s ease;
}

.section-header {
  background: #f8f9fa;
  padding: 2rem;
  margin-bottom: 2rem;
  /* border-bottom: 2px solid #e0e0e0; */
}

.section-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  color: #333;
}

.section-header p {
  margin: 0;
  font-size: 1.1rem;
  color: #555;
}