@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro/fonts/webfonts/BeVietnamPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro/fonts/webfonts/BeVietnamPro-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro/fonts/webfonts/BeVietnamPro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro/fonts/webfonts/BeVietnamPro-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro/fonts/webfonts/BeVietnamPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: 'Nunito', sans-serif;
}

.ant-table {
  border: 1px solid #f0f0f0;
  border-bottom: none;
}

.ant-card {
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 4px;
}

.filter-wrapper {
  margin: 20px 0 !important;
}

.filter-form {
  gap: 0 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.filter-form .form-btn-group {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.ant-table-wrapper + .ant-pagination {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0;
}

.ant-segmented-item {
  margin-bottom: 0;
}

.react-datepicker__close-icon::after {
  top: 30% !important;
}

.margin-bottom-sm {
  margin-bottom: 5px;
}

.rdw-editor-toolbar {
  z-index: 10;
}

.rendered-content {
  border: 1px solid #ddd;
  padding: 10px;
  min-height: 150px;
  margin: 20px auto;
  max-width: 600px;
  text-align: left;
}

.EditorContent {
  border: 1px solid #ddd;
  padding: 10px;
  min-height: 150px;
  margin: 20px auto;
  max-width: 600px;
}

.toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.toolbar button {
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

.toolbar .is-active {
  background-color: #d3d3d3;
}

.editor_root {
  display: flex;
  justify-content: start;
  flex-direction: column;
  gap: 12px;
  width: inherit;
  margin-bottom: 16px;

  & p {
    margin: 0;
  }
}

.tiptapEditor {
  text-align: left;
  border: 1px solid #ddd;
  padding: 20px;
  margin-top: 20px;
}

.tiptap {
  width: 100%;

  &:focus-visible {
    outline: none;
  }
}

.tiptap p.is-editor-empty:first-child::before {
  color: #adb5bd;
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.justify-start {
  justify-content: start;
}

.justify-end {
  justify-content: end;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.gap-4 {
  gap: 4px;
}

.gap-6 {
  gap: 6px;
}

.gap-8 {
  gap: 8px;
}

.tiptapRender {
  white-space: normal;
  line-height: 2;
  font-size: 19px;
  font-family: 'BeVietnamPro', sans-serif;
}

/* Keep math flowing inline with surrounding text. */
.tiptapRender .math-render {
  display: inline-block;
  vertical-align: 0.02em;
}
.tiptapRender p {
  margin-bottom: 0;
}

.tiptapRender p + p {
  margin-top: 12px;
}

.ProseMirror p {
  margin: 0;
}

.ProseMirror p + p {
  margin-top: 8px;
}


.tiptap_editor {
  padding: 8px;
  cursor: text !important;
  border: 1px solid #d9d9d9;
  border-radius: 6px;

  &:hover,
  &:active {
    border-color: #4096ff;
    box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
  }
}

.ProseMirror * {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.editor {
  width: 100%;
}

.bubble {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-radius: 8px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2px;
  row-gap: 4px;
  padding: 4px;
  background-color: white;

  .font_size {
    width: 60px;
    border-radius: 0.375rem;
    padding: 0 6px;
    border: 1px solid rgb(229, 229, 229);
    outline: none;
  }
  & > button {
    all: unset;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 34px;
    margin: 0 2px;
    line-height: 34px;
    border-radius: 0.375rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.04);

    &:hover {
      background-color: rgba(0, 0, 0, 0.09);
    }

    &:active {
      background-color: rgba(0, 0, 0, 0.2);
    }
  }

  .active:hover {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .active {
    background-color: rgba(0, 0, 0, 0.3);
  }
}

.colorPicker {
  border: none;
  padding: 0;
  cursor: pointer;
  width: 60px;
  padding: 0 8px;
  height: 34px;
  cursor: pointer;
  border-radius: 0.375rem;
  margin: 0 2px;

  &:hover {
    background-color: rgba(0, 0, 0, 0.09);
  }

  &:active {
    background-color: rgba(0, 0, 0, 0.2);
  }

  .active:hover {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .active {
    background-color: rgba(0, 0, 0, 0.3);
  }
}


.rotate {
  animation: spin 1s ease;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}