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

:root {
  --primary: #BF1E2D;
  --primary-dark: #9f1824;
  --white: #ffffff;
  --light-bg: #f8f8f9;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 20px 50px rgba(191, 30, 45, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
}

/* Login */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(191, 30, 45, 0.12), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f8f8f9 100%);
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  padding: 40px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.brand-box {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
}

.brand-box h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

.brand-box p {
  color: var(--text-muted);
  font-size: 15px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  font-size: 14px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(191, 30, 45, 0.1);
}

.auth-form button,
.primary-btn {
  margin-top: 10px;
  border: none;
  background: var(--primary);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.auth-form button:hover,
.primary-btn:hover {
  background: var(--primary-dark);
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0 !important;
  border: none;
  background: rgba(191, 30, 45, 0.09) !important;
  color: var(--primary) !important;
  padding: 8px 11px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(191, 30, 45, 0.15) !important;
}

.small-text {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* Dashboard Layout */

.dashboard-layout {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 280px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 26px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.sidebar-brand h2 {
  font-size: 19px;
  font-weight: 800;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: 14px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(191, 30, 45, 0.09);
  color: var(--primary);
}

.main-content {
  flex: 1;
  padding: 34px;
}

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

.topbar h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.topbar p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Cards */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card,
.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.stat-card span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.stat-card h3 {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 45px;
  text-align: center;
  background: #fcfcfc;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
}

/* Alerts */

.error-box {
  background: rgba(191, 30, 45, 0.09);
  color: var(--primary);
  border: 1px solid rgba(191, 30, 45, 0.25);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.success-box {
  background: rgba(22, 163, 74, 0.09);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* Forms */

.portal-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.portal-form input,
.portal-form select,
.portal-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(191, 30, 45, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.full-field {
  margin-top: 18px;
}

.portal-form textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
}

/* Tables */

.user-card-section {
  margin-top: 28px;
}

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

.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table th,
.portal-table td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.portal-table th {
  color: var(--text-muted);
  font-weight: 800;
  background: #fafafa;
}

.role-badge,
.status-badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.role-badge {
  background: rgba(191, 30, 45, 0.09);
  color: var(--primary);
}

.active-status {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.inactive-status {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-buttons form {
  margin: 0;
}

.small-btn,
.danger-btn {
  border: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.small-btn {
  background: rgba(191, 30, 45, 0.09);
  color: var(--primary);
}

.danger-btn {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.current-user-text {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.small-link-btn,
.table-link {
  display: inline-block;
  text-decoration: none;
  background: rgba(191, 30, 45, 0.09);
  color: var(--primary);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.small-link-btn:hover,
.table-link:hover {
  background: rgba(191, 30, 45, 0.15);
}

/* Filters */

.filter-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.filter-summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.filter-summary-card span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.filter-summary-card strong {
  color: var(--primary);
  font-size: 30px;
  font-weight: 800;
}

.active-filter-card {
  border-color: rgba(191, 30, 45, 0.35);
  background: rgba(191, 30, 45, 0.06);
}

.filter-card {
  margin-bottom: 28px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.secondary-btn {
  margin-top: 10px;
  display: inline-block;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-dark);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* Rich Editor */

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  background: #fafafa;
}

.rich-toolbar button {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-dark);
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.rich-toolbar button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rich-editor {
  min-height: 380px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  background: #ffffff;
  outline: none;
  line-height: 1.8;
  font-size: 16px;
  overflow-x: auto;
}

.rich-editor:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(191, 30, 45, 0.1);
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}

.rich-editor h1,
.rich-editor h2,
.rich-editor h3 {
  margin: 18px 0 10px;
  line-height: 1.35;
}

.rich-editor p {
  margin-bottom: 14px;
}

.rich-editor ul,
.rich-editor ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.rich-editor a {
  color: var(--primary);
  font-weight: 700;
}

/* Responsive */

@media (max-width: 900px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .stats-grid,
  .filter-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .auth-card {
    padding: 28px;
  }

  .stats-grid,
  .filter-summary-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 22px;
  }

  .filter-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
.compact-filter-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.compact-filter-form {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.compact-filter-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.compact-filter-field select,
.compact-filter-field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
}

.compact-filter-field select:focus,
.compact-filter-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(191, 30, 45, 0.08);
}

.compact-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.compact-apply-btn,
.compact-clear-btn {
  height: 46px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-apply-btn {
  border: none;
  background: var(--primary);
  color: #ffffff;
}

.compact-clear-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-dark);
}

@media (max-width: 1200px) {
  .compact-filter-form {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .compact-filter-form {
    grid-template-columns: 1fr;
  }

  .compact-filter-actions {
    flex-direction: row;
  }
}
.beautiful-create-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffafb 100%);
}

.auto-owner-box {
  background: rgba(191, 30, 45, 0.05);
  border: 1px solid rgba(191, 30, 45, 0.12);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 22px;
}

.auto-owner-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.auto-owner-value {
  margin-bottom: 8px;
}

.auto-owner-note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.owner-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(191, 30, 45, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

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

.create-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.rich-toolbar {
  border-radius: 16px 16px 0 0;
}

.rich-editor {
  border-radius: 0 0 16px 16px;
  background: #fffdfd;
}

.rich-toolbar button {
  min-width: 52px;
}


.article-list-table thead th {
  background: #f7f7f8;
  border-bottom: none;
}



.article-list-table tbody td {
  background: #fff7f8;
  border-bottom: none;
}

.article-list-table tbody td:first-child {
  border-radius: 16px 0 0 16px;
}

.article-list-table tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.article-list-table tbody tr:hover td {
  background: #fff1f3;
}

@media (max-width: 700px) {
  .create-form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}   
.article-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(191, 30, 45, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}
.view-link-btn {
  display: inline-block;
  text-decoration: none;
  background: rgba(17, 24, 39, 0.07);
  color: #111827;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.view-link-btn:hover {
  background: rgba(17, 24, 39, 0.12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.no-margin-btn {
  margin-top: 10px;
}

.article-view-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffafb 100%);
}

.article-view-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}

.article-view-header h2 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--text-dark);
  max-width: 950px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.article-view-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  line-height: 1.85;
  font-size: 17px;
  color: var(--text-dark);
}

.article-view-content h1,
.article-view-content h2,
.article-view-content h3 {
  margin: 22px 0 12px;
  line-height: 1.35;
}

.article-view-content p {
  margin-bottom: 16px;
}

.article-view-content ul,
.article-view-content ol {
  padding-left: 26px;
  margin-bottom: 16px;
}

.article-view-content a {
  color: var(--primary);
  font-weight: 800;
}

.article-social-box {
  margin-top: 22px;
  background: rgba(191, 30, 45, 0.05);
  border: 1px solid rgba(191, 30, 45, 0.12);
  border-radius: 16px;
  padding: 18px;
}

.article-social-box h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.article-social-box p {
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .topbar-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-view-header h2 {
    font-size: 24px;
  }

  .article-view-content {
    padding: 20px;
  }
}
.copy-icon-btn {
  margin-top: 10px;
  height: 46px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-dark);
  padding: 0 15px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.copy-icon-btn:hover {
  border-color: rgba(191, 30, 45, 0.35);
  background: rgba(191, 30, 45, 0.05);
  color: var(--primary);
}

.primary-copy-btn {
  background: rgba(191, 30, 45, 0.08);
  color: var(--primary);
  border-color: rgba(191, 30, 45, 0.18);
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #111827;
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 9999;
}

.copy-toast.show-copy-toast {
  opacity: 1;
  transform: translateY(0);
}
.copy-box {
  position: relative;
}

.chat-copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #374151;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: 0.18s ease;
}

.chat-copy-btn:hover {
  background: rgba(191, 30, 45, 0.06);
  color: var(--primary);
  border-color: rgba(191, 30, 45, 0.25);
}

.article-view-header.copy-box {
  padding-right: 62px;
}

.article-content-wrapper {
  position: relative;
}

.content-copy-btn {
  top: 16px;
  right: 16px;
}

.article-view-content {
  padding-top: 58px;
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #111827;
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 9999;
}

.copy-toast.show-copy-toast {
  opacity: 1;
  transform: translateY(0);
}


.article-list-table th,
.article-list-table td {
  width: auto;
}
.articles-page-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.articles-page-table thead th {
  background: #f7f7f8;
  border-bottom: none;
  white-space: nowrap;
  font-size: 14px;
}

.articles-page-table tbody td {
  background: #fff7f8 !important;
  border-bottom: none;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 14px;
}

.articles-page-table tbody td:first-child {
  border-radius: 16px 0 0 16px;
}

.articles-page-table tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.articles-page-table tbody tr:hover td {
  background: #fff1f3 !important;
}

.articles-page-table th:nth-child(1),
.articles-page-table td:nth-child(1) {
  width: 4%;
}

.articles-page-table th:nth-child(2),
.articles-page-table td:nth-child(2) {
  width: 27%;
}

.articles-page-table th:nth-child(3),
.articles-page-table td:nth-child(3) {
  width: 10%;
}

.articles-page-table th:nth-child(4),
.articles-page-table td:nth-child(4) {
  width: 13%;
}

.articles-page-table th:nth-child(5),
.articles-page-table td:nth-child(5) {
  width: 13%;
}

.articles-page-table th:nth-child(6),
.articles-page-table td:nth-child(6) {
  width: 8%;
}

.articles-page-table th:nth-child(7),
.articles-page-table td:nth-child(7) {
  width: 25%;
}
.articles-page-table .title-cell strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.articles-page-table .action-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.articles-page-table .view-link-btn,
.articles-page-table .small-link-btn,
.articles-page-table .danger-btn {
  padding: 8px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.table-wrapper {
  overflow-x: visible;
}
.article-list-table tbody tr {
  width: 100%;
}

.article-list-table tbody td {
  background: #fff7f8;
}

.article-list-table .action-buttons {
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.dashboard-page-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.dashboard-page-table thead th {
  background: #f7f7f8;
  border-bottom: none;
  white-space: nowrap;
  font-size: 14px;
}

.dashboard-page-table tbody td {
  background: #fff7f8 !important;
  border-bottom: none;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 14px;
}

.dashboard-page-table tbody td:first-child {
  border-radius: 16px 0 0 16px;
}

.dashboard-page-table tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.dashboard-page-table th:nth-child(1),
.dashboard-page-table td:nth-child(1) {
  width: 4%;
}

.dashboard-page-table th:nth-child(2),
.dashboard-page-table td:nth-child(2) {
  width: 40%;
}

.dashboard-page-table th:nth-child(3),
.dashboard-page-table td:nth-child(3) {
  width: 12%;
}

.dashboard-page-table th:nth-child(4),
.dashboard-page-table td:nth-child(4) {
  width: 15%;
}

.dashboard-page-table th:nth-child(5),
.dashboard-page-table td:nth-child(5) {
  width: 15%;
}

.dashboard-page-table th:nth-child(6),
.dashboard-page-table td:nth-child(6) {
  width: 14%;
}

.dashboard-page-table .title-cell strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page-table .action-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.dashboard-page-table .view-link-btn,
.dashboard-page-table .small-link-btn {
  padding: 8px 11px;
  font-size: 12px;
  white-space: nowrap;
}
.articles-page-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.articles-page-table thead th {
  background: #f7f7f8;
  border-bottom: none;
  white-space: nowrap;
  font-size: 14px;
}

.articles-page-table tbody td {
  background: #fff7f8 !important;
  border-bottom: none;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 14px;
}

.articles-page-table tbody td:first-child {
  border-radius: 16px 0 0 16px;
}

.articles-page-table tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.articles-page-table tbody tr:hover td {
  background: #fff1f3 !important;
}

.articles-page-table th:nth-child(1),
.articles-page-table td:nth-child(1) {
  width: 4%;
}

.articles-page-table th:nth-child(2),
.articles-page-table td:nth-child(2) {
  width: 34%;
}

.articles-page-table th:nth-child(3),
.articles-page-table td:nth-child(3) {
  width: 11%;
}

.articles-page-table th:nth-child(4),
.articles-page-table td:nth-child(4) {
  width: 14%;
}

.articles-page-table th:nth-child(5),
.articles-page-table td:nth-child(5) {
  width: 14%;
}

.articles-page-table th:nth-child(6),
.articles-page-table td:nth-child(6) {
  width: 9%;
}

.articles-page-table th:nth-child(7),
.articles-page-table td:nth-child(7) {
  width: 14%;
}

.articles-page-table .title-cell strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.articles-page-table .action-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.articles-page-table .view-link-btn,
.articles-page-table .small-link-btn,
.articles-page-table .danger-btn {
  padding: 8px 11px;
  font-size: 12px;
  white-space: nowrap;
}

.table-wrapper {
  overflow-x: visible;
}
.upload-link-btn {
  display: inline-block;
  text-decoration: none;
  background: rgba(191, 30, 45, 0.08);
  color: var(--primary);
  padding: 8px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.upload-link-btn:hover {
  background: rgba(191, 30, 45, 0.14);
}

.copy-list-link-btn {
  border: none;
  background: rgba(17, 24, 39, 0.07);
  color: #111827;
  padding: 8px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.copy-list-link-btn:hover {
  background: rgba(17, 24, 39, 0.12);
}
/* Public Upload Link Box on View Article */

.public-link-box {
  margin-top: 20px;
  background: rgba(191, 30, 45, 0.05);
  border: 1px solid rgba(191, 30, 45, 0.14);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: end;
}

.public-link-box > div {
  flex: 1;
}

.public-link-box span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.public-link-box input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  font-size: 14px;
  background: #ffffff;
  color: var(--text-dark);
}

.public-link-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(191, 30, 45, 0.08);
}

.upload-copy-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(191, 30, 45, 0.18);
  background: rgba(191, 30, 45, 0.08);
  color: var(--primary);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.upload-copy-btn:hover {
  background: rgba(191, 30, 45, 0.14);
}

/* Public Upload Page */

.public-upload-page {
  min-height: 100vh;
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(191, 30, 45, 0.12), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f8f8f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-upload-card {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.public-article-box {
  background: rgba(191, 30, 45, 0.05);
  border: 1px solid rgba(191, 30, 45, 0.12);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 22px;
}

.public-article-box span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.public-article-box h2 {
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-dark);
}

.field-help {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.public-upload-form input[type="file"] {
  padding: 14px;
  background: #fffafb;
  border: 1px dashed rgba(191, 30, 45, 0.28);
}

.uploaded-files-box {
  margin-top: 24px;
  background: #fffafb;
  border: 1px solid rgba(191, 30, 45, 0.1);
  border-radius: 18px;
  padding: 18px;
}

.uploaded-files-box h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.uploaded-file-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.uploaded-file-link small {
  color: var(--primary);
  font-weight: 800;
}

/* Uploaded files on View Article page */

.article-files-box {
  margin-top: 24px;
  background: #fffafb;
  border: 1px solid rgba(191, 30, 45, 0.1);
  border-radius: 18px;
  padding: 18px;
}

.article-files-box h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.article-files-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.article-file-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: var(--text-dark);
}

.article-file-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-word;
}

.article-file-card span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .public-link-box {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-copy-btn {
    width: 100%;
  }

  .article-files-grid {
    grid-template-columns: 1fr;
  }
}
.social-input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.submission-section {
  margin-top: 28px;
  background: #fffafb;
  border: 1px solid rgba(191, 30, 45, 0.1);
  border-radius: 20px;
  padding: 22px;
}

.submission-section h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
}

.submission-section > p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.submission-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
}

.submission-box h4 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.media-card {
  display: block;
  background: #fff7f8;
  border: 1px solid rgba(191, 30, 45, 0.1);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
}

.media-card img,
.media-card video {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}

.media-card span,
.media-card a {
  display: block;
  padding: 11px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  word-break: break-word;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(191, 30, 45, 0.08);
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.social-link-card:hover {
  background: rgba(191, 30, 45, 0.14);
}

.empty-submission-text {
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-input-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}
.media-card-body {
  padding: 12px;
}

.media-card-body strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
  word-break: break-word;
}

.file-card-box {
  display: block;
}

.file-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.file-open-btn,
.file-download-btn,
.file-copy-btn,
.social-copy-btn {
  border: none;
  text-decoration: none;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.file-open-btn {
  background: rgba(17, 24, 39, 0.07);
  color: #111827;
}

.file-download-btn {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.file-copy-btn,
.social-copy-btn {
  background: rgba(191, 30, 45, 0.08);
  color: var(--primary);
}

.file-open-btn:hover {
  background: rgba(17, 24, 39, 0.12);
}

.file-download-btn:hover {
  background: rgba(22, 163, 74, 0.16);
}

.file-copy-btn:hover,
.social-copy-btn:hover {
  background: rgba(191, 30, 45, 0.14);
}

.social-link-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
}

.social-link-item .social-link-card {
  background: rgba(191, 30, 45, 0.08);
}

.social-link-item .social-copy-btn {
  border-radius: 999px;
}
.social-url-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-url-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff7f8;
  border: 1px solid rgba(191, 30, 45, 0.1);
  border-radius: 14px;
  padding: 12px;
}

.social-url-row span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.social-url-row a {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-url-row a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .social-url-row {
    grid-template-columns: 1fr;
  }
}
.articles-page-table .action-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 100%;
}

.articles-page-table .view-link-btn,
.articles-page-table .small-link-btn,
.articles-page-table .danger-btn,
.articles-page-table .upload-link-btn,
.articles-page-table .copy-list-link-btn {
  padding: 7px 9px;
  font-size: 11px;
  white-space: nowrap;
  line-height: 1;
}
.articles-page-table th:nth-child(1),
.articles-page-table td:nth-child(1) {
  width: 4%;
}

.articles-page-table th:nth-child(2),
.articles-page-table td:nth-child(2) {
  width: 30%;
}

.articles-page-table th:nth-child(3),
.articles-page-table td:nth-child(3) {
  width: 10%;
}

.articles-page-table th:nth-child(4),
.articles-page-table td:nth-child(4) {
  width: 13%;
}

.articles-page-table th:nth-child(5),
.articles-page-table td:nth-child(5) {
  width: 13%;
}

.articles-page-table th:nth-child(6),
.articles-page-table td:nth-child(6) {
  width: 8%;
}

.articles-page-table th:nth-child(7),
.articles-page-table td:nth-child(7) {
  width: 22%;
}
.article-list-table,
.articles-page-table {
  max-width: 100%;
}

.content-card {
  overflow: hidden;
}

.table-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.articles-page-table td:last-child {
  overflow: hidden;
}

.articles-page-table .danger-btn {
  min-width: auto;
}

body {
  overflow-x: hidden;
}
.article-title-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-title-btn:hover {
  color: var(--primary);
}

.articles-page-table .view-link-btn {
  border: none;
  cursor: pointer;
}

.article-details-row {
  display: none;
}

.article-details-row.show-article-details {
  display: table-row;
}

.article-details-row td {
  background: #ffffff !important;
  border-bottom: none;
  padding: 0 0 18px !important;
}

.inline-article-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.04);
  margin-top: -4px;
}

.inline-article-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.inline-article-top h3 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.inline-article-top p {
  color: var(--text-muted);
  font-size: 14px;
}

.inline-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inline-copy-actions button {
  border: 1px solid rgba(191, 30, 45, 0.15);
  background: #ffffff;
  color: var(--primary);
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.inline-copy-actions button:hover {
  background: rgba(191, 30, 45, 0.07);
}

.inline-article-content {
  background: #fffafb;
  border: 1px solid rgba(191, 30, 45, 0.08);
  border-radius: 16px;
  padding: 22px;
  line-height: 1.85;
  font-size: 16px;
}

.inline-article-content h1,
.inline-article-content h2,
.inline-article-content h3 {
  margin: 18px 0 10px;
  line-height: 1.35;
}

.inline-article-content p {
  margin-bottom: 14px;
}

.inline-article-content ul,
.inline-article-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.inline-article-content a {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 900px) {
  .inline-article-top {
    flex-direction: column;
  }

  .inline-copy-actions {
    justify-content: flex-start;
  }
}
.article-title-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-title-btn:hover {
  color: var(--primary);
}

.articles-page-table .view-link-btn {
  border: none;
  cursor: pointer;
}

.article-details-row {
  display: none;
}

.article-details-row.show-article-details {
  display: table-row;
}

.article-details-row td {
  background: #ffffff !important;
  border-bottom: none;
  padding: 0 0 18px !important;
  white-space: normal !important;
}

.inline-article-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.04);
  margin-top: -4px;
}

.inline-article-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.inline-article-top h3 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.inline-article-top p {
  color: var(--text-muted);
  font-size: 14px;
}

.inline-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inline-copy-actions button {
  border: 1px solid rgba(191, 30, 45, 0.15);
  background: #ffffff;
  color: var(--primary);
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.inline-copy-actions button:hover {
  background: rgba(191, 30, 45, 0.07);
}

.inline-article-content {
  background: #fffafb;
  border: 1px solid rgba(191, 30, 45, 0.08);
  border-radius: 16px;
  padding: 22px;
  line-height: 1.85;
  font-size: 16px;
  white-space: normal;
}

.inline-article-content h1,
.inline-article-content h2,
.inline-article-content h3 {
  margin: 18px 0 10px;
  line-height: 1.35;
}

.inline-article-content p {
  margin-bottom: 14px;
}

.inline-article-content ul,
.inline-article-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.inline-article-content a {
  color: var(--primary);
  font-weight: 800;
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #111827;
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 9999;
}

.copy-toast.show-copy-toast {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .inline-article-top {
    flex-direction: column;
  }

  .inline-copy-actions {
    justify-content: flex-start;
  }
}
.article-title-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  display: block;
}

.article-title-btn:hover {
  color: var(--primary);
}

.article-copy-row td {
  background: #ffffff !important;
  padding: 0 16px 16px !important;
  border-bottom: none !important;
}

.article-copy-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.article-copy-box button {
  border: 1px solid rgba(191, 30, 45, 0.15);
  background: #ffffff;
  color: var(--primary);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.article-copy-box button:hover {
  background: rgba(191, 30, 45, 0.07);
}

.hidden-copy-content {
  display: none;
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #111827;
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 9999;
}

.copy-toast.show-copy-toast {
  opacity: 1;
  transform: translateY(0);
}
.articles-page-table {
  border-collapse: separate;
  border-spacing: 0 18px;
}

.articles-page-table tbody tr {
  margin-bottom: 18px;
}

.articles-page-table tbody td {
  background: #fff7f8 !important;
  border-bottom: none !important;
}

.articles-page-table tbody td:first-child {
  border-radius: 18px 0 0 18px;
}

.articles-page-table tbody td:last-child {
  border-radius: 0 18px 18px 0;
}

.article-copy-row,
.article-copy-box,
.hidden-copy-content {
  display: none !important;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.settings-card {
  min-height: 100%;
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-logo-preview {
  margin-top: 18px;
  background: rgba(191, 30, 45, 0.05);
  border: 1px solid rgba(191, 30, 45, 0.12);
  border-radius: 18px;
  padding: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.settings-logo-preview span {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-muted);
}

.settings-logo-preview img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-card-wide {
    grid-column: auto;
  }
}
.role-admin {
  background: rgba(191, 30, 45, 0.09);
  color: var(--primary);
}

.role-editor {
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
}

.role-viewer {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}
/* Dynamic Social Link Manager */
.social-manager-field {
  margin-top: 18px;
}

.dynamic-social-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.dynamic-social-row {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fffafb;
  border: 1px solid rgba(191, 30, 45, 0.11);
  border-radius: 16px;
  padding: 12px;
}

.dynamic-social-row select,
.dynamic-social-row input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
}

.dynamic-social-row select:focus,
.dynamic-social-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(191, 30, 45, 0.08);
}

.remove-social-btn,
.social-add-btn {
  margin-top: 0 !important;
  white-space: nowrap;
}

.remove-social-btn {
  border: 1px solid rgba(191, 30, 45, 0.18);
  background: rgba(191, 30, 45, 0.08);
  color: var(--primary);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.remove-social-btn:hover {
  background: rgba(191, 30, 45, 0.14);
}

.social-add-btn {
  margin-top: 12px !important;
}

@media (max-width: 760px) {
  .dynamic-social-row {
    grid-template-columns: 1fr;
  }

  .remove-social-btn,
  .social-add-btn {
    width: 100%;
  }
}
/* Article AJAX Search */
.article-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.ajax-search-box {
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(191, 30, 45, 0.14);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.ajax-search-box span {
  font-size: 16px;
}

.ajax-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 14px;
  background: transparent;
  color: #111827;
}

.ajax-search-box input::placeholder {
  color: #9ca3af;
}

.article-skeleton-list {
  display: none;
  margin-top: 14px;
  padding: 10px;
}

.article-skeleton-list.show-skeleton {
  display: block;
}

.article-skeleton-row {
  height: 54px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #f3f4f6 25%, #ffffff 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: articleSkeletonLoading 1s infinite linear;
  border: 1px solid #f1f1f1;
}

.ajax-empty-state {
  margin-top: 18px;
}

@keyframes articleSkeletonLoading {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@media (max-width: 760px) {
  .article-list-header {
    align-items: stretch;
  }

  .ajax-search-box {
    width: 100%;
  }
}
/* Cleaner Articles Filter Form */
.compact-filter-card {
  background: #ffffff;
  border: 1px solid rgba(191, 30, 45, 0.10);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}

.compact-filter-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.compact-filter-field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  margin-bottom: 7px;
}

.compact-filter-field select,
.compact-filter-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fafafa;
  padding: 0 13px;
  font-size: 14px;
  outline: none;
}

.compact-filter-field select:focus,
.compact-filter-field input:focus {
  border-color: #bf1e2d;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(191, 30, 45, 0.08);
}

.compact-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.compact-apply-btn,
.compact-clear-btn {
  height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.compact-apply-btn {
  border: 0;
  background: #bf1e2d;
  color: #ffffff;
}

.compact-clear-btn {
  border: 1px solid rgba(191, 30, 45, 0.18);
  background: rgba(191, 30, 45, 0.07);
  color: #bf1e2d;
}

@media (max-width: 1200px) {
  .compact-filter-form {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .compact-filter-form {
    grid-template-columns: 1fr;
  }

  .compact-filter-actions {
    flex-direction: column;
  }

  .compact-apply-btn,
  .compact-clear-btn {
    width: 100%;
  }
}
/* Edit User Modal */
.user-edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.user-edit-modal.show-user-edit-modal {
  display: flex;
}

.user-edit-modal-card {
  width: min(760px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.25);
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(191, 30, 45, 0.08);
  color: #bf1e2d;
  font-size: 26px;
  cursor: pointer;
}

.modal-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .modal-action-row {
    flex-direction: column;
  }

  .modal-action-row .primary-btn,
  .modal-action-row .secondary-btn {
    width: 100%;
  }
}
.user-edit-btn {
  border: 0;
  background: rgba(191, 30, 45, 0.08);
  color: #bf1e2d;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.user-edit-btn:hover {
  background: rgba(191, 30, 45, 0.14);
}
.password-show-row {
  display: flex;
  gap: 8px;
}

.password-show-row input {
  flex: 1;
}

.password-show-row button {
  border: 0;
  background: rgba(191, 30, 45, 0.08);
  color: #bf1e2d;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}
.dashboard-stats-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.stats-period-block {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.05);
}

.stats-period-block h2 {
  font-size: 18px;
  margin: 0 0 16px;
  color: #111827;
}

.stats-period-block .stats-grid {
  margin: 0;
}

.stats-period-block .stat-card {
  min-height: 120px;
}

.stats-period-block .stat-card h3 {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .stats-period-block {
    padding: 16px;
  }
}
.compact-stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.compact-stat-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  padding: 11px 14px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
  font-size: 13px;
}

.compact-stat-tab strong {
  color: #bf1e2d;
  margin-right: 4px;
}

.compact-stat-tab span {
  color: #6b7280;
}

.compact-stat-tab b {
  color: #111827;
}

@media (max-width: 760px) {
  .compact-stat-tab {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 16px;
  }
}
.web-status-form {
  margin: 0;
}

.web-status-dropdown {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 8px 28px 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-transform: capitalize;
}

.posted-status-select {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.not-posted-status-select {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}
.web-status-form {
  margin: 0;
}

.web-status-dropdown {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 8px 32px 8px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-transform: capitalize;
}

/* Posted status color */
.posted-status-select {
  background: #dcfce7;
  color: #15803d;
}

/* Not Posted status color */
.not-posted-status-select {
  background: #fee2e2;
  color: #b91c1c;
}
/* =========================
   ARTICLES TABLE PERFECT ALIGNMENT FIX
   ========================= */

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

.articles-page-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 16px;
  table-layout: fixed;
}

.articles-page-table thead th {
  padding: 18px 18px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.articles-page-table tbody td {
  padding: 18px 18px;
  vertical-align: middle;
}

/* Column widths */
.articles-page-table th:nth-child(1),
.articles-page-table td:nth-child(1) {
  width: 5%;
}

.articles-page-table th:nth-child(2),
.articles-page-table td:nth-child(2) {
  width: 31%;
}

.articles-page-table th:nth-child(3),
.articles-page-table td:nth-child(3) {
  width: 10%;
}

.articles-page-table th:nth-child(4),
.articles-page-table td:nth-child(4) {
  width: 13%;
}

.articles-page-table th:nth-child(5),
.articles-page-table td:nth-child(5) {
  width: 15%;
}

.articles-page-table th:nth-child(6),
.articles-page-table td:nth-child(6) {
  width: 10%;
}

.articles-page-table th:nth-child(7),
.articles-page-table td:nth-child(7) {
  width: 16%;
}

/* Title cell */
.title-cell {
  padding-right: 24px;
}

.article-title-btn {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Owner / badges alignment */
.owner-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Website status dropdown */
.web-status-form {
  margin: 0;
  display: inline-block;
  width: 180px;
}

.web-status-dropdown {
  width: 100%;
  min-width: 180px;
  height: 44px;
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 0 38px 0 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

/* Posted status */
.posted-status-select {
  background-color: #dff3e4;
  color: #0f8a3c;
}

/* Not posted status */
.not-posted-status-select {
  background-color: #f8dede;
  color: #c81e1e;
}

/* Date alignment */
.nowrap-cell {
  white-space: nowrap;
}

/* Action buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.action-buttons form {
  margin: 0;
}

.action-buttons a,
.action-buttons button {
  white-space: nowrap;
}

/* Better spacing for article rows */
.articles-page-table tbody tr td:first-child {
  padding-left: 18px;
}

.articles-page-table tbody tr td:last-child {
  padding-right: 18px;
}

/* Search box spacing */
.article-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ajax-search-box {
  min-width: 320px;
}

/* Responsive */
@media (max-width: 1200px) {
  .web-status-form {
    width: 160px;
  }

  .web-status-dropdown {
    min-width: 160px;
  }
}

@media (max-width: 992px) {
  .articles-page-table {
    min-width: 1100px;
  }
}
/* =========================================================
   FINAL RESPONSIVE ARTICLES LIST FIX
   Paste this at the very bottom of style.css
   ========================================================= */

/* Stop page breaking on small screens */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Main layout responsive */
.dashboard-layout {
  width: 100%;
  max-width: 100%;
}

.main-content {
  min-width: 0;
  width: 100%;
}

.content-card {
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

/* Header and search responsive */
.article-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.ajax-search-box {
  width: min(520px, 100%);
  max-width: 100%;
}

/* Filter form responsive */
.compact-filter-card {
  width: 100%;
  max-width: 100%;
}

.compact-filter-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.compact-filter-actions {
  display: flex;
  gap: 8px;
}

/* Table desktop layout */
.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.articles-page-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 16px;
}

.articles-page-table thead th {
  padding: 16px 18px;
  background: #f7f7f8;
  color: #6b7280;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
  border-bottom: none;
}

.articles-page-table tbody td {
  padding: 18px 18px;
  background: #fff7f8 !important;
  border-bottom: none !important;
  vertical-align: middle;
  font-size: 14px;
  white-space: nowrap;
}

.articles-page-table tbody td:first-child {
  border-radius: 18px 0 0 18px;
}

.articles-page-table tbody td:last-child {
  border-radius: 0 18px 18px 0;
}

.articles-page-table tbody tr:hover td {
  background: #fff1f3 !important;
}

/* Correct column widths */
.articles-page-table th:nth-child(1),
.articles-page-table td:nth-child(1) {
  width: 5%;
}

.articles-page-table th:nth-child(2),
.articles-page-table td:nth-child(2) {
  width: 30%;
}

.articles-page-table th:nth-child(3),
.articles-page-table td:nth-child(3) {
  width: 11%;
}

.articles-page-table th:nth-child(4),
.articles-page-table td:nth-child(4) {
  width: 14%;
}

.articles-page-table th:nth-child(5),
.articles-page-table td:nth-child(5) {
  width: 15%;
}

.articles-page-table th:nth-child(6),
.articles-page-table td:nth-child(6) {
  width: 10%;
}

.articles-page-table th:nth-child(7),
.articles-page-table td:nth-child(7) {
  width: 15%;
}

/* Title responsive inside table */
.article-title-btn {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 900;
}

/* Badges */
.owner-badge,
.status-badge,
.article-number {
  white-space: nowrap;
}

/* Website status dropdown */
.web-status-form {
  margin: 0;
  width: 100%;
  max-width: 180px;
}

.web-status-dropdown {
  width: 100%;
  min-width: 150px;
  height: 42px;
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 0 34px 0 14px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  text-transform: capitalize;
}

.posted-status-select {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.not-posted-status-select {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

/* Action buttons desktop */
.articles-page-table .action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.articles-page-table .action-buttons form {
  margin: 0;
}

.articles-page-table .view-link-btn,
.articles-page-table .small-link-btn,
.articles-page-table .danger-btn,
.articles-page-table .upload-link-btn,
.articles-page-table .copy-list-link-btn {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

/* Tablet */
@media (max-width: 1200px) {
  .main-content {
    padding: 26px;
  }

  .compact-filter-form {
    grid-template-columns: repeat(3, 1fr);
  }

  .compact-filter-actions {
    grid-column: 1 / -1;
  }

  .compact-apply-btn,
  .compact-clear-btn {
    flex: 1;
  }
}

/* Small tablet */
@media (max-width: 900px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 18px;
  }

  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar nav a {
    padding: 11px 14px;
  }

  .main-content {
    padding: 22px;
  }

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

  .topbar .primary-btn {
    width: 100%;
    text-align: center;
  }

  .article-list-header {
    align-items: stretch;
  }

  .ajax-search-box {
    width: 100%;
  }

  .compact-filter-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile card layout */
@media (max-width: 760px) {
  .main-content {
    padding: 16px;
  }

  .content-card {
    padding: 16px;
    border-radius: 18px;
  }

  .compact-filter-form {
    grid-template-columns: 1fr;
  }

  .compact-filter-actions {
    flex-direction: column;
  }

  .compact-apply-btn,
  .compact-clear-btn {
    width: 100%;
  }

  .table-wrapper {
    overflow-x: visible !important;
  }

  .articles-page-table {
    min-width: 0;
    width: 100%;
    border-spacing: 0;
  }

  .articles-page-table thead {
    display: none;
  }

  .articles-page-table,
  .articles-page-table tbody,
  .articles-page-table tr,
  .articles-page-table td {
    display: block;
    width: 100% !important;
  }

  .articles-page-table tbody tr {
    background: #fff7f8;
    border: 1px solid rgba(191, 30, 45, 0.10);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  }

  .articles-page-table tbody td {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: center;
    padding: 11px 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    white-space: normal;
  }

  .articles-page-table tbody td::before {
    color: #6b7280;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .articles-page-table tbody td:nth-child(1)::before {
    content: "No.";
  }

  .articles-page-table tbody td:nth-child(2)::before {
    content: "Title";
  }

  .articles-page-table tbody td:nth-child(3)::before {
    content: "Owner";
  }

  .articles-page-table tbody td:nth-child(4)::before {
    content: "Editor";
  }

  .articles-page-table tbody td:nth-child(5)::before {
    content: "Website";
  }

  .articles-page-table tbody td:nth-child(6)::before {
    content: "Date";
  }

  .articles-page-table tbody td:nth-child(7)::before {
    content: "Actions";
  }

  .article-title-btn {
    white-space: normal;
    line-height: 1.5;
  }

  .web-status-form {
    max-width: 100%;
  }

  .web-status-dropdown {
    width: 100%;
    min-width: 0;
  }

  .articles-page-table .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .articles-page-table .action-buttons a,
  .articles-page-table .action-buttons button {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* Very small mobile */
@media (max-width: 480px) {
  .main-content {
    padding: 12px;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .articles-page-table tbody td {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .articles-page-table tbody td::before {
    margin-bottom: 2px;
  }

  .articles-page-table .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .articles-page-table .action-buttons a,
  .articles-page-table .action-buttons button,
  .articles-page-table .action-buttons form {
    width: 100%;
  }

  .articles-page-table .danger-btn {
    width: 100%;
  }
}
/* Font Awesome dropdown icon only */
.web-status-form {
  position: relative !important;
  display: inline-block !important;
}

.web-status-form::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #6b7280;
  pointer-events: none;
}

.web-status-dropdown {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 36px !important;
}
/* =========================
   FINAL MOBILE FRIENDLY WEBSITE STATUS DROPDOWN
   Font Awesome icon only
   ========================= */

.web-status-form::after {
  content: none !important;
  display: none !important;
}

.web-status-form {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: 165px !important;
  max-width: 165px !important;
  height: 38px !important;
  margin: 0 !important;
}

.web-status-dropdown {
  width: 165px !important;
  max-width: 165px !important;
  height: 38px !important;
  min-width: 0 !important;
  padding: 0 34px 0 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 38px !important;
  cursor: pointer !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  background-image: none !important;
}

.web-status-icon {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 12px !important;
  color: #4b5563 !important;
  pointer-events: none !important;
  line-height: 1 !important;
}

/* Keep your existing colors */
.posted-status-select {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.not-posted-status-select {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

/* Mobile size fix */
@media (max-width: 760px) {
  .articles-page-table tbody td {
    grid-template-columns: 90px 1fr !important;
    gap: 10px !important;
    padding: 9px 0 !important;
  }

  .web-status-form {
    width: 155px !important;
    max-width: 155px !important;
    height: 36px !important;
  }

  .web-status-dropdown {
    width: 155px !important;
    max-width: 155px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 12px !important;
    padding-left: 13px !important;
    padding-right: 32px !important;
  }

  .web-status-icon {
    right: 13px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .articles-page-table tbody td {
    grid-template-columns: 82px 1fr !important;
  }

  .web-status-form {
    width: 150px !important;
    max-width: 150px !important;
  }

  .web-status-dropdown {
    width: 150px !important;
    max-width: 150px !important;
  }
}
/* =====================================================
   SMART MOBILE ARTICLE LIST DESIGN
   Paste at the very bottom of style.css
   ===================================================== */

@media (max-width: 760px) {
  body {
    overflow-x: hidden !important;
  }

  .main-content {
    padding: 14px !important;
  }

  .content-card {
    padding: 14px !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }

  .section-header.article-list-header {
    gap: 14px !important;
    margin-bottom: 14px !important;
  }

  .section-header.article-list-header h2 {
    font-size: 22px !important;
  }

  .ajax-search-box {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 8px 14px !important;
  }

  .table-wrapper {
    overflow-x: visible !important;
    width: 100% !important;
  }

  .articles-page-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border-spacing: 0 !important;
  }

  .articles-page-table thead {
    display: none !important;
  }

  .articles-page-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .articles-page-table tbody tr {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    background: #fff7f8 !important;
    border: 1px solid rgba(191, 30, 45, 0.12) !important;
    border-radius: 18px !important;
    padding: 16px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05) !important;
  }

  .articles-page-table tbody tr:hover td {
    background: transparent !important;
  }

  .articles-page-table tbody td {
    display: flex !important;
    width: 100% !important;
    padding: 8px 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    white-space: normal !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    font-size: 13px !important;
  }

  .articles-page-table tbody td::before {
    flex: 0 0 auto !important;
    min-width: 78px !important;
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
  }

  .articles-page-table tbody td:nth-child(1) {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: auto !important;
    padding: 0 !important;
    justify-content: flex-end !important;
  }

  .articles-page-table tbody td:nth-child(1)::before {
    display: none !important;
  }

  .article-number {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }

  .articles-page-table tbody td:nth-child(2) {
    display: block !important;
    padding-right: 44px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(191, 30, 45, 0.10) !important;
    margin-bottom: 6px !important;
  }

  .articles-page-table tbody td:nth-child(2)::before {
    content: "Title" !important;
    display: block !important;
    margin-bottom: 6px !important;
  }

  .article-title-btn {
    display: block !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    color: #111827 !important;
  }

  .articles-page-table tbody td:nth-child(3)::before {
    content: "Owner" !important;
  }

  .articles-page-table tbody td:nth-child(4)::before {
    content: "Editor" !important;
  }

  .articles-page-table tbody td:nth-child(5)::before {
    content: "Website" !important;
  }

  .articles-page-table tbody td:nth-child(6)::before {
    content: "Date" !important;
  }

  .articles-page-table tbody td:nth-child(7)::before {
    content: "Actions" !important;
  }

  .owner-badge,
  .status-badge {
    min-width: 120px !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  .web-status-form {
    position: relative !important;
    width: 140px !important;
    max-width: 140px !important;
    height: 34px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .web-status-form::after {
    content: none !important;
    display: none !important;
  }

  .web-status-dropdown {
    width: 140px !important;
    min-width: 0 !important;
    max-width: 140px !important;
    height: 34px !important;
    padding: 0 30px 0 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 34px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
  }

  .web-status-icon {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 10px !important;
    color: #6b7280 !important;
    pointer-events: none !important;
  }

  .posted-status-select {
    background: #dcfce7 !important;
    color: #15803d !important;
  }

  .not-posted-status-select {
    background: #fee2e2 !important;
    color: #b91c1c !important;
  }

  .nowrap-cell {
    white-space: normal !important;
    font-weight: 700 !important;
    color: #111827 !important;
  }

  .articles-page-table .action-buttons {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .articles-page-table .action-buttons form {
    width: 100% !important;
    margin: 0 !important;
  }

  .articles-page-table .view-link-btn,
  .articles-page-table .small-link-btn,
  .articles-page-table .danger-btn {
    width: 100% !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 420px) {
  .main-content {
    padding: 10px !important;
  }

  .articles-page-table tbody tr {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .articles-page-table tbody td {
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .articles-page-table tbody td::before {
    min-width: 70px !important;
  }

  .owner-badge,
  .status-badge {
    min-width: 110px !important;
  }

  .web-status-form,
  .web-status-dropdown {
    width: 130px !important;
    max-width: 130px !important;
  }

  .articles-page-table .action-buttons {
    grid-template-columns: 1fr !important;
  }
}
/* =====================================================
   MOBILE: SHOW ONLY ARTICLE NUMBER + TITLE
   ===================================================== */

@media (max-width: 760px) {
  /* Hide Owner, Editor, Website, Date, Actions */
  .articles-page-table tbody td:nth-child(3),
  .articles-page-table tbody td:nth-child(4),
  .articles-page-table tbody td:nth-child(5),
  .articles-page-table tbody td:nth-child(6),
  .articles-page-table tbody td:nth-child(7) {
    display: none !important;
  }

  /* Make mobile card compact */
  .articles-page-table tbody tr {
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
  }

  /* Number top-right */
  .articles-page-table tbody td:nth-child(1) {
    display: block !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: auto !important;
    padding: 0 !important;
  }

  .articles-page-table tbody td:nth-child(1)::before {
    display: none !important;
  }

  .article-number {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }

  /* Title only */
  .articles-page-table tbody td:nth-child(2) {
    display: block !important;
    padding: 0 42px 0 0 !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }

  .articles-page-table tbody td:nth-child(2)::before {
    display: none !important;
  }

  .article-title-btn {
    font-size: 15px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}
/* =====================================================
   DESKTOP ARTICLES TABLE: KEEP ACTIONS IN ONE LINE
   Paste at very bottom of style.css
   ===================================================== */

@media (min-width: 761px) {
  .table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  .articles-page-table {
    width: 100% !important;
    min-width: 1180px !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 16px !important;
  }

  /* Column width adjustment */
  .articles-page-table th:nth-child(1),
  .articles-page-table td:nth-child(1) {
    width: 5% !important;
  }

  .articles-page-table th:nth-child(2),
  .articles-page-table td:nth-child(2) {
    width: 29% !important;
  }

  .articles-page-table th:nth-child(3),
  .articles-page-table td:nth-child(3) {
    width: 11% !important;
  }

  .articles-page-table th:nth-child(4),
  .articles-page-table td:nth-child(4) {
    width: 13% !important;
  }

  .articles-page-table th:nth-child(5),
  .articles-page-table td:nth-child(5) {
    width: 15% !important;
  }

  .articles-page-table th:nth-child(6),
  .articles-page-table td:nth-child(6) {
    width: 10% !important;
  }

  .articles-page-table th:nth-child(7),
  .articles-page-table td:nth-child(7) {
    width: 17% !important;
  }

  /* Keep action buttons in one line */
  .articles-page-table .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
  }

  .articles-page-table .action-buttons form {
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .articles-page-table .view-link-btn,
  .articles-page-table .small-link-btn,
  .articles-page-table .danger-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-width: auto !important;
    height: 34px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .articles-page-table td:last-child {
    overflow: visible !important;
  }

  .article-title-btn {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}
/* =====================================================
   DESKTOP ARTICLES TABLE: FIT IN ONE SCREEN - NO SCROLL
   Paste at very bottom of style.css
   ===================================================== */

@media (min-width: 761px) {
  .table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .articles-page-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 14px !important;
  }

  .articles-page-table thead th,
  .articles-page-table tbody td {
    padding: 14px 10px !important;
    font-size: 13px !important;
  }

  /* Total = 100% */
  .articles-page-table th:nth-child(1),
  .articles-page-table td:nth-child(1) {
    width: 5% !important;
  }

  .articles-page-table th:nth-child(2),
  .articles-page-table td:nth-child(2) {
    width: 32% !important;
  }

  .articles-page-table th:nth-child(3),
  .articles-page-table td:nth-child(3) {
    width: 10% !important;
  }

  .articles-page-table th:nth-child(4),
  .articles-page-table td:nth-child(4) {
    width: 12% !important;
  }

  .articles-page-table th:nth-child(5),
  .articles-page-table td:nth-child(5) {
    width: 15% !important;
  }

  .articles-page-table th:nth-child(6),
  .articles-page-table td:nth-child(6) {
    width: 9% !important;
  }

  .articles-page-table th:nth-child(7),
  .articles-page-table td:nth-child(7) {
    width: 17% !important;
  }

  .article-title-btn {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }

  .owner-badge,
  .status-badge {
    padding: 7px 10px !important;
    font-size: 12px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  .article-number {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  .web-status-form {
    width: 135px !important;
    max-width: 135px !important;
    height: 36px !important;
  }

  .web-status-dropdown {
    width: 135px !important;
    max-width: 135px !important;
    min-width: 0 !important;
    height: 36px !important;
    padding: 0 28px 0 12px !important;
    font-size: 12px !important;
    line-height: 36px !important;
  }

  .web-status-icon {
    right: 11px !important;
    font-size: 10px !important;
  }

  .nowrap-cell {
    white-space: nowrap !important;
    font-size: 13px !important;
  }

  .articles-page-table .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
  }

  .articles-page-table .action-buttons form {
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .articles-page-table .view-link-btn,
  .articles-page-table .small-link-btn,
  .articles-page-table .danger-btn {
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    border-radius: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .articles-page-table td:last-child {
    overflow: visible !important;
  }
}
/* =====================================================
   MOBILE FILTER BUTTONS BEAUTIFUL FIX
   ===================================================== */

@media (max-width: 760px) {
  .compact-filter-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 4px !important;
  }

  .compact-apply-btn,
  .compact-clear-btn {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: 0.2s ease !important;
  }

  .compact-apply-btn {
    border: none !important;
    background: #bf1e2d !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(191, 30, 45, 0.22) !important;
  }

  .compact-clear-btn {
    border: 1px solid rgba(191, 30, 45, 0.18) !important;
    background: #ffffff !important;
    color: #bf1e2d !important;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05) !important;
  }

  .compact-apply-btn:active,
  .compact-clear-btn:active {
    transform: scale(0.98) !important;
  }
}

@media (max-width: 380px) {
  .compact-filter-actions {
    grid-template-columns: 1fr !important;
  }
}
/* SQL category manager additions */
.category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  background: #f4f5f7;
  color: #374151;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
}

.category-inline-form {
  margin: 0;
}

.categories-table input,
.categories-table select {
  width: 100%;
  min-width: 130px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}

.category-manager-card .portal-form {
  margin-top: 12px;
}

/* Simple category listing like WordPress category names */
.category-list-panel {
  margin-bottom: 18px;
}

.category-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.category-chip:hover,
.active-category-chip {
  border-color: #bf1e2d;
  color: #bf1e2d;
  box-shadow: 0 10px 22px rgba(191, 30, 45, 0.10);
}

.simple-category-form {
  margin-top: 8px;
}

.simple-categories-table th:nth-child(1),
.simple-categories-table td:nth-child(1) {
  width: 70px;
}

.simple-categories-table th:nth-child(3),
.simple-categories-table td:nth-child(3) {
  width: 120px;
  text-align: center;
}

/* Public website-style article list */
.website-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 18px 60px;
}

.website-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
  margin-bottom: 18px;
}

.website-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 16px;
}

.website-hero h1 {
  margin: 0 0 6px;
  font-size: 30px;
  color: #111827;
}

.website-hero p {
  margin: 0;
  color: #6b7280;
  font-weight: 600;
}

.website-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
}

.website-article-list {
  display: grid;
  gap: 16px;
}

.website-article-card,
.website-single-article {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}

.website-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.website-article-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.website-article-card h2 a {
  color: #111827;
  text-decoration: none;
}

.website-article-card h2 a:hover {
  color: #bf1e2d;
}

.website-article-excerpt {
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 18px;
}

.website-single-hero {
  justify-content: space-between;
}

.website-single-article h1 {
  margin: 0 0 22px;
  font-size: 38px;
  line-height: 1.15;
  color: #111827;
}

.website-single-content {
  max-width: none;
}

@media (max-width: 760px) {
  .website-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .website-hero h1 {
    font-size: 25px;
  }

  .website-single-article h1 {
    font-size: 28px;
  }
}

.category-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.category-mini-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f4f5f7;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

/* Website DB article listing additions */
.website-search-form {
  display: flex;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.04);
}

.website-search-input {
  flex: 1;
  min-width: 220px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.website-search-input:focus {
  border-color: #bf1e2d;
  box-shadow: 0 0 0 4px rgba(191, 30, 45, 0.08);
}

.website-article-image-link {
  display: block;
  margin: -8px -8px 16px;
  border-radius: 18px;
  overflow: hidden;
}

.website-article-image {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
  background: #f3f4f6;
  transition: transform 0.2s ease;
}

.website-article-image-link:hover .website-article-image {
  transform: scale(1.02);
}

.website-single-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  margin: 8px 0 24px;
  background: #f3f4f6;
}

@media (max-width: 760px) {
  .website-search-form {
    flex-direction: column;
  }

  .website-search-input {
    width: 100%;
  }
}


/* =====================================================
   FINAL FIX: ARTICLES TABLE 8 COLUMNS + MOBILE ACTIONS
   Fixes Website Status / Date overlap and keeps Edit/Delete visible.
   ===================================================== */

.article-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-delete-form {
  margin: 0;
}

.topbar-danger-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
}

@media (min-width: 901px) {
  .articles-page-table {
    width: 100% !important;
    min-width: 1180px !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 14px !important;
  }

  .table-wrapper {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  .articles-page-table thead th,
  .articles-page-table tbody td {
    padding: 14px 10px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
  }

  .articles-page-table th:nth-child(1),
  .articles-page-table td:nth-child(1) {
    width: 4% !important;
  }

  .articles-page-table th:nth-child(2),
  .articles-page-table td:nth-child(2) {
    width: 26% !important;
  }

  .articles-page-table th:nth-child(3),
  .articles-page-table td:nth-child(3) {
    width: 10% !important;
  }

  .articles-page-table th:nth-child(4),
  .articles-page-table td:nth-child(4) {
    width: 10% !important;
  }

  .articles-page-table th:nth-child(5),
  .articles-page-table td:nth-child(5) {
    width: 12% !important;
  }

  .articles-page-table th:nth-child(6),
  .articles-page-table td:nth-child(6) {
    width: 13% !important;
  }

  .articles-page-table th:nth-child(7),
  .articles-page-table td:nth-child(7) {
    width: 10% !important;
  }

  .articles-page-table th:nth-child(8),
  .articles-page-table td:nth-child(8) {
    width: 15% !important;
  }

  .web-status-form {
    position: relative !important;
    width: 136px !important;
    max-width: 136px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .web-status-dropdown {
    width: 136px !important;
    min-width: 0 !important;
    max-width: 136px !important;
    height: 38px !important;
    padding: 0 30px 0 13px !important;
    border-radius: 999px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
  }

  .web-status-icon {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
  }

  .nowrap-cell {
    white-space: nowrap !important;
  }

  .articles-page-table .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .articles-page-table .action-buttons form {
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .articles-page-table .view-link-btn,
  .articles-page-table .small-link-btn,
  .articles-page-table .danger-btn {
    height: 32px !important;
    min-width: 48px !important;
    padding: 0 9px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 900px) {
  .articles-page-table,
  .articles-page-table thead,
  .articles-page-table tbody,
  .articles-page-table tr,
  .articles-page-table th,
  .articles-page-table td {
    display: block !important;
    width: 100% !important;
  }

  .articles-page-table thead {
    display: none !important;
  }

  .articles-page-table tbody tr {
    position: relative !important;
    background: #fff7f8 !important;
    border: 1px solid rgba(191, 30, 45, 0.12) !important;
    border-radius: 18px !important;
    padding: 16px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05) !important;
  }

  .articles-page-table tbody td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 9px 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    white-space: normal !important;
  }

  .articles-page-table tbody td::before {
    flex: 0 0 112px !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
  }

  .articles-page-table tbody td:nth-child(1) {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: auto !important;
    padding: 0 !important;
    display: block !important;
  }

  .articles-page-table tbody td:nth-child(1)::before {
    display: none !important;
  }

  .articles-page-table tbody td:nth-child(2) {
    display: block !important;
    padding: 0 44px 14px 0 !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid rgba(191, 30, 45, 0.10) !important;
  }

  .articles-page-table tbody td:nth-child(2)::before {
    content: "Title" !important;
    display: block !important;
    margin-bottom: 6px !important;
  }

  .articles-page-table tbody td:nth-child(3)::before {
    content: "Owner" !important;
  }

  .articles-page-table tbody td:nth-child(4)::before {
    content: "Category" !important;
  }

  .articles-page-table tbody td:nth-child(5)::before {
    content: "Editor Status" !important;
  }

  .articles-page-table tbody td:nth-child(6)::before {
    content: "Website Status" !important;
  }

  .articles-page-table tbody td:nth-child(7)::before {
    content: "Date" !important;
  }

  .articles-page-table tbody td:nth-child(8)::before {
    content: "Actions" !important;
  }

  .article-title-btn {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.45 !important;
  }

  .web-status-form {
    position: relative !important;
    width: 150px !important;
    max-width: 150px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .web-status-dropdown {
    width: 150px !important;
    max-width: 150px !important;
    min-width: 0 !important;
    height: 36px !important;
    padding: 0 32px 0 13px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 36px !important;
    box-sizing: border-box !important;
  }

  .web-status-icon {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 10px !important;
    pointer-events: none !important;
  }

  .articles-page-table .action-buttons {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .articles-page-table .action-buttons form {
    width: 100% !important;
    margin: 0 !important;
  }

  .articles-page-table .view-link-btn,
  .articles-page-table .small-link-btn,
  .articles-page-table .danger-btn {
    width: 100% !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .article-topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .article-topbar-actions .primary-btn,
  .article-topbar-actions .secondary-btn,
  .article-topbar-actions .topbar-delete-form,
  .article-topbar-actions .topbar-danger-btn {
    width: 100%;
  }

  .article-topbar-actions .topbar-danger-btn {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .articles-page-table tbody td {
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .articles-page-table tbody td::before {
    flex-basis: 92px !important;
  }

  .web-status-form,
  .web-status-dropdown {
    width: 138px !important;
    max-width: 138px !important;
  }

  .articles-page-table .action-buttons {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   FINAL FIX: Articles table no horizontal scroll + clean title/actions
   ========================================================= */
.content-card {
  overflow: hidden !important;
}

.table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.article-list-table,
.articles-page-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
}

.articles-page-table th,
.articles-page-table td {
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

/* 8 columns: #, Title, Owner, Category, Editor Status, Website Status, Date, Actions */
.articles-page-table th:nth-child(1),
.articles-page-table td:nth-child(1) { width: 4% !important; }

.articles-page-table th:nth-child(2),
.articles-page-table td:nth-child(2) { width: 24% !important; }

.articles-page-table th:nth-child(3),
.articles-page-table td:nth-child(3) { width: 10% !important; }

.articles-page-table th:nth-child(4),
.articles-page-table td:nth-child(4) { width: 10% !important; }

.articles-page-table th:nth-child(5),
.articles-page-table td:nth-child(5) { width: 12% !important; }

.articles-page-table th:nth-child(6),
.articles-page-table td:nth-child(6) { width: 13% !important; }

.articles-page-table th:nth-child(7),
.articles-page-table td:nth-child(7) { width: 9% !important; }

.articles-page-table th:nth-child(8),
.articles-page-table td:nth-child(8) { width: 18% !important; }

.articles-page-table .title-cell {
  max-width: 0 !important;
}

.article-title-btn,
.articles-page-table .title-cell a,
.articles-page-table .title-cell strong {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.articles-page-table .owner-badge,
.articles-page-table .category-badge,
.articles-page-table .status-badge {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.articles-page-table .web-status-form {
  width: 128px !important;
  max-width: 100% !important;
  height: 36px !important;
}

.articles-page-table .web-status-dropdown {
  width: 128px !important;
  max-width: 100% !important;
  height: 36px !important;
  padding: 0 28px 0 12px !important;
  font-size: 12px !important;
  line-height: 36px !important;
}

.articles-page-table .web-status-icon {
  right: 11px !important;
}

.articles-page-table .action-buttons {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  align-items: center !important;
}

.articles-page-table .action-buttons form {
  width: 100% !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.articles-page-table .view-link-btn,
.articles-page-table .small-link-btn,
.articles-page-table .danger-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 6px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.articles-page-table .nowrap-cell {
  white-space: nowrap !important;
  font-size: 13px !important;
}

@media (max-width: 1180px) {
  .articles-page-table th:nth-child(2),
  .articles-page-table td:nth-child(2) { width: 21% !important; }

  .articles-page-table th:nth-child(3),
  .articles-page-table td:nth-child(3) { width: 9% !important; }

  .articles-page-table th:nth-child(4),
  .articles-page-table td:nth-child(4) { width: 9% !important; }

  .articles-page-table th:nth-child(6),
  .articles-page-table td:nth-child(6) { width: 14% !important; }

  .articles-page-table th:nth-child(8),
  .articles-page-table td:nth-child(8) { width: 20% !important; }

  .articles-page-table .web-status-form,
  .articles-page-table .web-status-dropdown {
    width: 118px !important;
  }

  .articles-page-table .view-link-btn,
  .articles-page-table .small-link-btn,
  .articles-page-table .danger-btn {
    font-size: 10px !important;
    padding: 0 4px !important;
  }
}

/* On tablet/mobile use cards instead of a wide table, so there is never side scroll. */
@media (max-width: 900px) {
  .table-wrapper {
    overflow-x: hidden !important;
  }

  .article-list-table,
  .articles-page-table {
    border-spacing: 0 !important;
  }

  .articles-page-table .title-cell {
    max-width: none !important;
  }

  .article-title-btn,
  .articles-page-table .title-cell a,
  .articles-page-table .title-cell strong {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.45 !important;
  }
}

