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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Recording Header */
.recording-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

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

.header-icon {
  color: #6366f1;
}

.header-left h1 {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
}

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

.timer {
  font-size: 18px;
  font-family: monospace;
  color: #64748b;
}

.timer.active {
  color: #ef4444;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.status-text {
  font-size: 13px;
  color: #94a3b8;
}

.status-text.recording {
  color: #ef4444;
}

.status-text.processing {
  color: #3b82f6;
}

.header-right {
  display: flex;
  align-items: center;
}

.record-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #6366f1;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.record-btn:hover {
  background: #4f46e5;
  transform: scale(1.05);
}

.record-btn.recording {
  background: #ef4444;
}

.record-btn.recording:hover {
  background: #dc2626;
}

.record-btn:disabled {
  background: #4a4a4a;
  cursor: not-allowed;
  transform: none;
}

/* Editor Section */
.editor-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0f172a;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.recording-count {
  font-size: 12px;
  color: #64748b;
}

.editor-actions {
  display: flex;
  gap: 6px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #334155;
  color: #e2e8f0;
}

.action-btn.success {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #22c55e;
}

/* Quill Editor Styling */
#editor {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ql-toolbar.ql-snow {
  background: #1e293b;
  border: none;
  border-bottom: 1px solid #334155;
  padding: 8px 12px;
}

.ql-toolbar .ql-stroke {
  stroke: #94a3b8;
}

.ql-toolbar .ql-fill {
  fill: #94a3b8;
}

.ql-toolbar .ql-picker {
  color: #94a3b8;
}

.ql-toolbar .ql-picker-options {
  background: #1e293b;
  border: 1px solid #334155;
}

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

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

.ql-toolbar .ql-picker-label:hover,
.ql-toolbar .ql-picker-item:hover {
  color: #6366f1;
}

.ql-container.ql-snow {
  border: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

.ql-editor {
  flex: 1;
  padding: 16px 20px;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-y: auto;
}

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

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
  color: #f1f5f9;
}

.ql-editor a {
  color: #6366f1;
}

.ql-editor blockquote {
  border-left: 4px solid #6366f1;
  padding-left: 16px;
  color: #94a3b8;
}

.ql-editor code, .ql-editor pre {
  background: #1e293b;
  border-radius: 4px;
}

.ql-editor ul, .ql-editor ol {
  padding-left: 20px;
}

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

.ql-editor::-webkit-scrollbar-track {
  background: #0f172a;
}

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

.ql-editor::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
