/* Global styles - Open Sans as default font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    font-size: 16px;
    line-height: 1.5;
    color: #111827;
    background-color: #F6F7F8;
  }

/* Rich Text Editor */
.rich-editor {
  border: 1px solid #DFE5EC;
  border-radius: 12px;
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rich-editor:focus-within {
  border-color: #F90;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.rich-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 10px;
  background-color: #FAFBFC;
  border-bottom: 1px solid #DFE5EC;
}

.rich-editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #384D64;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.rich-editor-btn:hover {
  background-color: #EEF2F6;
  color: #22364D;
}

.rich-editor-btn:active,
.rich-editor-btn.is-active {
  background-color: rgba(255, 153, 0, 0.12);
  border-color: rgba(255, 153, 0, 0.3);
  color: #F90;
}

.rich-editor-btn sub {
  font-size: 10px;
  margin-left: 1px;
}

.rich-editor-separator {
  width: 1px;
  height: 20px;
  background-color: #DFE5EC;
  margin: 0 6px;
}

.rich-editor-content {
  min-height: 300px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #22364D;
  outline: none;
  overflow-y: auto;
}

.rich-editor-content:empty::before {
  content: attr(data-placeholder);
  color: #8494A7;
  pointer-events: none;
}

.rich-editor-content p { margin: 0 0 10px 0; }
.rich-editor-content p:last-child { margin-bottom: 0; }
.rich-editor-content h2 { font-size: 18px; font-weight: 700; margin: 12px 0 8px; color: #22364D; }
.rich-editor-content h3 { font-size: 16px; font-weight: 700; margin: 10px 0 6px; color: #22364D; }
.rich-editor-content ul,
.rich-editor-content ol { margin: 0 0 10px 0; padding-left: 24px; }
.rich-editor-content li { margin-bottom: 4px; }
.rich-editor-content strong, .rich-editor-content b { font-weight: 700; }
.rich-editor-content em, .rich-editor-content i { font-style: italic; }
