/* ==========================================================================
   Blaud Escritor - Admin CRM & Dashboard Stylesheet
   ========================================================================== */

:root {
  --admin-bg: #070b14;
  --admin-sidebar: #0b111f;
  --admin-surface: #101828;
  --admin-card: rgba(16, 24, 40, 0.85);
  --admin-border: rgba(229, 184, 105, 0.15);
  --admin-border-subtle: rgba(255, 255, 255, 0.08);

  --gold-primary: #e5b869;
  --gold-light: #f7d58b;
  --gold-dark: #b8862d;

  --status-paid-bg: rgba(16, 185, 129, 0.15);
  --status-paid-text: #34d399;
  --status-pending-bg: rgba(245, 158, 11, 0.15);
  --status-pending-text: #fbbf24;
  --status-canceled-bg: rgba(239, 68, 68, 0.15);
  --status-canceled-text: #f87171;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

body.admin-body {
  background-color: var(--admin-bg);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--admin-border-subtle);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sidebar-logo {
  height: 62px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
          drop-shadow(0 0 8px rgba(255, 255, 255, 0.7))
          drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.sidebar-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
}

.sidebar-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  padding: 1.25rem 0.85rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-link i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

.sidebar-link:hover {
  background: rgba(229, 184, 105, 0.08);
  color: var(--gold-light);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.2) 0%, rgba(229, 184, 105, 0.05) 100%);
  color: var(--gold-light);
  border-left: 3px solid var(--gold-primary);
  font-weight: 700;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--admin-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-sidebar-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-sidebar-store:hover {
  background: rgba(229, 184, 105, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Main Admin Content */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-width: calc(100vw - 270px);
}

.admin-topbar {
  padding: 1rem 2rem;
  background: var(--admin-sidebar);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-greeting h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.topbar-greeting p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-clock {
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--admin-border-subtle);
}

.admin-content-inner {
  padding: 2rem;
  flex-grow: 1;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--admin-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 184, 105, 0.4);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(229, 184, 105, 0.12);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.kpi-icon.green { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.kpi-icon.yellow { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.kpi-icon.blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }

.kpi-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.2rem;
}

/* CRM Table Section */
.crm-section {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 2rem;
}

.crm-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.crm-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.crm-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.crm-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.crm-search {
  position: relative;
  display: flex;
  align-items: center;
}

.crm-search input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--admin-border-subtle);
  color: var(--text-main);
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  width: 220px;
}

.crm-search input:focus {
  border-color: var(--gold-primary);
}

.crm-search i {
  position: absolute;
  left: 0.85rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.crm-filter-select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--admin-border-subtle);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
}

.btn-export-csv {
  background: rgba(229, 184, 105, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-export-csv:hover {
  background: var(--gold-primary);
  color: #080d18;
}

/* CRM Table */
.crm-table-wrapper {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.crm-table th {
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-bottom: 1px solid var(--admin-border-subtle);
}

.crm-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.crm-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.aprovado {
  background: var(--status-paid-bg);
  color: var(--status-paid-text);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.pendente {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.cancelado {
  background: var(--status-canceled-bg);
  color: var(--status-canceled-text);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Actions in Table */
.crm-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-action-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--admin-border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-action-sm:hover {
  background: rgba(229, 184, 105, 0.15);
  color: var(--gold-light);
  border-color: var(--gold-primary);
}

.btn-action-sm.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
  border-color: #25d366;
}

.btn-action-sm.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

/* Catalog Editor Grid */
.catalog-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.editor-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.editor-card-header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.editor-thumb {
  width: 48px;
  height: 68px;
  object-fit: contain;
  border-radius: 4px;
}

.editor-details h4 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.editor-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.25s ease;
  position: relative;
}

.editor-card:hover {
  border-color: rgba(229, 184, 105, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.editor-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.editor-thumb {
  width: 58px;
  height: 82px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
  flex-shrink: 0;
  background: rgba(0,0,0,0.2);
}

.editor-details {
  flex-grow: 1;
}

.editor-details h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.editor-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--admin-border-subtle);
  gap: 0.75rem;
}

.editor-price-display {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
}

.btn-primary {
  background: linear-gradient(135deg, #f7d58b 0%, #e5b869 50%, #b8862d 100%);
  color: #080d18;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(229, 184, 105, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 184, 105, 0.5);
}

.btn-edit-book {
  background: rgba(229, 184, 105, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-edit-book:hover {
  background: var(--gold-primary);
  color: #080d18;
}

/* ==========================================================================
   TELA GRANDE / MODAL DE EDIÇÃO DE E-BOOK
   ========================================================================== */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.admin-editor-modal {
  background: var(--admin-sidebar);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(229, 184, 105, 0.2);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#bookEditorForm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.admin-modal-backdrop.active .admin-editor-modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  flex-shrink: 0;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border-subtle);
  background: rgba(8, 13, 24, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
}

.modal-title-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: var(--gold-light);
}

.modal-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--admin-border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.editor-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  flex: 1 1 auto;
  min-height: 0;
  /* Scrollbar visível em todos os navegadores */
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) rgba(0, 0, 0, 0.5);
}

.editor-modal-body::-webkit-scrollbar {
  width: 9px;
}

.editor-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}

.editor-modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: 6px;
  border: 2px solid rgba(8, 13, 24, 0.9);
}

.editor-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
  box-shadow: 0 0 10px rgba(229, 184, 105, 0.5);
}

/* Coluna Esquerda: Uploader de Capa */
.editor-col-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cover-uploader-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--admin-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.cover-preview-wrapper {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem 0 1rem;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.cover-preview-wrapper img {
  max-height: 240px;
  max-width: 90%;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.7));
}

.btn-upload-cover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(229, 184, 105, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upload-cover:hover {
  background: var(--gold-primary);
  color: #080d18;
}

.price-inputs-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

/* Coluna Direita: Formulário */
.editor-col-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--admin-border-subtle);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(229, 184, 105, 0.25);
  background: rgba(0, 0, 0, 0.6);
}

textarea.form-input {
  resize: vertical;
  line-height: 1.5;
}

/* Card de Entrega Digital */
.digital-delivery-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.modal-footer-row {
  flex-shrink: 0;
  padding: 1.15rem 1.75rem;
  border-top: 1px solid var(--admin-border-subtle);
  background: rgba(8, 13, 24, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

/* Card de Configurações de Pagamento */
.payment-settings-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 800px;
}

/* Password Gate Modal */
.admin-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.96);
  backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gate-card {
  background: var(--admin-sidebar);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(229, 184, 105, 0.2);
}

.gate-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.45rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.gate-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.gate-input {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--admin-border-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  margin-bottom: 1.25rem;
}

.gate-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(229, 184, 105, 0.25);
}

/* ==========================================================================
   RESPONSIVIDADE: TABLETS & SMARTPHONES (MODAL E ADMIN)
   ========================================================================== */
@media (max-width: 900px) {
  body.admin-body {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-main {
    max-width: 100%;
  }
  .editor-modal-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .admin-modal-backdrop {
    padding: 0.75rem;
  }
  .admin-editor-modal {
    max-height: 96vh;
    height: 96vh;
    border-radius: var(--radius-md);
  }
  .modal-header {
    padding: 1rem 1.25rem;
  }
  .modal-title-group h3 {
    font-size: 1.15rem;
  }
  .editor-modal-body {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .cover-preview-wrapper {
    height: 200px;
  }
  .cover-preview-wrapper img {
    max-height: 190px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .modal-footer-row {
    padding: 1rem 1.25rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .modal-footer-row button,
  .modal-footer-row div {
    width: 100%;
  }
  .modal-footer-row div {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
  }
  .modal-footer-row div button {
    flex: 1;
  }
}
