/* editor.css - modern styling for CDN-hosted editor */
.wys-editor {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #fff;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.wys-toolbar {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  flex-wrap: wrap;
}

.wys-toolbar button {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.wys-toolbar button:hover {
  border-color: #ddd;
  background: #fff;
}

/* Font dropdowns */
.wys-toolbar select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.wys-toolbar select:hover {
  border-color: #ccc;
}

.wys-content {
  min-height: 220px;
  padding: 12px;
  outline: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  white-space: pre-wrap;
}

.wys-status {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  padding: 6px 8px;
}

.wys-btn-active {
  background: #007bff;
  color: white;
  border-color: transparent;
}

.hidden-file-input {
  display: none;
}

/* placeholder */
.wys-content:empty:before {
  content: attr(data-placeholder);
  color: #999;
  pointer-events: none;
}

/* small screens */
@media (max-width: 480px) {
  .wys-toolbar button {
    padding: 6px;
    font-size: 13px;
  }
  .wys-toolbar select {
    font-size: 13px;
    padding: 4px 6px;
  }
}
