/* ==========================================================================
   I WANT PDF — BLOG & PUBLISHING CMS STYLESHEET
   Brand: I Want PDF | Editorial Layout & Yoast SEO Engine
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-gradient);
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* Blog Index & Featured Article */
.blog-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -1.2px;
  margin-bottom: 8px;
}

.blog-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.blog-categories-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 40px;
}

.blog-cat-btn {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-cat-btn:hover, .blog-cat-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.featured-article-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
  transition: all var(--transition-normal);
}

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

.featured-article-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #102653, #2678ff);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 48px;
}

.featured-article-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-category-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.featured-article-body h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.featured-article-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

/* Articles Matrix */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 54px;
}

.article-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 120, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.article-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, #eef4fc, #dfeafb);
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  font-size: 36px;
}

.article-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.35;
  margin: 6px 0 10px;
}

.article-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* Single Article Layout */
.article-reading-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 48px;
  padding: 44px 0 68px;
}

.article-main-content {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
}

.article-header-block {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.article-header-block h1 {
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-navy);
  letter-spacing: -1px;
  margin: 12px 0 16px;
}

.article-prose {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-main);
}

.article-prose p {
  margin-bottom: 20px;
}

.article-prose h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 36px 0 14px;
  letter-spacing: -0.5px;
}

.article-prose h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 26px 0 12px;
}

.article-prose ul, .article-prose ol {
  margin: 0 0 24px 24px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose blockquote {
  border-left: 4px solid var(--brand-blue);
  background: var(--surface-muted);
  padding: 16px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  margin: 24px 0;
  color: var(--text-muted);
}

.article-prose img {
  border-radius: var(--radius-md);
  margin: 28px 0;
  box-shadow: var(--shadow-md);
}

/* Table of Contents & Sidebar */
.article-sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: fit-content;
}

.toc-widget {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.toc-widget h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-links a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  transition: all var(--transition-fast);
}

.toc-links a:hover {
  color: var(--brand-blue);
  padding-left: 4px;
}

/* ==========================================================================
   ADMIN BLOG PUBLISHING & YOAST SEO CMS STUDIO
   ========================================================================== */
.admin-cms-wrapper {
  padding: 32px 0 64px;
}

.admin-cms-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
}

.editor-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 18px;
}

.toolbar-btn {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
}

.toolbar-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.paste-cleaner-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(33, 191, 131, 0.1);
  border: 1px solid rgba(33, 191, 131, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--brand-green);
  font-weight: 600;
  margin-bottom: 16px;
}

.article-content-editable {
  min-height: 380px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  outline: none;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  background: var(--surface-primary);
}

.article-content-editable:focus {
  border-color: var(--brand-blue);
}

/* Yoast SEO Studio Sidebar */
.yoast-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.score-dial-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.score-circle-display {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 8px solid var(--border-light);
  display: grid;
  place-items: center;
  margin: 10px auto;
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-navy);
  transition: all 0.3s ease;
}

.score-circle-display.score-good {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.score-circle-display.score-ok {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

.score-circle-display.score-bad {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* Traffic Light Rules List */
.yoast-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}

.yoast-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.traffic-light-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.dot-good { background: var(--brand-green); }
.dot-ok { background: var(--brand-yellow); }
.dot-bad { background: var(--brand-red); }

/* Live Google SERP Simulator */
.serp-preview-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.serp-url {
  font-size: 12px;
  color: #202124;
  margin-bottom: 2px;
}

.serp-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a0dab;
  line-height: 1.3;
  margin-bottom: 4px;
  cursor: pointer;
}

.serp-snippet {
  font-size: 13px;
  color: #4d5156;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .featured-article-card { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-reading-layout { grid-template-columns: 1fr; }
  .admin-cms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article-main-content { padding: 24px 16px; }
}

/* ==========================================================================
   ADMIN ENTERPRISE DASHBOARD & LOGIN GATE STYLES
   ========================================================================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-box {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: modalPopIn 0.25s ease-out;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.admin-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--brand-purple);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.admin-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: var(--surface-subtle);
}

.admin-tab-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.admin-tab-btn .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.admin-tab-btn:not(.active) .tab-badge {
  background: var(--surface-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

/* Stats Metrics Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

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

@media (max-width: 600px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
}

.admin-stat-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient, linear-gradient(90deg, #2563eb, #7c3aed));
}

.admin-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-stat-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--surface-subtle);
}

.admin-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.1;
  margin-bottom: 6px;
}

.admin-stat-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Tables & Management Cards */
.admin-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.admin-table th {
  background: var(--surface-subtle);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--surface-subtle);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-good {
  background: rgba(33, 191, 131, 0.12);
  color: #10b981;
  border: 1px solid rgba(33, 191, 131, 0.3);
}

.badge-ok {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-bad {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Inbox Messages Styling */
.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inbox-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inbox-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.inbox-sender {
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-navy);
}

.inbox-email {
  font-size: 13px;
  color: var(--brand-blue);
  margin-left: 8px;
}

.inbox-date {
  font-size: 12px;
  color: var(--text-muted);
}

.inbox-subject {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.inbox-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--surface-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  white-space: pre-wrap;
}

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

/* ==========================================================================
   ADVANCED WORDPRESS-GRADE CMS & INSPECTOR SIDEBAR
   ========================================================================== */
.wp-editor-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1080px) {
  .wp-editor-layout {
    grid-template-columns: 1fr;
  }
}

.wp-main-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.wp-title-input {
  width: 100%;
  font-size: 28px;
  font-weight: 800;
  border: none;
  outline: none;
  background: transparent;
  color: var(--brand-navy);
  margin-bottom: 8px;
  font-family: inherit;
  padding: 4px 0;
}

.wp-title-input::placeholder {
  color: #94a3b8;
}

.wp-permalink-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.wp-permalink-slug-input {
  border: 1px dashed var(--brand-blue);
  background: var(--surface-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  outline: none;
}

.wp-toolbar-sticky {
  position: sticky;
  top: 75px;
  z-index: 20;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wp-toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  border-right: 1px solid var(--border-light);
  padding-right: 6px;
  margin-right: 4px;
}

.wp-toolbar-group:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.wp-select-format {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.wp-content-canvas {
  min-height: 480px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-main);
  background: var(--surface-primary);
  outline: none;
}

.wp-content-canvas:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wp-content-canvas img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

/* ==========================================================
   ENTERPRISE WORDPRESS INSPECTOR SIDEBAR & BOXES (ADVANCED)
   ========================================================== */
.wp-inspector-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 1. Advance Sidebar Card */
.wp-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.wp-sidebar-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

/* 2. Card Header */
.wp-sidebar-card-header {
  padding: 13px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-card-icon {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

/* 3. Card Body */
.wp-sidebar-card-body {
  padding: 18px 20px;
}

/* 4. Form Groups & Custom Form Controls */
.form-group-custom {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label-custom {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.form-input-custom {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-input-custom:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.form-input-custom:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-input-custom::placeholder {
  color: #94a3b8;
}

/* Custom Styled Select Dropdowns */
.custom-select-wrap {
  position: relative;
  width: 100%;
}

select.form-input-custom {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  cursor: pointer;
  line-height: 1.4;
}

select.form-input-custom:hover {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* 5. Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pill-badge.pill-draft {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.1);
}

.pill-badge.pill-published {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
  box-shadow: 0 1px 2px rgba(34, 197, 94, 0.1);
}

.pill-badge.pill-scheduled {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

/* 6. Meta Status Row */
.wp-meta-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 9px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 16px;
}

.wp-saved-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  font-weight: 600;
}

.wp-saved-indicator::before {
  content: '';
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* 7. Action Buttons in Sidebar */
.wp-action-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-save-draft {
  flex: 1;
  padding: 11px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font-family: inherit;
}

.btn-save-draft:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-save-draft:active {
  transform: translateY(0);
}

.btn-publish-action {
  flex: 1;
  padding: 11px 16px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}

.btn-publish-action:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.btn-publish-action:active {
  transform: translateY(0);
}

/* 8. Smart Internal Linking Widget */
.smart-linking-badge {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.smart-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.smart-link-item:hover {
  border-color: #93c5fd;
  background: #f0f7ff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.06);
  transform: translateY(-1px);
}

.smart-link-tool-title {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}

.smart-link-keyword {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.btn-insert-link {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.2);
}

.btn-insert-link:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* 9. Tags Chip Box */
.wp-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.wp-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  transition: all 0.15s ease;
}

.wp-tag-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wp-tag-remove-btn {
  cursor: pointer;
  color: #94a3b8;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s;
}

.wp-tag-remove-btn:hover {
  color: #ef4444;
}

/* 10. Featured Image Card */
.featured-img-preview-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #0f172a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.featured-img-preview-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* 11. SERP Preview Box */
.serp-preview-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-top: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.serp-url {
  font-size: 11px;
  color: #202124;
  margin-bottom: 4px;
  word-break: break-all;
}

.serp-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a0dab;
  line-height: 1.3;
  margin-bottom: 4px;
  cursor: pointer;
}

.serp-title:hover {
  text-decoration: underline;
}

.serp-snippet {
  font-size: 12px;
  color: #4d5156;
  line-height: 1.5;
}

/* 12. Score Circle & Yoast Rules */
.score-circle-display {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2.5px solid #22c55e;
  color: #15803d;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
}

.yoast-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yoast-rules-list li {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 5px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.yoast-rules-list li.rule-good {
  color: #166534;
  background: #f0fdf4;
  border-color: #dcfce7;
}

.yoast-rules-list li.rule-bad {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fee2e2;
}

.yoast-rules-list li.rule-warn {
  color: #92400e;
  background: #fffbeb;
  border-color: #fef3c7;
}

/* Toggle Switch */
.switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.switch-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
}

.switch-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--brand-blue);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Code Textarea & Monospace Views */
.code-textarea {
  width: 100%;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 12px;
  resize: vertical;
  outline: none;
}

.code-textarea:focus {
  border-color: var(--brand-blue);
}

/* Health Monitor Cards */
.health-kpi-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.health-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--surface-subtle);
}

/* Modal Popup */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================
   ENTERPRISE LEFT SIDEBAR DASHBOARD SYSTEM
   ========================================================== */
.admin-dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

/* Left Sidebar Fixed Drawer */
.admin-sidebar {
  width: 270px;
  background: #0b132b;
  color: #f8fafc;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar-brand {
  padding: 24px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.sidebar-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.sidebar-brand-name b {
  color: #60a5fa;
}

.sidebar-brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
}

.sidebar-status-box {
  margin: 14px 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulseDot 2s infinite;
}

.status-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.status-domain {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.status-env {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

/* Sidebar Nav Scrollable */
.sidebar-nav {
  padding: 12px 14px 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

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

.sidebar-group-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #64748b;
  padding: 0 10px;
  margin-bottom: 6px;
}

.sidebar-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-family: inherit;
}

.sidebar-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}

.sidebar-nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  font-weight: 700;
}

.sidebar-nav-item .nav-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav-item .nav-label {
  flex: 1;
}

.sidebar-nav-item .nav-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.sidebar-nav-item .nav-badge-amber {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.sidebar-nav-item .nav-badge-red {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.user-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 600;
}

.btn-sidebar-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sidebar-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Right Main Area Wrapper */
.admin-main-wrap {
  margin-left: 270px;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Header Bar */
.admin-top-bar {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.topbar-title-wrap {
  display: flex;
  flex-direction: column;
}

.topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.2;
}

.topbar-crumb {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

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

.admin-main-content {
  padding: 28px 32px 60px;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  .admin-dashboard-layout {
    flex-direction: column;
  }
  .admin-main-wrap {
    margin-left: 0;
  }
}



