@import url("https://fonts.googleapis.com/css2?family=Saira:ital,wght@0,100..900;1,100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --bg-color: rgb(12, 12, 12);
  --bg-code-color: rgb(17, 17, 17);
}

body {
  /* font-family: "Saira", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #dadbda; */

  /* font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #dddddd; */

  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-optical-sizing: auto;
  line-height: 1;
  color: #cccccc;
}

code {
  background-color: #222 !important;
  padding: 3px 4px !important;
  font-size: 0.6rem !important;
  border-radius: 6px !important;
  border: 1px solid #333 !important;
}

.md-content ul>li::marker {
  content: '- ' !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #cccccc !important;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 1 !important;
}

.md-grid {
  max-width: 80%;
}
.md-main__inner {
  margin-top: 0;
  /* border-left: 1px solid #222;
  border-right: 1px solid #222; */
}

.md-content {
  border-left: 1px solid #222;
  border-right: 1px solid #222;
  min-height: 90vh;
}
.md-search__icon.md-icon {
  color: #cccccc !important;
}
/* img {
  width: 100%;
  max-width: 100%;
  height: auto;
} */

@media screen and (max-width: 768px) {
  .md-grid {
    max-width: 100%;
  }
} 
/* .md-nav__icon.md-icon {
  display: none !important;
} */
.md-header__topic span{
  font-weight: 500;
}

b,
.md-nav__title,
strong {
  font-weight: 500;
  color: #ddd !important;
}

.md-typeset {
  font-size: 0.7rem;
}

.md-typeset a {
  font-weight: 500;
  color: #ddd !important;
}

.md-search__inner {
  border: 1px solid #222; 
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background-color: var(--bg-color);
  color: #fff !important;
}

/* Apply custom dark background for the dark (slate) scheme */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--bg-color);
  --md-primary-bg-color: var(--bg-color);
  --md-footer-bg-color: var(--bg-color);
  --md-code-bg-color: var(--bg-code-color);
  --md-typeset-color: #f5f5f5;

  /* Header (top bar) background and text color */
  --md-header-bg-color: #222;
  /* Custom header background */
  --md-header-fg-color: #f5f5f5;
  /* Header text color */
}

/* If --md-header-bg-color doesn't work, override directly: */
[data-md-color-scheme="slate"] .md-header {
  background-color: var(--bg-color) !important;
  border-bottom: 1px solid #222 !important;
  color: #fff !important;
}

.md-header--shadow {
  box-shadow: none;
}

[data-md-color-scheme="slate"] .md-footer-meta {
  background-color: rgb(17, 17, 17);
  border-top: 1px solid #222;
}

/* For Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: rgba(34, 34, 34, 0.6);
  /* Slightly transparent dark */
  border-radius: 10px;
  margin: 4px 0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #444 40%, #666 100%);
  border-radius: 10px;
  border: 2px solid rgba(34, 34, 34, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #888 40%, #aaa 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* For Firefox */
body,
* {
  scrollbar-width: thin;
  scrollbar-color: #666 rgba(34, 34, 34, 0.6);
}

.md-typeset__table {
  width: 100%;
}

td,
th {
  padding: 0.3rem !important;
  border-right: 1px solid #222 !important;
}
td:last-child,
th:last-child {
  border-right: none !important;
}

th {
  font-weight: 600 !important;
  font-size: 0.6rem !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
}

.md-typeset__table table:not([class]) {
  display: table;
}

.md-typeset__table table:not([class]) {
  display: table;
}
.md-code__content {
  font-family: "Fira Code", monospace !important;
  border: 1px solid #222 !important;
}
.highlighttable .code {
  background-color: var(--bg-code-color) !important;
}
.code {
  background-color: rgb(3, 3, 3) !important;
  border-radius: 8px !important;
}
.md-typeset .highlighttable {
  border-radius: 8px !important;
}

.highlighttable .linenodiv {
  padding-right: 0 !important;
  box-shadow: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500 !important;
  color: #fdfdfd !important;
  margin-bottom: 0.5rem !important;
}