@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;

  color: #0f0f0f;
  background-color: #f6f6f6;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

* {
  margin: 0;
  box-sizing: border-box;
}

body {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.markdown-body {
  table {
    &.hl-source {
      border-radius: 0;

      tr, td {
        background-color: #eff6ff;
        border-radius: 0;
      }
    }
  }

  .hl-source {
    background-color: #eff6ff;
    border-radius: 6px;

    pre {
      background-color: #eff6ff !important;
    }
  }
}

.markdown-body {
  box-sizing: border-box;
  min-width: 200px;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 40px;
}

/* 修改滚动条的宽度和颜色 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: #f2f2f2;
}

/* 修改滚动条滑块的样式 */
::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 5px;
}

/* 修改滚动条滑块悬停时的样式 */
::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

/* 修改滚动条轨道的样式 */
::-webkit-scrollbar-track {
  background-color: #fff;
  border-radius: 8px;
}

.markdown-body video {
  width: 100%;
}

// TODO: 使用 antd 的 Token实现

.ant-menu-item {
  padding-left: 16px !important;
}

.ant-menu-item-active {
  background-color: #eff6ff;
}

.ant-collapse-header {
  padding: 4px 12px;
}

.ant-collapse-content-box {
  font-size: 12px;
  padding: 8px 12px !important;
}

.react-pdf__message--loading {
  height: 100%;
}

@media (prefers-color-scheme: dark) {
}
