:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-code-block: #f1f3f5;
  --bg-inline-code: #e9ecef;
  --bg-toc: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --text-code: #d6336c;
  --border-primary: #dee2e6;
  --border-secondary: #ced4da;
  --link-color: #1971c2;
  --link-hover-color: #1864ab;
  --toc-link-color: #495057;
  --toc-link-hover-bg: #e9ecef;
  --toc-link-active-color: #1971c2;
  --toc-link-active-border: #1971c2;
  --shadow-color: rgba(0, 0, 0, 0.05);
  --type-changelog-bg: #e7f5ff;
  --type-changelog-text: #1c7ed6;
  --type-docs-bg: #e6fcf5;
  --type-docs-text: #087f5b;
  --copy-btn-bg: #e9ecef;
  --copy-btn-text: #495057;
  --copy-btn-hover-bg: #ced4da;
  --theme-icon-sun: #fcc419;
  --theme-icon-moon: #495057;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --project-sidebar-width: 300px;
  --toc-sidebar-width: 300px;
  --header-height: 60px;
  --content-max-width: 860px;
  --dark-bg-primary: #1a1a1a;
  --dark-bg-secondary: #111111;
  --dark-bg-code-block: #2c2c2c;
  --dark-bg-inline-code: #3a3a3a;
  --dark-bg-toc: #1f1f1f;
  --dark-text-primary: #f8f9fa;
  --dark-text-secondary: #adb5bd;
  --dark-text-muted: #868e96;
  --dark-text-code: #7dd3fc;
  --dark-border-primary: #3a3a3a;
  --dark-border-secondary: #495057;
  --dark-link-color: #60a5fa;
  --dark-link-hover-color: #93c5fd;
  --dark-toc-link-color: #adb5bd;
  --dark-toc-link-hover-bg: #2c2c2c;
  --dark-toc-link-active-color: #60a5fa;
  --dark-toc-link-active-border: #60a5fa;
  --dark-shadow-color: rgba(0, 0, 0, 0.2);
  --dark-type-changelog-bg: #11304d;
  --dark-type-changelog-text: #a5d8ff;
  --dark-type-docs-bg: #033a2a;
  --dark-type-docs-text: #96f2d7;
  --dark-copy-btn-bg: #3a3a3a;
  --dark-copy-btn-text: #adb5bd;
  --dark-copy-btn-hover-bg: #495057;
  --dark-theme-icon-sun: var(--dark-theme-icon-sun);
  --dark-theme-icon-moon: var(--dark-theme-icon-moon);
  --feedback-yes-bg: rgba(76, 175, 80, 0.5);
  --feedback-yes-hover-bg: rgba(76, 175, 80, 0.8);
  --feedback-yes-icon-color: #ffffff;
  --feedback-no-bg: rgba(244, 67, 54, 0.5);
  --feedback-no-hover-bg: rgba(244, 67, 54, 0.8);
  --feedback-no-icon-color: #ffffff;
  --feedback-btn-size: 48px;
  --feedback-btn-hover-scale: 1.1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body.public-view {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  width: 100%;
}

body.dark-mode {
  --bg-primary: var(--dark-bg-primary);
  --bg-secondary: var(--dark-bg-secondary);
  --bg-code-block: var(--dark-bg-code-block);
  --bg-inline-code: var(--dark-bg-inline-code);
  --bg-toc: var(--dark-bg-toc);
  --text-primary: var(--dark-text-primary);
  --text-secondary: var(--dark-text-secondary);
  --text-muted: var(--dark-text-muted);
  --text-code: var(--dark-text-code);
  --border-primary: var(--dark-border-primary);
  --border-secondary: var(--dark-border-secondary);
  --link-color: var(--dark-link-color);
  --link-hover-color: var(--dark-link-hover-color);
  --toc-link-color: var(--dark-toc-link-color);
  --toc-link-hover-bg: var(--dark-toc-link-hover-bg);
  --toc-link-active-color: var(--dark-toc-link-active-color);
  --toc-link-active-border: var(--dark-toc-link-active-border);
  --shadow-color: var(--dark-shadow-color);
  --type-changelog-bg: var(--dark-type-changelog-bg);
  --type-changelog-text: var(--dark-type-changelog-text);
  --type-docs-bg: var(--dark-type-docs-bg);
  --type-docs-text: var(--dark-type-docs-text);
  --copy-btn-bg: var(--dark-copy-btn-bg);
  --copy-btn-text: var(--dark-copy-btn-text);
  --copy-btn-hover-bg: var(--dark-copy-btn-hover-bg);
  --theme-icon-sun: var(--dark-theme-icon-sun);
  --theme-icon-moon: var(--dark-theme-icon-moon);
  --feedback-yes-bg: rgba(102, 187, 106, 0.5);
  --feedback-yes-hover-bg: rgba(102, 187, 106, 0.8);
  --feedback-yes-icon-color: #1a1a1a;
  --feedback-no-bg: rgba(239, 83, 80, 0.5);
  --feedback-no-hover-bg: rgba(239, 83, 80, 0.8);
  --feedback-no-icon-color: #1a1a1a;
}

.hidden {
  display: none !important;
}

.page-wrapper {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.main-content {
  flex-grow: 1;
  min-width: 0;
  padding: 24px 16px;
  background-color: var(--bg-primary);
  transition:
    background-color 0.3s ease,
    padding 0.3s ease;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.project-sidebar,
.toc-sidebar {
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  background-color: var(--bg-toc);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
}

.project-sidebar {
  width: var(--project-sidebar-width);
  border-right: 1px solid var(--border-primary);
  order: -1;
}

.toc-sidebar {
  width: var(--toc-sidebar-width);
  border-left: 1px solid var(--border-primary);
  order: 1;
}

.sidebar-sticky-content {
  padding: 24px 20px;
  overflow-y: auto;
  height: 100%;
}

.project-sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-primary);
}

.project-sidebar-title a {
  color: inherit;
  text-decoration: none;
}

.project-sidebar-title a:hover {
  color: var(--link-color);
}

.project-entries-nav ul {
  list-style: none;
  padding-left: 0;
}

.project-entries-nav li {
  margin-bottom: 2px;
}

.project-entry-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--toc-link-color);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-entry-link:hover {
  background-color: var(--toc-link-hover-bg);
  color: var(--text-primary);
}

.project-entry-link.active {
  background-color: var(--toc-link-hover-bg);
  color: var(--link-color);
  font-weight: 600;
}

.project-entry-link .type-icon {
  font-size: 0.9em;
  opacity: 0.7;
}

.project-entry-link .draft-indicator {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted);
  margin-left: auto;
  padding-left: 5px;
}

.sidebar-header-item {
  padding: 10px 12px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 15px;
}

.toc-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
}

.table-of-contents li {
  margin-bottom: 4px;
}

.table-of-contents a {
  display: block;
  font-size: 0.875rem;
  color: var(--toc-link-color);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-left-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-of-contents a:hover {
  background-color: var(--toc-link-hover-bg);
  color: var(--text-primary);
}

.table-of-contents a.active {
  color: var(--toc-link-active-color);
  font-weight: 600;
  border-left-color: var(--toc-link-active-border);
  background-color: var(--toc-link-hover-bg);
}

.table-of-contents .toc-h3 a {
  padding-left: 24px;
  font-size: 0.8125rem;
}

.table-of-contents .toc-h4 a {
  padding-left: 36px;
  font-size: 0.75rem;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.mobile-nav-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.mobile-nav-toggle:hover {
  background-color: var(--bg-secondary);
}

.mobile-logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 199;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.project-sidebar-open .sidebar-backdrop,
body.toc-sidebar-open .sidebar-backdrop {
  display: block;
  opacity: 1;
}

body.project-sidebar-open .project-sidebar,
body.toc-sidebar-open .toc-sidebar {
  transform: translateX(0);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  z-index: 200;
}

@media (min-width: 768px) {
  .main-content {
    padding: 40px 32px;
  }

  .sidebar-sticky-content {
    padding: 32px 24px;
  }
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }

  .project-sidebar,
  .toc-sidebar {
    display: block;
    position: sticky;
    transform: none;
    box-shadow: none;
  }

  .main-content {
    max-width: none;
    padding: 40px 48px;
  }

  body:not(:has(.project-sidebar)) .main-content {
    margin-left: auto;
  }

  body:not(:has(.toc-sidebar)) .main-content {
    margin-right: auto;
  }
}

@media (min-width: 1400px) {
  .page-wrapper:not(.full-width-content) {
    max-width: 1600px;
  }

  .main-content {
    padding: 40px 64px;
  }
}

.page-wrapper.full-width-content {
  max-width: none;
}

.page-wrapper.full-width-content .main-content {
  max-width: none;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 1023px) {
  .project-sidebar,
  .toc-sidebar {
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 200;
    transform: translateX(-100%);
  }

  .toc-sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }

  .main-content {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  body.project-sidebar-open .project-sidebar,
  body.toc-sidebar-open .toc-sidebar {
    transform: translateX(0);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
}

.content-header {
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 24px;
  padding-bottom: 24px;
  transition: border-color 0.3s ease;
}

.header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.entry-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.entry-type.changelog {
  background-color: var(--type-changelog-bg);
  color: var(--type-changelog-text);
}

.entry-type.documentation {
  background-color: var(--type-docs-bg);
  color: var(--type-docs-text);
}

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.reading-time .far {
  font-size: 0.9em;
  line-height: 1;
}

.entry-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 10px;
  word-wrap: break-word;
}

@media (min-width: 640px) {
  .entry-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .entry-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .entry-title {
    font-size: 2.75rem;
  }
}

.publish-date {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.entry-tags {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-primary);
  line-height: 1.4;
}

body.dark-mode .entry-tags {
  border-top-color: var(--dark-border-primary);
}

.tag-badge {
  display: inline-block;
  background-color: var(--bg-inline-code);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-right: 6px;
  margin-bottom: 6px;
  text-decoration: none;
  white-space: nowrap;
}

body.dark-mode .tag-badge {
  background-color: var(--dark-bg-inline-code);
  color: var(--dark-text-secondary);
}

.markdown-body {
  font-size: 1rem;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.markdown-body > *:first-child {
  margin-top: 0;
}

.markdown-body > *:last-child {
  margin-bottom: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 2.5em 0 1.2em 0;
  scroll-margin-top: 80px;
  word-wrap: break-word;
}

.markdown-body h1 {
  font-size: 1.875rem;
}

.markdown-body h2 {
  font-size: 1.5rem;
  padding-bottom: 0.8em;
  border-bottom: 1px solid var(--border-primary);
}

.markdown-body h3 {
  font-size: 1.25rem;
}

.markdown-body h4 {
  font-size: 1.125rem;
}

.markdown-body h5 {
  font-size: 1rem;
}

.markdown-body h6 {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .markdown-body h1 {
    font-size: 2.25rem;
  }

  .markdown-body h2 {
    font-size: 1.875rem;
  }

  .markdown-body h3 {
    font-size: 1.5rem;
  }

  .markdown-body h4 {
    font-size: 1.25rem;
  }

  .markdown-body h5 {
    font-size: 1.125rem;
  }

  .markdown-body h6 {
    font-size: 1rem;
  }
}

.markdown-body p {
  margin-bottom: 1.5em;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}

@media (min-width: 768px) {
  .markdown-body ul,
  .markdown-body ol {
    margin-left: 2em;
  }
}

.markdown-body li {
  margin-bottom: 0.6em;
}

.markdown-body ul li::marker {
  color: var(--text-muted);
}

.markdown-body a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  word-break: break-word;
}

.markdown-body a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.markdown-body code:not(pre > code) {
  background-color: var(--bg-inline-code);
  color: var(--text-code);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9em;
  vertical-align: middle;
  word-break: break-all;
  white-space: pre-wrap;
}

.markdown-body pre {
  position: relative;
  background-color: var(--bg-code-block);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

@media (min-width: 768px) {
  .markdown-body pre {
    padding: 1.2em 1.5em;
    font-size: 0.9rem;
    margin: 2em 0;
  }
}

.markdown-body pre code.hljs {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  white-space: pre;
  word-break: normal;
}

.copy-code-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--copy-btn-bg);
  color: var(--copy-btn-text);
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease;
  touch-action: manipulation;
}

.markdown-body pre:hover .copy-code-button {
  opacity: 1;
}

.copy-code-button:hover {
  background-color: var(--copy-btn-hover-bg);
}

.copy-code-button .fa-copy {
  margin-right: 4px;
}

.copy-code-button.copied .fa-copy {
  display: none;
}

.copy-code-button .fa-check {
  display: none;
}

.copy-code-button.copied .fa-check {
  display: inline-block;
  margin-right: 4px;
  color: #28a745;
}

@media (hover: none) {
  .copy-code-button {
    opacity: 1;
  }
}

.markdown-body blockquote {
  border-left: 4px solid var(--link-color);
  padding: 0.8em 1em;
  margin: 1.5em 0;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

@media (min-width: 768px) {
  .markdown-body blockquote {
    padding: 0.8em 1.5em;
    margin: 2em 0;
  }
}

.markdown-body blockquote p {
  margin-bottom: 0.5em;
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

.markdown-body hr {
  border: 0;
  height: 1px;
  background-color: var(--border-primary);
  margin: 2em 0;
}

@media (min-width: 768px) {
  .markdown-body hr {
    margin: 3em 0;
  }
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5em 0;
  display: block;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px var(--shadow-color);
  border: 1px solid var(--border-secondary);
  overflow-x: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .markdown-body table {
    margin: 2em 0;
    font-size: 0.95rem;
    display: table;
  }
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--border-secondary);
  padding: 10px;
  text-align: left;
}

@media (min-width: 768px) {
  .markdown-body th,
  .markdown-body td {
    padding: 12px 15px;
  }
}

.markdown-body th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

body.dark-mode .markdown-body tbody tr:nth-child(even) {
  background-color: var(--dark-bg-secondary);
}

.theme-toggle-container {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-primary);
  text-align: center;
}

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color 0.2s ease;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
}

.theme-toggle-btn:hover {
  background-color: var(--toc-link-hover-bg);
}

.theme-toggle-btn .fa-sun {
  color: var(--theme-icon-sun);
}

.theme-toggle-btn .fa-moon {
  color: var(--theme-icon-moon);
}

body.dark-mode .theme-toggle-btn .fa-sun {
  display: none;
}

body:not(.dark-mode) .theme-toggle-btn .fa-moon {
  display: none;
}

.custom-header-content,
.custom-footer-content {
  width: 100%;
  margin-bottom: 24px;
}

.custom-header-content {
  margin-top: 0px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-primary);
}

.custom-footer-content {
  margin-top: 40px;
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-primary);
}

.custom-header-content > *:first-child,
.custom-footer-content > *:first-child {
  margin-top: 0;
}

.custom-header-content > *:last-child,
.custom-footer-content > *:last-child {
  margin-bottom: 0;
}

img.light-mode-image,
img.dark-mode-image {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: var(--radius-md);
  display: block;
}

body:not(.dark-mode) img.dark-mode-image {
  display: none;
}

body:not(.dark-mode) img.light-mode-image {
  display: block;
}

body.dark-mode img.light-mode-image {
  display: none;
}

body.dark-mode img.dark-mode-image {
  display: block;
}

body.dark-mode .custom-header-content {
  border-bottom-color: var(--dark-border-primary);
}

body.dark-mode .custom-footer-content {
  border-top-color: var(--dark-border-primary);
}

pre.language-mermaid {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-align: center;
}

pre.language-mermaid svg {
  max-width: 100%;
  height: auto;
}

.entry-dates {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 15px;
}

.entry-dates span {
  white-space: nowrap;
}

.sidebar-header-item {
  padding: 10px 12px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 15px;
}

.feedback-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-primary);
  text-align: center;
}

body.dark-mode .feedback-section {
  border-top-color: var(--dark-border-primary);
}

.feedback-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

body.dark-mode .feedback-section h4 {
  color: var(--dark-text-secondary);
}

.feedback-section .feedback-btn {
  width: var(--feedback-btn-size);
  height: var(--feedback-btn-size);
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
  font-size: 1.2rem;
  margin: 0 10px;
  padding: 0;
}

.feedback-section .feedback-btn i {
  margin-right: 0;
}

.feedback-section .feedback-btn.feedback-btn-yes {
  background-color: var(--feedback-yes-bg);
  color: var(--feedback-yes-icon-color);
}

.feedback-section .feedback-btn.feedback-btn-no {
  background-color: var(--feedback-no-bg);
  color: var(--feedback-no-icon-color);
}

.feedback-section .feedback-btn:hover:not(:disabled) {
  transform: scale(var(--feedback-btn-hover-scale));
}

.feedback-section .feedback-btn.feedback-btn-yes:hover:not(:disabled) {
  background-color: var(--feedback-yes-hover-bg);
}

.feedback-section .feedback-btn.feedback-btn-no:hover:not(:disabled) {
  background-color: var(--feedback-no-hover-bg);
}

.feedback-section .feedback-btn:active:not(:disabled) {
  transform: scale(calc(var(--feedback-btn-hover-scale) * 0.95));
}

.feedback-section .feedback-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
  background-color: var(--text-muted);
  color: var(--bg-primary);
}

body.dark-mode .feedback-section .feedback-btn:disabled {
  background-color: var(--dark-text-muted);
  color: var(--dark-bg-primary);
}

.feedback-message {
  display: none;
  margin-top: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

body.dark-mode .feedback-message {
  color: var(--dark-text-secondary);
}

@media print {
  .project-sidebar,
  .toc-sidebar,
  .mobile-header,
  .theme-toggle-container,
  .copy-code-button {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    max-width: 100%;
  }

  .page-wrapper {
    display: block;
  }

  .markdown-body a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  body {
    background-color: #fff;
    color: #000;
  }

  @page {
    margin: 2cm;
  }
}
