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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand colors */
  --brand-primary: #2563eb;
  --brand-primary-light: #3b82f6;
  --brand-primary-dark: #1d4ed8;
  --brand-accent: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(6,182,212,0.08) 100%);

  /* Surface colors (dark mode) */
  --bg-base: #0b0f1a;
  --bg-surface: #111827;
  --bg-elevated: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.6);
  --bg-card-hover: rgba(37, 99, 235, 0.08);
  --bg-sidebar: #0f172a;
  --bg-code: #1e293b;

  /* Text colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #60a5fa;
  --text-on-brand: #ffffff;

  /* Border colors */
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-medium: rgba(148, 163, 184, 0.2);
  --border-accent: rgba(37, 99, 235, 0.4);

  /* Spacing */
  --sidebar-width: 300px;
  --header-height: 64px;
  --content-max-width: 860px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(37,99,235,0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-normal: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--brand-primary-light);
}

/* ---------- Layout ---------- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow);
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-brand .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

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

.sidebar-brand .brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.sidebar-brand .brand-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sidebar search */
.sidebar-search {
  padding: 16px 20px;
  flex-shrink: 0;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Sidebar navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 12px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 450;
  transition: all var(--transition-fast);
  cursor: pointer;
  line-height: 1.4;
}

.nav-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text-accent);
  font-weight: 550;
}

.nav-link .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-link.active .nav-icon {
  opacity: 1;
}

.nav-link.hidden {
  display: none;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.sidebar-footer a:hover {
  color: var(--text-accent);
}

/* ---------- Main Content Area ---------- */
.main-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar */
.topbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.hamburger-btn:hover {
  background: var(--bg-elevated);
}
.hamburger-btn svg {
  width: 22px;
  height: 22px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--text-accent);
}

.breadcrumb .separator {
  opacity: 0.4;
}

.breadcrumb .current {
  color: var(--text-secondary);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-main-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-main-site:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

/* ---------- Content ---------- */
.content-wrapper {
  flex: 1;
  padding: 40px 48px 80px;
  max-width: calc(var(--content-max-width) + 96px);
}

/* Page header */
.page-header {
  margin-bottom: 40px;
}

.page-header .page-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-primary-light);
  margin-bottom: 8px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header .page-desc {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

/* ---------- Home Page (Card Grid) ---------- */
.home-hero {
  text-align: center;
  padding: 48px 0 24px;
}

.home-hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.home-hero h1 .gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero .hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.doc-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.doc-card:hover::before {
  opacity: 1;
}

.doc-card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.doc-card .card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--brand-primary-light);
}

.doc-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.doc-card .card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.doc-card .card-category {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-accent);
  padding: 3px 8px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 4px;
}

/* ---------- Article Content ---------- */
.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

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

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

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

.article-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 20px 0;
}

.article-content a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--brand-primary-light);
}

/* Steps */
.step-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  transition: border-color var(--transition-fast);
}

.step-block:hover {
  border-color: var(--border-accent);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.step-content {
  padding-left: 40px;
  color: var(--text-secondary);
}

.step-content p {
  margin-bottom: 8px;
}

/* Info callouts */
.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout-info {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.6;
}

.callout-text {
  font-size: 14px;
  line-height: 1.6;
}

/* Video embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin: 24px 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.back-link:hover {
  color: var(--text-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--text-accent);
}

/* ---------- Sidebar Overlay (Mobile) ---------- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ---------- Scroll to top ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  z-index: 80;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-2px);
}

/* ---------- Roadmap ---------- */

/* Summary bar */
.rm-summary {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 36px;
  margin-bottom: 32px;
}

.rm-summary-ring {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.rm-ring-svg {
  width: 100%;
  height: 100%;
}

.rm-ring-progress {
  animation: rm-ring-fill 1.5s ease-out forwards;
  stroke-dashoffset: 339.29;
}

@keyframes rm-ring-fill {
  to { stroke-dashoffset: 135.72; }
}

.rm-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rm-ring-pct {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.rm-ring-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.rm-summary-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.rm-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rm-stat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rm-dot-working {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
  animation: rm-pulse 2s ease-in-out infinite;
}

@keyframes rm-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.8); }
}

.rm-dot-planned {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.rm-dot-completed {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.rm-stat-info {
  display: flex;
  flex-direction: column;
}

.rm-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.rm-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Kanban columns — stacked vertically: Working On → Planned → Completed */
.rm-columns {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rm-column {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.rm-column > .rm-item,
#completedItems > .rm-item {
  break-inside: avoid;
}

/* Items grid within each column */
.rm-col-working > .rm-item,
.rm-col-planned > .rm-item {
  display: inline-block;
  width: 100%;
}

.rm-col-working,
.rm-col-planned {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.rm-col-working > .rm-col-header,
.rm-col-planned > .rm-col-header {
  grid-column: 1 / -1;
}

.rm-col-working > .rm-item,
.rm-col-planned > .rm-item {
  margin-bottom: 0;
}

.rm-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.rm-col-header-toggle {
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.rm-col-header-toggle:hover {
  opacity: 0.8;
}

.rm-col-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rm-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
}

.rm-col-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 10px;
  border-radius: 12px;
}

.rm-toggle-icon {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

/* Roadmap items */
.rm-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.rm-item:last-child {
  margin-bottom: 0;
}

.rm-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.rm-item-done {
  opacity: 0.75;
}

.rm-item-done:hover {
  opacity: 1;
}

.rm-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.rm-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.rm-badge-working {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.rm-badge-planned {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.rm-badge-completed {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.rm-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.rm-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.rm-item-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Progress bar */
.rm-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rm-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.rm-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 3px;
  animation: rm-bar-fill 1.2s ease-out forwards;
  transform-origin: left;
}

@keyframes rm-bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.rm-progress-label {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  min-width: 32px;
  text-align: right;
}

/* Category tags */
.rm-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 4px;
}

.rm-tag-ads {
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
}

.rm-tag-analytics {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
}

.rm-tag-website {
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
}

.rm-tag-advertising {
  background: rgba(249, 115, 22, 0.1);
  color: #fb923c;
}

.rm-tag-content {
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
}

.rm-tag-google {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

.rm-tag-general {
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
}

/* Collapsible completed */
.rm-collapsed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

#completedItems:not(.rm-collapsed) {
  max-height: 3000px;
  opacity: 1;
  transition: max-height 0.6s ease, opacity 0.4s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content-wrapper {
    padding: 32px 28px 60px;
  }

  .rm-summary {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 24px 20px;
  }

  .rm-summary-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-area {
    margin-left: 0;
  }

  .hamburger-btn {
    display: flex;
  }

  .content-wrapper {
    padding: 24px 16px 60px;
  }

  .home-hero h1 {
    font-size: 28px;
  }

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

  .page-header h1 {
    font-size: 24px;
  }

  .topbar {
    padding: 0 16px;
  }

  .site-footer {
    padding: 20px 16px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
