/* ContentBlog Theme - Enhanced UI for Blog Management */
/* =================================================== */

/* ------------------------------
  1) ContentBlog Base Theme
-------------------------------- */
:root,
html[data-theme="contentblog"] {
  /* Blog Specific Colors */
  --cb-primary: #4361ee;
  --cb-primary-light: #4895ef;
  --cb-primary-dark: #3a0ca3;
  --cb-secondary: #7209b7;
  --cb-accent: #f72585;
  --cb-success: #4cc9f0;
  --cb-warning: #f8961e;
  --cb-danger: #e63946;
  --cb-info: #38b000;
  
  /* Blog Specific Gradients */
  --cb-gradient-primary: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-secondary) 100%);
  --cb-gradient-success: linear-gradient(135deg, var(--cb-success) 0%, #38b000 100%);
  --cb-gradient-warning: linear-gradient(135deg, var(--cb-warning) 0%, #f3722c 100%);
  
  /* Surface Colors */
  --cb-surface-light: #ffffff;
  --cb-surface-card: #f8fafc;
  --cb-surface-sidebar: #f1f5f9;
  --cb-surface-dark: #1e293b;
  --cb-surface-input: #ffffff;
  
  /* Border Colors */
  --cb-border-light: #e2e8f0;
  --cb-border-medium: #cbd5e1;
  --cb-border-dark: #94a3b8;
  
  /* Text Colors */
  --cb-text-primary: #1e293b;
  --cb-text-secondary: #475569;
  --cb-text-muted: #64748b;
  --cb-text-light: #94a3b8;
  
  /* Shadows */
  --cb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --cb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --cb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --cb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --cb-radius-sm: 8px;
  --cb-radius-md: 12px;
  --cb-radius-lg: 16px;
  --cb-radius-xl: 24px;
  --cb-radius-pill: 9999px;
  
  /* Spacing */
  --cb-spacing-xs: 4px;
  --cb-spacing-sm: 8px;
  --cb-spacing-md: 16px;
  --cb-spacing-lg: 24px;
  --cb-spacing-xl: 32px;
  --cb-spacing-2xl: 48px;
  
  /* Transitions */
  --cb-transition-fast: 150ms ease;
  --cb-transition-base: 250ms ease;
  --cb-transition-slow: 350ms ease;
  
  /* Sidebar Specific */
  --cb-sidebar-width: 320px;
  --cb-sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --cb-sidebar-border: 1px solid #e2e8f0;
  --cb-sidebar-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  
  /* Widget Specific */
  --cb-widget-bg: #ffffff;
  --cb-widget-border: 1px solid rgba(226, 232, 240, 0.8);
  --cb-widget-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ------------------------------
  2) Base Styles for ContentBlog
-------------------------------- */
.contentblog-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--cb-text-primary);
}

/* Typography */
.contentblog-h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--cb-text-primary);
  margin-bottom: 1rem;
}

.contentblog-h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cb-text-primary);
  margin-bottom: 0.75rem;
}

.contentblog-h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cb-text-primary);
  margin-bottom: 0.5rem;
}

.contentblog-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cb-text-secondary);
}

.contentblog-small {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
}

/* ------------------------------
  3) Enhanced Sidebar Widgets (Special Attention)
-------------------------------- */
/* Sidebar Container */
.cb-sidebar {
  width: 100%;
  background: var(--cb-sidebar-bg);
  border: var(--cb-sidebar-border);
  border-radius: var(--cb-radius-lg);
  box-shadow: var(--cb-sidebar-shadow);
  padding: var(--cb-spacing-lg);
  position: sticky;
  top: 20px;
  margin-bottom: var(--cb-spacing-xl);
}

/* Widget Base Styles - CLEAR DEMARCATION */
.cb-widget {
  background: var(--cb-widget-bg);
  border: var(--cb-widget-border);
  border-radius: var(--cb-radius-lg);
  box-shadow: var(--cb-widget-shadow);
  padding: var(--cb-spacing-lg);
  margin-bottom: var(--cb-spacing-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--cb-transition-base);
  border-left: 4px solid transparent;
}

.cb-widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--cb-shadow-lg);
  border-color: var(--cb-primary-light);
}

/* Widget Header - Prominent and Clear */
.cb-widget-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--cb-spacing-md);
  padding-bottom: var(--cb-spacing-sm);
  border-bottom: 2px solid var(--cb-border-light);
  position: relative;
}

.cb-widget-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--cb-gradient-primary);
  border-radius: 1px;
}

.cb-widget-icon {
  width: 40px;
  height: 40px;
  background: var(--cb-gradient-primary);
  border-radius: var(--cb-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--cb-spacing-sm);
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

.cb-widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cb-text-primary);
  margin: 0;
  flex: 1;
}

.cb-widget-subtitle {
  font-size: 0.75rem;
  color: var(--cb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  background: rgba(100, 116, 139, 0.1);
  padding: 2px 8px;
  border-radius: var(--cb-radius-pill);
}

/* Widget Content */
.cb-widget-content {
  margin-top: var(--cb-spacing-md);
}

/* Specific Widget Types with Color Coding */
/* Publish Settings Widget */
.cb-widget-publish {
  border-left-color: var(--cb-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.cb-widget-publish .cb-widget-icon {
  background: var(--cb-gradient-primary);
}

/* Tags Widget */
.cb-widget-tags {
  border-left-color: var(--cb-success);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.cb-widget-tags .cb-widget-icon {
  background: var(--cb-gradient-success);
}

/* SEO Widget */
.cb-widget-seo {
  border-left-color: var(--cb-warning);
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.cb-widget-seo .cb-widget-icon {
  background: var(--cb-gradient-warning);
}

/* Stats Widget */
.cb-widget-stats {
  border-left-color: var(--cb-secondary);
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.cb-widget-stats .cb-widget-icon {
  background: linear-gradient(135deg, var(--cb-secondary) 0%, #9d4edd 100%);
}

/* Widget Form Elements */
.cb-widget .form-label {
  font-weight: 600;
  color: var(--cb-text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cb-widget .form-control,
.cb-widget .form-select {
  background: var(--cb-surface-input);
  border: 2px solid var(--cb-border-light);
  border-radius: var(--cb-radius-md);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  transition: all var(--cb-transition-base);
}

.cb-widget .form-control:focus,
.cb-widget .form-select:focus {
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  background: #ffffff;
}

.cb-widget .form-check-input:checked {
  background-color: var(--cb-primary);
  border-color: var(--cb-primary);
}

/* Stats Grid */
.cb-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.cb-stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--cb-radius-md);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all var(--cb-transition-base);
}

.cb-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--cb-shadow-md);
  border-color: var(--cb-primary-light);
}

.cb-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  background: var(--cb-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cb-stat-label {
  font-size: 0.75rem;
  color: var(--cb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Tag Badges in Widget */
.cb-tag-badge {
  background: rgba(67, 97, 238, 0.1);
  color: var(--cb-primary);
  border: 1px solid rgba(67, 97, 238, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--cb-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--cb-transition-fast);
  cursor: pointer;
}

.cb-tag-badge:hover {
  background: var(--cb-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

/* Widget Action Buttons */
.cb-widget .btn {
  border-radius: var(--cb-radius-pill);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: all var(--cb-transition-base);
  border: 2px solid transparent;
}

.cb-widget .btn-primary {
  background: var(--cb-gradient-primary);
  border: none;
  color: white;
}

.cb-widget .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(67, 97, 238, 0.2);
}

/* ------------------------------
  4) Enhanced Form Sections
-------------------------------- */
.cb-form-section {
  background: var(--cb-surface-card);
  border-radius: var(--cb-radius-lg);
  border: 1px solid var(--cb-border-light);
  box-shadow: var(--cb-shadow-md);
  margin-bottom: var(--cb-spacing-xl);
  overflow: hidden;
  transition: all var(--cb-transition-base);
}

.cb-form-section:hover {
  box-shadow: var(--cb-shadow-lg);
}

.cb-form-section-header {
  background: linear-gradient(90deg, var(--cb-primary) 0%, var(--cb-secondary) 100%);
  color: white;
  padding: var(--cb-spacing-lg);
  position: relative;
}

.cb-form-section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.cb-form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cb-form-section-icon {
  font-size: 1.5rem;
}

.cb-form-section-body {
  padding: var(--cb-spacing-xl);
  background: white;
}

/* Form Elements */
.cb-form-control {
  border: 2px solid var(--cb-border-light);
  border-radius: var(--cb-radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all var(--cb-transition-base);
  background: var(--cb-surface-input);
}

.cb-form-control:focus {
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  background: white;
}

.cb-form-label {
  font-weight: 600;
  color: var(--cb-text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cb-form-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--cb-primary);
  border-radius: 50%;
}

/* Summernote Editor Styling */
.summernote-editor {
  border: 2px solid var(--cb-border-light);
  border-radius: var(--cb-radius-md);
  overflow: hidden;
}

.note-editor.note-frame {
  border: none !important;
  border-radius: var(--cb-radius-md) !important;
  overflow: hidden !important;
}

.note-toolbar {
  background: var(--cb-surface-sidebar) !important;
  border-bottom: 1px solid var(--cb-border-light) !important;
  padding: 0.75rem !important;
  border-radius: var(--cb-radius-md) var(--cb-radius-md) 0 0 !important;
}

.note-editing-area {
  border-radius: 0 0 var(--cb-radius-md) var(--cb-radius-md) !important;
}

/* ------------------------------
  5) Media Upload & Management
-------------------------------- */
.cb-media-upload-area {
  border: 3px dashed var(--cb-border-medium);
  border-radius: var(--cb-radius-lg);
  padding: var(--cb-spacing-2xl);
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  transition: all var(--cb-transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cb-media-upload-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(114, 9, 183, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--cb-transition-base);
}

.cb-media-upload-area:hover::before {
  opacity: 1;
}

.cb-media-upload-area:hover {
  border-color: var(--cb-primary);
  transform: translateY(-2px);
  box-shadow: var(--cb-shadow-lg);
}

.cb-media-upload-icon {
  font-size: 3rem;
  color: var(--cb-primary);
  margin-bottom: var(--cb-spacing-md);
  opacity: 0.8;
}

.cb-media-upload-text h5 {
  color: var(--cb-text-primary);
  font-weight: 700;
  margin-bottom: var(--cb-spacing-sm);
}

.cb-media-upload-text p {
  color: var(--cb-text-muted);
  margin-bottom: var(--cb-spacing-md);
}

/* Media Grid */
.cb-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--cb-spacing-md);
  margin-top: var(--cb-spacing-lg);
}

.cb-media-card {
  background: white;
  border: 1px solid var(--cb-border-light);
  border-radius: var(--cb-radius-md);
  overflow: hidden;
  transition: all var(--cb-transition-base);
  position: relative;
}

.cb-media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cb-shadow-lg);
  border-color: var(--cb-primary-light);
}

.cb-media-preview {
  height: 120px;
  background: var(--cb-surface-sidebar);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cb-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-media-info {
  padding: var(--cb-spacing-sm);
  background: white;
}

.cb-media-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cb-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.cb-media-meta {
  font-size: 0.625rem;
  color: var(--cb-text-muted);
  display: flex;
  justify-content: space-between;
}

/* ------------------------------
  6) View Post Styling
-------------------------------- */
.cb-post-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--cb-radius-lg);
  border: 1px solid var(--cb-border-light);
  padding: var(--cb-spacing-2xl);
  margin-bottom: var(--cb-spacing-xl);
  position: relative;
  overflow: hidden;
}

.cb-post-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cb-gradient-primary);
}

.cb-post-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--cb-text-primary);
  margin-bottom: var(--cb-spacing-md);
  background: linear-gradient(135deg, var(--cb-text-primary) 0%, var(--cb-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cb-post-meta {
  display: flex;
  align-items: center;
  gap: var(--cb-spacing-lg);
  margin-bottom: var(--cb-spacing-lg);
  padding-bottom: var(--cb-spacing-md);
  border-bottom: 1px solid var(--cb-border-light);
}

.cb-author-info {
  display: flex;
  align-items: center;
  gap: var(--cb-spacing-sm);
}

.cb-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: var(--cb-shadow-sm);
}

.cb-post-stats {
  display: flex;
  gap: var(--cb-spacing-xl);
}

.cb-post-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cb-text-muted);
  font-size: 0.875rem;
}

.cb-post-stat i {
  color: var(--cb-primary);
}

/* Post Content */
.cb-post-content {
  background: white;
  border-radius: var(--cb-radius-lg);
  border: 1px solid var(--cb-border-light);
  padding: var(--cb-spacing-2xl);
  margin-bottom: var(--cb-spacing-xl);
  line-height: 1.8;
  font-size: 1.125rem;
}

.cb-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--cb-radius-md);
  margin: var(--cb-spacing-lg) 0;
  box-shadow: var(--cb-shadow-md);
}

.cb-post-content h2,
.cb-post-content h3,
.cb-post-content h4 {
  color: var(--cb-text-primary);
  margin-top: var(--cb-spacing-xl);
  margin-bottom: var(--cb-spacing-md);
  padding-bottom: var(--cb-spacing-sm);
  border-bottom: 2px solid var(--cb-border-light);
}

.cb-post-content blockquote {
  border-left: 4px solid var(--cb-primary);
  padding: var(--cb-spacing-md) var(--cb-spacing-lg);
  margin: var(--cb-spacing-lg) 0;
  background: var(--cb-surface-sidebar);
  border-radius: 0 var(--cb-radius-md) var(--cb-radius-md) 0;
  font-style: italic;
  color: var(--cb-text-secondary);
}

/* ------------------------------
  7) Action Buttons & Controls
-------------------------------- */
.cb-action-buttons {
  display: flex;
  gap: var(--cb-spacing-sm);
  margin-top: var(--cb-spacing-lg);
  padding-top: var(--cb-spacing-lg);
  border-top: 1px solid var(--cb-border-light);
}

.cb-btn {
  border-radius: var(--cb-radius-pill);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all var(--cb-transition-base);
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.cb-btn-primary {
  background: var(--cb-gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.cb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
}

.cb-btn-secondary {
  background: white;
  border: 2px solid var(--cb-border-medium);
  color: var(--cb-text-secondary);
}

.cb-btn-secondary:hover {
  background: var(--cb-surface-sidebar);
  border-color: var(--cb-primary-light);
  color: var(--cb-primary);
}

.cb-btn-danger {
  background: linear-gradient(135deg, var(--cb-danger) 0%, #d00000 100%);
  color: white;
}

/* ------------------------------
  8) Breadcrumbs & Navigation
-------------------------------- */
.cb-breadcrumb {
  background: white;
  border-radius: var(--cb-radius-md);
  padding: var(--cb-spacing-md) var(--cb-spacing-lg);
  border: 1px solid var(--cb-border-light);
  margin-bottom: var(--cb-spacing-xl);
}

.cb-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cb-text-muted);
  text-decoration: none;
  transition: color var(--cb-transition-base);
}

.cb-breadcrumb-item:hover {
  color: var(--cb-primary);
}

.cb-breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--cb-border-dark);
}

/* ------------------------------
  9) Comments Section
-------------------------------- */
.cb-comments-section {
  background: white;
  border-radius: var(--cb-radius-lg);
  border: 1px solid var(--cb-border-light);
  padding: var(--cb-spacing-xl);
  margin-top: var(--cb-spacing-xl);
}

.cb-comments-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--cb-spacing-lg);
  padding-bottom: var(--cb-spacing-md);
  border-bottom: 2px solid var(--cb-border-light);
}

.cb-comments-count {
  background: var(--cb-primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.cb-comment-form {
  background: var(--cb-surface-sidebar);
  border-radius: var(--cb-radius-md);
  padding: var(--cb-spacing-lg);
  margin-bottom: var(--cb-spacing-xl);
}

/* ------------------------------
  10) Responsive Adjustments
-------------------------------- */
@media (max-width: 768px) {
  .cb-sidebar {
    position: static;
    margin-top: var(--cb-spacing-xl);
  }
  
  .cb-widget {
    padding: var(--cb-spacing-md);
  }
  
  .cb-form-section-body {
    padding: var(--cb-spacing-lg);
  }
  
  .cb-post-title {
    font-size: 1.75rem;
  }
  
  .cb-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .cb-media-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 576px) {
  .cb-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--cb-spacing-md);
  }
  
  .cb-post-stats {
    flex-wrap: wrap;
    gap: var(--cb-spacing-md);
  }
  
  .cb-action-buttons {
    flex-direction: column;
  }
  
  .cb-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------------
  11) Utility Classes
-------------------------------- */
.cb-text-gradient {
  background: var(--cb-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cb-card-hover {
  transition: all var(--cb-transition-base);
}

.cb-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--cb-shadow-lg);
}

.cb-border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              var(--cb-gradient-primary) border-box;
}

.cb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--cb-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cb-badge-primary {
  background: rgba(67, 97, 238, 0.1);
  color: var(--cb-primary);
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.cb-badge-success {
  background: rgba(76, 201, 240, 0.1);
  color: var(--cb-success);
  border: 1px solid rgba(76, 201, 240, 0.2);
}

.cb-badge-warning {
  background: rgba(248, 150, 30, 0.1);
  color: var(--cb-warning);
  border: 1px solid rgba(248, 150, 30, 0.2);
}

/* Loading States */
.cb-loading {
  position: relative;
  overflow: hidden;
}

.cb-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: cb-loading 1.5s infinite;
}

@keyframes cb-loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ------------------------------
  12) Dark Mode Support
-------------------------------- */
@media (prefers-color-scheme: dark) {
  :root,
  html[data-theme="contentblog"] {
    --cb-surface-light: #1e293b;
    --cb-surface-card: #0f172a;
    --cb-surface-sidebar: #1e293b;
    --cb-surface-input: #334155;
    --cb-border-light: #475569;
    --cb-border-medium: #64748b;
    --cb-border-dark: #94a3b8;
    --cb-text-primary: #f1f5f9;
    --cb-text-secondary: #cbd5e1;
    --cb-text-muted: #94a3b8;
    --cb-text-light: #64748b;
  }
  
  .cb-widget {
    background: #1e293b;
    border-color: #334155;
  }
  
  .cb-form-section {
    background: #0f172a;
    border-color: #334155;
  }
  
  .cb-form-section-body {
    background: #1e293b;
  }
  
  .cb-post-content {
    background: #1e293b;
    border-color: #334155;
  }
}
