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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  height: 100vh;
  overflow: hidden;
}

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 12px;
}

.header h1 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.check-btn {
  padding: 8px 24px;
  background: #4a6cf7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.check-btn:hover:not(:disabled) {
  background: #3b5de7;
  transform: translateY(-1px);
}

.check-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Quill Editor */
.editor-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a4a;
}

#toolbar {
  background: #16213e;
  border: none;
  border-bottom: 1px solid #2a2a4a;
  padding: 8px;
}

#toolbar .ql-stroke {
  stroke: #8888aa;
}

#toolbar .ql-fill {
  fill: #8888aa;
}

#toolbar .ql-picker-label {
  color: #8888aa;
}

#toolbar button:hover .ql-stroke,
#toolbar .ql-active .ql-stroke {
  stroke: #ffffff;
}

#toolbar button:hover .ql-fill,
#toolbar .ql-active .ql-fill {
  fill: #ffffff;
}

#toolbar button.ql-active {
  background: #2a3a6a;
  border-radius: 4px;
}

#toolbar .ql-picker-label:hover,
#toolbar .ql-picker-label.ql-active {
  color: #ffffff;
}

#toolbar .ql-picker-options {
  background: #1e2a4a;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  padding: 4px;
}

#toolbar .ql-picker-item {
  color: #c0c0d0;
}

#toolbar .ql-picker-item:hover {
  color: #ffffff;
}

#editor {
  flex: 1;
  min-height: 0;
  background: #16213e;
  overflow-y: auto;
}

.ql-editor {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  padding: 20px;
  min-height: 100%;
}

.ql-editor.ql-blank::before {
  color: #555577;
  font-style: normal;
}

.ql-editor h1 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.ql-editor h2 {
  font-size: 22px;
  font-weight: 600;
  color: #f0f0f0;
}

.ql-editor h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e0e0f0;
}

.ql-editor blockquote {
  border-left: 3px solid #4a6cf7;
  padding-left: 16px;
  color: #aab0c0;
}

.ql-editor pre {
  background: #0d1524;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
}

.ql-editor code {
  background: #0d1524;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Courier New', monospace;
}

/* Scrollbar */
.ql-editor::-webkit-scrollbar {
  width: 8px;
}

.ql-editor::-webkit-scrollbar-track {
  background: transparent;
}

.ql-editor::-webkit-scrollbar-thumb {
  background: #2a2a4a;
  border-radius: 4px;
}
