.font-josefin { font-family: 'Josefin Sans', sans-serif; }

.sidebar-link { display:flex; align-items:center; gap:.5rem; padding:.5rem .75rem; border-radius:.5rem; color:#374151; }
.sidebar-link:hover { background:#f3f4f6; color:#111827; }
.sidebar-link.active { background:#111827; color:#fff; }

.card { background:#fff; border-radius:.75rem; box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.card-header { padding: .75rem 1rem; border-bottom:1px solid #e5e7eb; font-weight:600; }
.card-body { padding: 1rem; }

.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding:.75rem 1rem; text-align:left; border-bottom:1px solid #e5e7eb; }
.badge { padding:.15rem .5rem; border-radius:.375rem; font-size:.75rem; }
.badge.green { background:#ecfdf5; color:#065f46; }
.badge.gray { background:#f3f4f6; color:#374151; }

/* Blog editor sizing */
#blog-editor { height: 560px; }
#blog-editor .ql-editor { min-height: 500px; }

/* Notification animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

/* Settings specific styles */
.settings-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.settings-category-count {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.settings-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: all 0.2s ease;
}

.settings-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.settings-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.settings-item-key {
  font-weight: 600;
  color: #111827;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

.settings-item-badges {
  display: flex;
  gap: 0.25rem;
}

.settings-badge {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.settings-badge.public {
  background: #dcfce7;
  color: #166534;
}

.settings-badge.private {
  background: #f3f4f6;
  color: #6b7280;
}

.settings-badge.type {
  background: #dbeafe;
  color: #1e40af;
}

.settings-item-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.settings-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.settings-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.settings-form-content {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
}

.settings-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.settings-form-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.settings-form-close {
  color: #6b7280;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.settings-form-close:hover {
  color: #374151;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .settings-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.settings-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

.settings-filters {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.settings-filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .settings-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.settings-header-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.settings-header-content p {
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.settings-header-actions {
  display: flex;
  gap: 0.75rem;
}

.settings-loading {
  text-align: center;
  color: #6b7280;
  padding: 2.5rem 0;
}

.settings-empty {
  text-align: center;
  color: #6b7280;
  padding: 2.5rem 0;
}

.settings-category-section {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.settings-category-section-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-category-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.settings-category-section-count {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.settings-category-section-body {
  padding: 1.5rem;
}

.settings-category-section-body .space-y-4 > * + * {
  margin-top: 1rem;
}


