@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* =========================================================
   1. BASE & RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  background-color: #f7f7f5;
  color: #1f2937;
  margin: 0;
  padding: 24px 16px;
  min-height: 100vh;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  appearance: none;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}


/* =========================================================
   2. CARDS & CONTAINERS
   ========================================================= */

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

.dashboard-card {
  max-width: 640px;
}

.wide-card,
.admin-container,
.form-card {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 32px;
}


/* =========================================================
   3. HEADER & NAVIGATION
   ========================================================= */

header,
.admin-header,
.topbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 32px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #e5e7eb !important;
  flex-wrap: wrap !important;
}

header h1,
.admin-header h1,
.topbar h1 {
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #111827 !important;
  white-space: nowrap !important;
}

header nav,
.admin-header nav,
.topbar nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
}

header nav a,
.admin-header nav a,
.topbar nav a {
  color: #4b5563 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  transition: color 0.15s ease !important;
}

header nav a:hover,
.admin-header nav a:hover,
.topbar nav a:hover,
header nav a.active,
.admin-header nav a.active,
.topbar nav a.active {
  color: #111827 !important;
}

header nav a.active,
.admin-header nav a.active,
.topbar nav a.active {
  font-weight: 600 !important;
}

/* Buttons inside navigation/header */

header nav button,
.admin-header nav button,
.topbar nav button,
header button,
.admin-header button,
.topbar button,
#logout-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: unset !important;
  height: 36px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 24px;
  color: #111827;
}

h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 20px;
  color: #111827;
}

h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #111827;
}

p {
  margin-top: 0;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #4b5563;
}

.help-text {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  margin-top: -10px;
  margin-bottom: 14px;
}

.muted {
  color: #6b7280;
}

.small {
  font-size: 12px;
}


/* =========================================================
   5. FORM CONTROLS
   ========================================================= */

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  font-family: inherit;
  color: #1f2937;
  background: #ffffff;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out,
    background-color 0.15s ease-in-out;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #9ca3af;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled,
.input-disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

input[readonly],
textarea[readonly] {
  background-color: #f9fafb;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input[type="file"] {
  padding: 8px 10px;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: #2563eb;
}

.form-group {
  margin-bottom: 12px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row > div {
  flex: 1;
  min-width: 0;
}


/* =========================================================
   6. BUTTONS
   ========================================================= */

button,
.btn-primary {
  width: 100%;
  min-height: 40px;
  padding: 10px 16px;
  background: #1f2937;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease;
}

button:hover,
.btn-primary:hover {
  background: #111827;
}

button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.secondary,
.btn-secondary {
  background: #e5e7eb;
  color: #1f2937;
}

button.secondary:hover,
.btn-secondary:hover {
  background: #d1d5db;
}

button.btn-success,
.btn-success {
  background: #059669;
  color: #ffffff;
}

button.btn-success:hover,
.btn-success:hover {
  background: #047857;
}

button.danger,
.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

button.danger:hover,
.btn-danger:hover {
  background: #b91c1c;
}

.btn-small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.btn-icon {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px;
  min-height: 36px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================
   7. ACTION ROWS & TOOLBARS
   ========================================================= */

.form-actions,
.action-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.form-actions button,
.action-row button,
.form-actions a,
.action-row a {
  width: auto;
  min-width: 100px;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar select {
  width: auto;
  min-width: 150px;
  margin-bottom: 0;
}

.toolbar button {
  width: auto;
  padding: 8px 16px;
}


/* =========================================================
   8. CONTENT EDITOR
   ========================================================= */

.editor-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.editor-main,
.editor-sidebar {
  min-width: 0;
}

.editor-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

.editor-section:last-child {
  margin-bottom: 0;
}

.editor-section-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  margin: 0 0 18px;
}

.editor-section-description {
  color: #6b7280;
  font-size: 13px;
  margin: -10px 0 18px;
}

.editor-sidebar {
  position: sticky;
  top: 20px;
}

.editor-sidebar .editor-section {
  margin-bottom: 16px;
}

.editor-sidebar .editor-section:last-child {
  margin-bottom: 0;
}


/* =========================================================
   9. EDITOR HEADER / ACTION BAR
   ========================================================= */

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.editor-header-left {
  min-width: 0;
}

.editor-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.editor-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-actions button {
  width: auto;
  min-width: 100px;
}

.editor-action-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.editor-action-bar-left,
.editor-action-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-action-bar button {
  width: auto;
  min-width: 100px;
}


/* =========================================================
   10. EDITOR STATUS
   ========================================================= */

.save-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}

.save-status.saving {
  color: #92400e;
}

.save-status.saved {
  color: #047857;
}

.save-status.unsaved {
  color: #b45309;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.editor-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
}


/* =========================================================
   11. TITLE / PRIMARY CONTENT FIELDS
   ========================================================= */

.editor-title-input {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  padding: 12px 14px;
}

.editor-title-input::placeholder {
  font-weight: 400;
}

.editor-subtitle-input {
  font-size: 16px;
}

.editor-excerpt {
  min-height: 90px;
}


/* =========================================================
   12. RICH TEXT / BODY EDITOR
   ========================================================= */

.editor-body {
  min-height: 500px;
  font-size: 15px;
  line-height: 1.7;
}

.editor-body textarea {
  min-height: 500px;
  font-size: 15px;
  line-height: 1.7;
  font-family:
    'Inter',
    'Noto Sans Bengali',
    system-ui,
    sans-serif;
}

/* Generic editor container */

.rich-editor {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.rich-editor:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rich-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.rich-editor-toolbar button {
  width: 34px;
  min-width: 34px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: #374151;
  border-radius: 6px;
}

.rich-editor-toolbar button:hover {
  background: #e5e7eb;
}

.rich-editor-content {
  min-height: 500px;
  padding: 16px;
  outline: none;
}


/* =========================================================
   13. URL / PATH DISPLAY
   ========================================================= */

.path-preview {
  font-size: 13px;
  color: #6b7280;
  margin-top: -10px;
  margin-bottom: 16px;
  word-break: break-all;
}

.path-preview strong {
  color: #374151;
}

.path-display {
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.path-display-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.path-display-value {
  display: block;
  color: #374151;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 13px;
  word-break: break-all;
}


/* =========================================================
   14. COVER IMAGE / MEDIA
   ========================================================= */

.cover-panel {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.cover-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 12px;
  background: #f3f4f6;
}

.cover-preview img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: 6px;
  object-fit: contain;
}

.cover-empty {
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

.cover-meta {
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #6b7280;
}

.media-upload {
  margin-top: 12px;
}

.media-upload input[type="file"] {
  margin-bottom: 8px;
}

.upload-status {
  font-size: 12px;
  color: #6b7280;
}

.upload-status.uploading {
  color: #92400e;
}

.upload-status.success {
  color: #047857;
}

.upload-status.error {
  color: #b91c1c;
}


/* =========================================================
   15. TAGS
   ========================================================= */

.chips-container,
#tags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  user-select: none;
}

.chip:hover {
  background-color: #e5e7eb;
}

.chip.active {
  background-color: #1f2937;
  color: #ffffff;
  border-color: #1f2937;
}

.chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}


/* =========================================================
   16. METADATA / SEO
   ========================================================= */

.metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metadata-grid .full-width {
  grid-column: 1 / -1;
}

.seo-preview {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.seo-preview-title {
  color: #1a0dab;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 3px;
}

.seo-preview-url {
  color: #168039;
  font-size: 12px;
  margin-bottom: 5px;
  word-break: break-all;
}

.seo-preview-description {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}


/* =========================================================
   17. STATUS ROWS & STRUCTURAL BOXES
   ========================================================= */

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background-color: #f9fafb;
}

.status-row span {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 13px;
  color: #374151;
}


/* =========================================================
   18. BADGES
   ========================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
}

.badge-draft {
  background: #fef3c7;
  color: #92400e;
}

.badge-published {
  background: #d1fae5;
  color: #065f46;
}

.badge-archived {
  background: #e5e7eb;
  color: #374151;
}

.badge-deleted {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

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


/* =========================================================
   19. TABLES
   ========================================================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  padding: 10px 8px;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

td {
  padding: 12px 8px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

tbody tr:hover td {
  background: #fafaf9;
}

td a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
}

td a:hover {
  text-decoration: underline;
}


/* =========================================================
   20. PAGINATION
   ========================================================= */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
  flex-wrap: wrap;
}

.pagination button {
  width: auto;
  min-width: 80px;
  padding: 6px 14px;
}


/* =========================================================
   21. ALERTS / NOTICES / ERRORS
   ========================================================= */

.alert,
.error,
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.error,
.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.notice {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}


/* =========================================================
   22. LOADING / PROCESSING STATES
   ========================================================= */

.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.loading-text {
  color: #6b7280;
  font-size: 13px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-top-color: #374151;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* =========================================================
   23. FILE UPLOAD
   ========================================================= */

.file-upload-group {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.file-upload-group input[type="file"] {
  margin-bottom: 0;
  flex: 1;
}

.file-upload-group button {
  width: auto;
  white-space: nowrap;
}

.image-preview {
  margin-top: 8px;
  margin-bottom: 16px;
}

.image-preview img {
  max-width: 200px;
  max-height: 140px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
}


/* =========================================================
   24. EMPTY STATES
   ========================================================= */

.empty-state {
  padding: 32px 20px;
  text-align: center;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  background: #fafafa;
}

.empty-state-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.empty-state-text {
  margin: 0;
  font-size: 13px;
}


/* =========================================================
   25. CONTENT LIST / ADMIN UTILITIES
   ========================================================= */

.content-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}

.content-meta-separator {
  color: #d1d5db;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-break {
  word-break: break-word;
}


/* =========================================================
   26. VISUALLY HIDDEN
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* =========================================================
   27. HIDDEN
   ========================================================= */

.hidden {
  display: none !important;
}


/* =========================================================
   28. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
  }

  .editor-section {
    padding: 20px;
  }

  .wide-card,
  .admin-container,
  .form-card {
    max-width: 100%;
  }
}


/* =========================================================
   29. RESPONSIVE — MOBILE / SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

  body {
    padding: 16px 10px;
  }

  .card,
  .wide-card,
  .admin-container,
  .form-card {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    position: static;
  }

  .editor-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-header-right {
    width: 100%;
  }

  .editor-actions {
    width: 100%;
  }

  .editor-actions button {
    flex: 1;
  }

  .editor-action-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .editor-action-bar-left,
  .editor-action-bar-right {
    width: 100%;
  }

  .editor-action-bar button {
    flex: 1;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .metadata-grid .full-width {
    grid-column: auto;
  }
}


/* =========================================================
   30. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 640px) {

  body {
    padding: 10px 6px;
  }

  .card,
  .wide-card,
  .admin-container,
  .form-card {
    padding: 20px 14px;
    border-radius: 8px;
  }

  header,
  .admin-header,
  .topbar {
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
  }

  header,
  .admin-header,
  .topbar {
    align-items: flex-start !important;
  }

  header nav,
  .admin-header nav,
  .topbar nav {
    width: 100%;
    gap: 12px !important;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .editor-section {
    padding: 16px;
    margin-bottom: 14px;
  }

  .editor-title {
    font-size: 20px;
  }

  .editor-title-input {
    font-size: 20px;
  }

  .editor-body textarea {
    min-height: 400px;
  }

  .form-actions,
  .action-row {
    width: 100%;
  }

  .form-actions button,
  .action-row button,
  .form-actions a,
  .action-row a {
    flex: 1;
    min-width: 0;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar select,
  .toolbar button {
    width: 100%;
  }

  .status-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-upload-group {
    flex-direction: column;
    align-items: stretch;
  }

  .file-upload-group input[type="file"],
  .file-upload-group button {
    width: 100%;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination button {
    width: 100%;
  }

  .editor-action-bar-left,
  .editor-action-bar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-action-bar button {
    width: 100%;
  }
}


/* =========================================================
   31. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}