/* Quill Editor Styles */

/* Snow theme styles */
.ql-snow {
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: white;
}

.ql-snow .ql-toolbar {
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0.375rem 0.375rem 0 0;
  background: #f9fafb;
  padding: 0.75rem;
}

.ql-snow .ql-container {
  border: none;
  border-radius: 0 0 0.375rem 0.375rem;
}

.ql-snow .ql-editor {
  min-height: 200px;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
}

.ql-snow .ql-editor.ql-blank::before {
  color: #9ca3af;
  font-style: italic;
}

/* Toolbar button styles */
.ql-snow .ql-toolbar button {
  border: none;
  background: none;
  padding: 0.25rem;
  border-radius: 0.25rem;
  margin: 0 0.125rem;
  color: #6b7280;
  transition: all 0.2s;
}

.ql-snow .ql-toolbar button:hover {
  background: #e5e7eb;
  color: #374151;
}

.ql-snow .ql-toolbar button.ql-active {
  background: #dbeafe;
  color: #2563eb;
}

/* Dropdown styles */
.ql-snow .ql-picker {
  color: #6b7280;
}

.ql-snow .ql-picker-options {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ql-snow .ql-picker-item {
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin: 0.25rem;
}

.ql-snow .ql-picker-item:hover {
  background: #f3f4f6;
}

/* Focus styles */
.ql-snow.ql-focused {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Content styles */
.ql-editor h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1f2937;
}

.ql-editor h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.875rem;
  color: #374151;
}

.ql-editor h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #4b5563;
}

.ql-editor p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ql-editor blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #6b7280;
}

.ql-editor ul, .ql-editor ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.ql-editor li {
  margin-bottom: 0.5rem;
}

.ql-editor pre {
  background: #f3f4f6;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #1f2937;
}

.ql-editor code {
  background: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #dc2626;
}

.ql-editor a {
  color: #2563eb;
  text-decoration: underline;
}

.ql-editor a:hover {
  color: #1d4ed8;
}

.ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .ql-snow .ql-toolbar {
    padding: 0.5rem;
  }
  
  .ql-snow .ql-toolbar button {
    padding: 0.125rem;
    margin: 0 0.0625rem;
  }
  
  .ql-snow .ql-editor {
    min-height: 150px;
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}