/* Proxima Nova Regular */
@font-face {
  font-family: "Proxima Nova";
  src: url("/assets/proximanova_regular-45mnJ3qM.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Proxima Nova Bold */
@font-face {
  font-family: "Proxima Nova";
  src: url("/assets/proximanova_bold-ZY2eH_dj.otf")
    format("opentype");
  font-weight: 700;
  font-style: normal;
}

/* Proxima Nova Bold Italic */
@font-face {
  font-family: "Proxima Nova";
  src: url("/assets/proximanova_boldit-DYlXnkXQ.otf")
    format("opentype");
  font-weight: 700;
  font-style: italic;
}

/* Proxima Nova ExtraBold */
@font-face {
  font-family: "Proxima Nova";
  src: url("/assets/proximanova_extrabold-BXp1-O33.otf")
    format("opentype");
  font-weight: 800;
  font-style: normal;
}

/* Proxima Nova Black */
@font-face {
  font-family: "Proxima Nova";
  src: url("/assets/proximanova_black-DQbc3XgK.otf")
    format("opentype");
  font-weight: 900;
  font-style: normal;
}

/* Proxima Nova Black Italic */
@font-face {
  font-family: "Proxima Nova";
  src: url("/assets/proximanova_blackit--5htLBgR.otf")
    format("opentype");
  font-weight: 900;
  font-style: italic;
}

/* Proxima Nova Light */
@font-face {
  font-family: "Proxima Nova";
  src: url("/assets/proximanova_light-C77mwfk9.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
}

body {
  font-family: "Proxima Nova", sans-serif;
}
.editor-container {
    margin: 20px 0;
    border-radius: 8px;
    max-width: 100%;
    color: #000;
    position: relative;
    line-height: 1.5;
    font-weight: 400;
    border: 1px solid #ddd;
  }

  .editor-inner {
    background: #fff;
    position: relative;
    border-radius: 8px;
    max-height: inherit; /* Use the height from parent container */
    overflow-y: auto;
    overflow-x: auto;
  }

  .editor-input {
    min-height: 300px;
    resize: none;
    font-size: 16px;
    caret-color: rgb(5, 5, 5);
    position: relative;
    tab-size: 1;
    outline: 0;
    padding: 20px;
    caret-color: #444;
  }

  .editor-placeholder {
    color: #999;
    overflow: hidden;
    position: absolute;
    text-overflow: ellipsis;
    top: 20px;
    left: 20px;
    font-size: 16px;
    user-select: none;
    display: inline-block;
    pointer-events: none;
  }

  .editor-paragraph {
    margin: 0 0 16px 0;
    position: relative;
  }

  .editor-heading-h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 12px 0;
  }

  .editor-heading-h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 18px 0 10px 0;
  }

  .editor-heading-h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 16px 0 8px 0;
  }

  .editor-heading-h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 14px 0 6px 0;
  }

  .editor-heading-h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 12px 0 4px 0;
  }

  .editor-text-bold {
    font-weight: bold;
  }

  .editor-text-italic {
    font-style: italic;
  }

  .editor-text-underline {
    text-decoration: underline;
  }

  .editor-text-strikethrough {
    text-decoration: line-through;
  }

  .editor-text-underlineStrikethrough {
    text-decoration: underline line-through;
  }

  .editor-link {
    color: rgb(33, 111, 219);
    text-decoration: none;
  }

  .editor-code {
    background-color: rgb(240, 242, 245);
    font-family: Menlo, Consolas, Monaco, monospace;
    display: block;
    padding: 8px 8px 8px 52px;
    line-height: 1.53;
    font-size: 13px;
    margin: 8px 0;
    tab-size: 2;
    white-space: pre;
    overflow-x: auto;
    position: relative;
  }

  .editor-list-ol {
    padding: 0;
    margin: 0 0 0 16px;
  }

  .editor-list-ul {
    padding: 0;
    margin: 0 0 0 16px;
  }

  .editor-listitem {
    margin: 0 32px 0 0;
  }

  .editor-nested-listitem {
    list-style-type: none;
  }

  .editor-quote {
    margin: 0;
    margin-left: 20px;
    border-left-color: rgb(206, 208, 212);
    border-left-width: 4px;
    border-left-style: solid;
    padding-left: 16px;
  }

  .editor-image {
    max-width: 100%;
    cursor: default;
  }

  .editor-tokenComment {
    color: slategray;
  }

  .editor-tokenPunctuation {
    color: #999;
  }

  .editor-tokenProperty {
    color: #905;
  }

  .editor-tokenSelector {
    color: #690;
  }

  .editor-tokenOperator {
    color: #9a6e3a;
  }

  .editor-tokenAttr {
    color: #07a;
  }

  .editor-tokenVariable {
    color: #e90;
  }

  .editor-tokenFunction {
    color: #dd4a68;
  }

  /* StreamableRichTextEditor.css */

.editor-container {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: white;
  position: relative;
}

.editor-inner {
  height: 100%;
  position: relative;
  flex: 1;
  overflow: auto;
}

.editor-input {
  min-height: 100%;
  resize: none;
  font-size: 15px;
  caret-color: rgb(5, 5, 5);
  position: relative;
  tab-size: 1;
  outline: 0;
  padding: 15px;
  overflow: auto;
}

.editor-placeholder {
  color: #999;
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  top: 15px;
  left: 15px;
  font-size: 15px;
  user-select: none;
  display: inline-block;
  pointer-events: none;
}

.editor-paragraph {
  margin: 0 0 15px 0;
  position: relative;
}

.editor-text-bold {
  font-weight: bold;
}

.editor-text-italic {
  font-style: italic;
}

.editor-text-underline {
  text-decoration: underline;
}

.editor-text-strikethrough {
  text-decoration: line-through;
}

.editor-text-underlineStrikethrough {
  text-decoration: underline line-through;
}

.editor-list-ol {
  padding: 0;
  margin: 0 0 0 16px;
}

.editor-list-ul {
  padding: 0;
  margin: 0 0 0 16px;
}

.editor-listitem {
  margin: 8px 32px;
}

.editor-nested-listitem {
  list-style-type: none;
}

.editor-quote {
  margin: 0;
  margin-left: 20px;
  padding-left: 16px;
  border-left: 4px solid #eeeeee;
  color: #5a5a5a;
}

.editor-heading-h1 {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}

.editor-heading-h2 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0;
}

.editor-heading-h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0;
}

.editor-heading-h4 {
  font-size: 15px;
  font-weight: bold;
  margin: 10px 0;
}

.editor-heading-h5 {
  font-size: 14px;
  font-weight: bold;
  margin: 10px 0;
}

.editor-link {
  color: #1976d2;
  text-decoration: underline;
  cursor: pointer;
}

.editor-code {
  background-color: #f5f5f5;
  font-family: monospace;
  display: block;
  padding: 8px;
  margin: 8px 0;
  border-radius: 4px;
  overflow-x: auto;
}

.editor-text-code {
  background-color: #f5f5f5;
  font-family: monospace;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Token styling for code highlighting */
.editor-tokenComment {
  color: slategray;
}

.editor-tokenPunctuation {
  color: #999;
}

.editor-tokenProperty {
  color: #905;
}

.editor-tokenSelector {
  color: #690;
}

.editor-tokenOperator {
  color: #9a6e3a;
}

.editor-tokenAttr {
  color: #07a;
}

.editor-tokenVariable {
  color: #e90;
}

.editor-tokenFunction {
  color: #dd4a68;
}

/* Table Styles */
.editor-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
  table-layout: fixed;
}

table.editor-table {
  display: table;
  overflow-x: auto;
  border: 1px solid #ccc;
}

.editor-input table {
  border-collapse: collapse;
  margin: 16px 0;
  width: 100%;
  overflow-x: auto;
  display: block;
}

.editor-input table td,
.editor-input table th {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.editor-input table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.editor-input table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.editor-input table tr:hover {
  background-color: #f1f1f1;
}

/* Make tables scroll horizontally on small screens */
.editor-input table {
  overflow-x: auto;
  display: block;
  max-width: 100%;
}

/* Fix table width on mobile */
@media screen and (max-width: 600px) {
  .editor-input table {
    width: 100%;
    display: block;
    overflow-x: auto;
  }
}

/* Additional table styling */
.editor-table {
  margin: 20px 0;
}
