/* Blog Content Editor Styles */
.blog-editor-container {
    min-height: 500px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border: 1px solid #e1e5e9;
    padding-top: 30px;
  }
  
  .editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* background-color: gray; */
    color: white;
    border-bottom: 1px solid #e1e5e9;
  }
  
  .editor-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .character-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
  }
  
  /* Custom Quill Editor Styles */
  .custom-quill-editor {
    height: 400px;
    border: none !important;
  }
  
  .ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 16px 24px !important;
    background: #fafbfc;
    border-radius: 0 !important;
  }
  
  .ql-container.ql-snow {
    border: none !important;
    border-radius: 0 !important;
    font-size: 16px;
    line-height: 1.7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  
  .ql-editor {
    padding: 24px !important;
    min-height: 350px;
    color: #2d3748;
    background: #ffffff;
  }
  
  .ql-editor.ql-blank::before {
    color: #a0aec0 !important;
    font-style: italic !important;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
  }
  
  .ql-editor h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
  }
  
  .ql-editor h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2rem 0 1rem 0;
  }
  
  .ql-editor h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.5rem 0 0.75rem 0;
  }
  
  .ql-editor p {
    margin-bottom: 1rem;
    line-height: 1.8;
  }
  
  .ql-editor ul, .ql-editor ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .ql-editor li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
  }
  
  .ql-editor blockquote {
    border-left: 4px solid #667eea;
    background: #f7fafc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4a5568;
    border-radius: 0 8px 8px 0;
  }
  
  .ql-editor .ql-code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin: 1rem 0;
  }
  
  .ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* Toolbar Button Styles */
  .ql-snow .ql-stroke {
    stroke: #4a5568;
  }
  
  .ql-snow .ql-fill {
    fill: #4a5568;
  }
  
  .ql-snow .ql-picker-label:hover,
  .ql-snow .ql-picker-label.ql-active {
    color: #667eea !important;
  }
  
  .ql-snow .ql-picker-options .ql-picker-item:hover {
    color: #667eea !important;
  }
  
  .ql-snow .ql-toolbar button:hover,
  .ql-snow .ql-toolbar button:focus,
  .ql-snow .ql-toolbar button.ql-active {
    color: #667eea !important;
    background: #edf2f7;
  }
  
  .ql-snow .ql-toolbar button:hover .ql-stroke,
  .ql-snow .ql-toolbar button:focus .ql-stroke,
  .ql-snow .ql-toolbar button.ql-active .ql-stroke {
    stroke: #667eea !important;
  }
  
  .ql-snow .ql-toolbar button:hover .ql-fill,
  .ql-snow .ql-toolbar button:focus .ql-fill,
  .ql-snow .ql-toolbar button.ql-active .ql-fill {
    fill: #667eea !important;
  }
  
  /* Color Picker Styles */
  .ql-snow .ql-color-picker .ql-picker-item.ql-selected,
  .ql-snow .ql-color-picker .ql-picker-item:hover {
    border-color: #667eea !important;
  }
  
  /* Link Tooltip */
  .ql-snow .ql-tooltip {
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  
  .ql-snow .ql-tooltip input[type="text"] {
    border: 1px solid #4a5568;
    border-radius: 6px;
    padding: 8px 12px;
    background: #1a202c;
    color: white;
  }
  
  .ql-snow .ql-tooltip a.ql-action::after {
    color: #667eea;
    border-right: 1px solid #4a5568;
  }
  
  .ql-snow .ql-tooltip a.ql-remove::before {
    color: #e53e3e;
  }
  
  /* Editor Footer */
  .editor-footer {
    padding: 16px 24px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
  }
  
  .formatting-tips {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #718096;
  }
  
  .formatting-tips span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .blog-editor-container {
      margin-bottom: 20px;
    }
    
    .editor-header {
      padding: 16px 20px;
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }
    
    .editor-header h3 {
      font-size: 1.125rem;
    }
    
    .ql-toolbar.ql-snow {
      padding: 12px 16px !important;
    }
    
    .ql-editor {
      padding: 20px !important;
    }
    
    .custom-quill-editor {
      height: 350px;
    }
  }
  
  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    .blog-editor-container {
      background: #1a202c;
      border-color: #2d3748;
    }
    
    .ql-toolbar.ql-snow {
      background: #2d3748;
      border-bottom-color: #4a5568 !important;
    }
    
    .ql-container.ql-snow {
      background: #1a202c;
    }
    
    .ql-editor {
      background: #1a202c;
      color: #e2e8f0;
    }
    
    .ql-editor.ql-blank::before {
      color: #718096 !important;
    }
    
    .editor-footer {
      background: #2d3748;
      border-top-color: #4a5568;
    }
  }
  
  /* Custom scrollbar for editor */
  .ql-editor::-webkit-scrollbar {
    width: 8px;
  }
  
  .ql-editor::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  .ql-editor::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }
  
  .ql-editor::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
  
  /* Enhanced Toolbar Styles for Individual Header Buttons */
  .ql-toolbar .ql-formats {
    margin-right: 15px;
    border-right: 1px solid #e2e8f0;
    padding-right: 15px;
  }
  
  .ql-toolbar .ql-formats:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  
  /* Style individual header buttons */
  .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
    content: "H1";
    font-weight: 700;
    font-size: 18px;
  }
  
  .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
    content: "H2";
    font-weight: 600;
    font-size: 16px;
  }
  
  .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
    content: "H3";
    font-weight: 600;
    font-size: 14px;
  }
  
  /* Custom button styles for individual headers */
  .ql-header-1, .ql-header-2, .ql-header-3 {
    font-weight: bold !important;
  }
  
  /* Make the toolbar more compact and organized */
  .ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
  }
  
  .ql-toolbar.ql-snow .ql-formats {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  /* Custom styles for when using individual header buttons */
  .ql-snow .ql-toolbar button.ql-active {
    background: #667eea;
    color: white !important;
  }
  
  .ql-snow .ql-toolbar button.ql-active .ql-stroke {
    stroke: white !important;
  }
  
  .ql-snow .ql-toolbar button.ql-active .ql-fill {
    fill: white !important;
  }
  
  /* Custom Toolbar Styles */
  #toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
  }
  
  /* Header dropdown styling */
  .ql-snow .ql-picker.ql-header {
    width: 120px;
  }
  
  .ql-snow .ql-picker.ql-header .ql-picker-label::before {
    content: "Format";
  }
  
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
    content: "Heading 1";
    font-weight: 700;
    font-size: 18px;
  }
  
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
    content: "Heading 2";
    font-weight: 600;
    font-size: 16px;
  }
  
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
    content: "Heading 3";
    font-weight: 600;
    font-size: 14px;
  }
  
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
    content: "Heading 4";
    font-weight: 500;
    font-size: 13px;
  }
  
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
    content: "Heading 5";
    font-weight: 500;
    font-size: 12px;
  }
  
  .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=""]::before {
    content: "Paragraph";
    font-weight: 400;
  }
  
  /* Alternative: Individual header buttons */
  .individual-headers {
    display: flex;
    gap: 2px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
  }
  
  .header-button {
    padding: 6px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
  }
  
  .header-button:hover {
    background: #edf2f7;
  }
  
  .header-button.active {
    background: #667eea;
    color: white;
  }
  
  /* Remove default toolbar border since we have custom toolbar */
  .ql-toolbar.ql-snow {
    border: none !important;
    padding: 0 !important;
  }
  
  .ql-toolbar.ql-snow .ql-formats {
    display: flex;
    align-items: center;
    gap: 5px;
  }