body {
    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif !important;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.md-typeset h5 {
    text-transform: none !important;
}

.access{
    font-weight: bold;
    float: right;
    margin-top: -3.5em;
    text-transform: uppercase;
    font-size: small;
}

.complexity-indicator {
    display: inline-block;
    width: 12px;
    height: 24px;
    margin-right: 10px;
    cursor: help;
    position: relative;
}

.complexity-indicator[data-complexity="low"] {
    background-color: #065f4690;
}

.complexity-indicator[data-complexity="medium"] {
    background-color: #f59e0b90;
}

.complexity-indicator[data-complexity="high"] {
    background-color: #f9731690;
}

.complexity-indicator[data-complexity="critical"] {
    background-color: #ef444490;
}

.md-grid {
    max-width: 100% !important;
    margin: 0 20px !important;
}

.check {
    color: #5da52a;
    font-weight: bold;
}

.exclamation {
    color: #c9730b;
    font-weight: bold;
}

.bullhorm {
    color: #3b5103;
    font-weight: bold;
}

.usecase {
    color: #7c4dff;
    font-weight: bold;
}

.md-typeset h1 {
    font-weight: 600 !important;
    margin-bottom: 1em;
}

.md-header__topic span {
    font-weight: 600 !important;
}

#scope {
    color: #995bc3;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

[id^="imports"] {
    color: #d04e52 !important;
    font-weight: bold !important;
    font-size: 1.5625em !important;
    line-height: 1.4 !important;
    margin: 1em 0 0 !important;
}

#global-code {
    color: #8929b5;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#faqs {
    color: #3b5103;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#insights {
    color: #abae0e;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#complexity, #security , #performance  {
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#variables {
    color: #774ed0;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

[id^="properties"] {
    color: #483280 !important;
    font-weight: bold !important;
    font-size: 1.5625em !important;
    line-height: 1.4 !important;
    margin: 1em 0 0 !important;
}

#methods {
    color: #838717;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#decorators {
    color: #b7be2a;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#functions {
    color: #876d17;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#classes {
    color: #168486;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#constructors {
    color: #165d86;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#destructor {
    color: #861638;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#routers {
    color: #144d36;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#routes {
    color: #17875a;
    font-weight: bold;
    font-size: 1.5625em;
    line-height: 1.4;
    margin: 1em 0 0;
}

#schemas {
    color: #174987;
    font-weight: bold;
}

.globalcode {
    color: #37849e;
    font-weight: bold;
}

.box {
    border: 0.05rem solid var(--md-code-bg-color);
    border-bottom-left-radius: 0.1rem;
    border-bottom-right-radius: 0.1rem;
    border-top-width: 0.1rem;
    margin-top: 1.125em;
    overflow: visible;
    padding: 0 1em;
}

.box code {
    text-wrap: wrap;
}

.box h3 {
    margin: 1em 0 0.8em !important;
}

.box ul li {
    font-size: medium;
}

.md-nav__link .md-ellipsis {
    text-wrap: nowrap;
}

:root>* {
    --md-mermaid-sequence-note-bg-color: #EDF2AE !important;
}

.diagram img {
    display: block;
    margin: 0px auto;
}

#svgdiagram {
    display: block;
    margin: 0 auto;
    max-width: 100% !important;
    height: auto !important;
}

blockquote {
    font-size: medium;
}

.md-logo {
    margin: 0 !important;
    padding: 0 !important;
}

.md-logo img {
    height: 1.9rem !important;
}

.puml .diagram {
    min-height: 300px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 0px auto;
    display: block;
}

.puml .control {
    left: auto !important;
    right: 0 !important;
}

.new-svg {
    min-height: 150px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 0px auto;
    display: block;
}

[data-md-color-scheme="default"] {
    --md-default-bg-color: #FFF;
    --md-primary-bg-color: #000;
    --md-primary-fg-color: #FFF;
    --md-typeset-a-color: #000;
}

[data-md-color-scheme="slate"] {
    --md-default-bg-color: #1B1B1B;
    --md-primary-bg-color: #FFF;
    --md-primary-fg-color: #000;
    --md-typeset-a-color: #FFF;
}

[data-md-color-scheme="default"] .md-header--shadow {
    box-shadow: none !important;
    border-bottom: solid 1px oklch(0.92 0.004 286.32) !important;
}

[data-md-color-scheme="slate"] .md-header--shadow {
    box-shadow: none !important;
    border-bottom: solid 1px oklch(0.274 0.006 286.033) !important;
}

[data-md-color-scheme="default"] .md-search__form {
    background-color: #F2F2F2 !important;
}

[data-md-color-scheme="slate"] .md-search__form {
    background-color: oklch(0.274 0.006 286.033) !important;
}

.md-search__form {
    box-shadow: none !important;
    transition: none !important;
}

[data-md-color-scheme="default"] .md-search__input::placeholder {
    color: #000 !important;
}

[data-md-color-scheme="slate"] .md-search__input::placeholder {
    color: #FFF !important;
}

[data-md-color-scheme="default"] .md-top {
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.3) !important;
}

[data-md-color-scheme="slate"] .md-top {
    box-shadow: 1px 1px 2px 0px rgba(255, 255, 255, 0.3) !important;
}

[data-md-color-scheme="default"] .md-top:hover {
    background-color: #000 !important;
    box-shadow: 1px 1px 2px 0px rgba(255, 255, 255, 0.3) !important;
}

[data-md-color-scheme="slate"] .md-top:hover {
    background-color: #FFF !important;
    color: #000 !important;
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.3) !important;
}

.md-search__input::placeholder {
    transition: none !important;
}

.md-nav__link--active {
    font-weight: bold !important;
    font-style: italic !important;
}

.md-footer {
    display: none !important;
}

div.dark svg.new-svg {
    background-color: rgb(27, 27, 27) !important;
}

div.dark svg.new-svg .title>text {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #FFF !important;
}


/* Custom css for files insights */

/* Insights section container - centers the table */
.insights-container {
  display: flex;
  justify-content: center;
  margin:  1.5rem 0;
}

/* Insights table styling - compact version */
.insights-table {
  border-collapse: collapse;
  width: auto;
  min-width: 450px;
  max-width: 600px;
  background:  #ffffff;
  border:  1px solid #e5e7eb;
  border-radius:  6px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.insights-table thead {
  background: #f3f4f6;
  border-bottom: 2px solid #d1d5db;
}

.insights-table th {
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 600;
  color: #374151;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.insights-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.15s ease;
}

.insights-table tbody tr:last-child {
  border-bottom: none;
}

.insights-table tbody tr:hover {
  background-color: #f9fafb;
}

.insights-table td {
  padding: 0.5rem 1rem;
  vertical-align: middle;
  font-size: 0.875rem;
}

/* Metric name column */
.insights-table .metric-name {
  color: #1f2937;
  font-weight: 600;
  text-align: left;
  font-size: 0.875rem;
}

/* Score column with color coding */
.insights-table .metric-score {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

/* Level column with color coding */
.insights-table .metric-level {
  font-weight: 600;
  text-align: center;
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
}

/* Color coding for scores - Low (Good) - Green */
.insights-table .score-low {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}

/* Color coding for scores - Medium - Yellow */
.insights-table .score-medium {
  background-color: #fef3c7 !important;
  color: #f59e0b !important;
}

/* Color coding for scores - High - Orange */
.insights-table .score-high {
  background-color: #fed7aa !important;
  color: #f97316 !important;
}

/* Color coding for scores - Critical - Red */
.insights-table .score-critical {
  background-color: #fee2e2 !important;
  color: #ef4444 !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .insights-table {
    background:  #1f2937;
    border-color: #374151;
  }
  
  .insights-table thead {
    background: #111827;
    border-bottom-color: #4b5563;
  }
  
  .insights-table th {
    color: #d1d5db;
  }
  
  .insights-table tbody tr {
    border-bottom-color:  #374151;
  }
  
  .insights-table tbody tr:hover {
    background-color: #111827;
  }
  
  .insights-table .metric-name {
    color: #e5e7eb;
  }
  
  /* Dark mode color adjustments */
  .insights-table .score-low {
    background-color: #064e3b ! important;
    color: #6ee7b7 !important;
  }
  
  .insights-table .score-medium {
    background-color: #78350f !important;
    color:  #fcd34d !important;
  }
  
  .insights-table .score-high {
    background-color: #7c2d12 !important;
    color: #fdba74 !important;
  }
  
  .insights-table .score-critical {
    background-color: #7f1d1d !important;
    color: #fca5a5 !important;
  }
}

/* Responsive design */
@media (max-width:  768px) {
  .insights-table {
    min-width: unset;
    width: 100%;
  }
  
  .insights-table th,
  .insights-table td {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .insights-table .metric-score {
    font-size: 0.85rem;
  }
}

/* Criticality icon colors */
.low {
  color: #065f46 !important;
}

.medium {
  color: #f59e0b !important;
}

.high {
  color: #f97316 !important;
}

.critical {
  color: #ef4444 ! important;
}

/* File header with title and insight icons */
/* File header with title and insight icons */
h1:has(.insightbar) {
  display: flex ! important;
  justify-content: space-between ! important;
  align-items:  center !important;
  margin-bottom: 1.5rem !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

/* Insight bar - icons container */
.insightbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

/* Individual insight icons */
.insightbar .twemoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 24px ! important;
  height: 24px !important;
}

.insightbar .twemoji:hover {
  transform:  scale(1.2);
  opacity: 0.85;
}

/* Force SVG icon size to 24px */
.insightbar .twemoji svg {
  width: 24px !important;
  height: 24px !important;
}

/* Color coding using existing classes */
.insightbar .twemoji.low svg {
  fill: #065f46 !important;
}

.insightbar .twemoji.medium svg {
  fill: #f59e0b !important;
}

.insightbar .twemoji.high svg {
  fill: #f97316 !important;
}

.insightbar .twemoji.critical svg {
  fill: #ef4444 !important;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .insightbar .twemoji.low svg {
    fill: #6ee7b7 !important;
  }
  
  .insightbar .twemoji.medium svg {
    fill: #fcd34d !important;
  }
  
  .insightbar .twemoji.high svg {
    fill: #fdba74 !important;
  }
  
  .insightbar .twemoji.critical svg {
    fill: #fca5a5 !important;
  }
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
  h1:has(.insightbar) {
    flex-direction: column ! important;
    align-items: flex-start !important;
  }
  
  .insightbar {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
}

/* Fallback for browsers that don't support : has() */
@supports not (selector(: has(.insightbar))) {
  h1 {
    display: flex;
    justify-content: space-between;
    align-items:  center;
    flex-wrap: wrap;
  }
}