/* ============================================================================
   SECTION CONTAINER
   ============================================================================ */
.demo-dashboard-section {
  position: relative;
  padding: 80px 0 0;
  background: var(--bg-surface-secondary, #f9fafb);
  overflow: hidden;
}

[data-theme="dark"] .demo-dashboard-section {
  background: #0f1419;
}

[data-theme="creamy"] .demo-dashboard-section {
  background: #faf8f5;
}

.demo-dashboard-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.demo-dashboard-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.demo-dashboard-section .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-info-bg, rgba(67, 121, 255, 0.1));
  color: var(--color-primary, #4379ff);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.demo-dashboard-section .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin-bottom: 16px;
  line-height: 1.2;
}

.demo-dashboard-section .section-description {
  font-size: 1.125rem;
  color: var(--text-secondary, #6b7280);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================================
   DEMO VIEWPORT
   ============================================================================ */
.demo-viewport {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  max-width: 80%;
  margin: auto;
  background: var(--bg-surface-secondary, #f3f4f6);
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .demo-viewport {
  background: #16202a;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="creamy"] .demo-viewport {
  background: #f5f2ed;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.08);
}

/* Browser-like header */
.demo-browser-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-surface, #fff);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .demo-browser-header {
  background: #1d2a36;
  border-bottom-color: #2f3336;
}

[data-theme="creamy"] .demo-browser-header {
  background: #fff;
  border-bottom-color: #e8e4dd;
}

.demo-browser-dots {
  display: flex;
  gap: 8px;
}

.demo-browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-browser-dot:nth-child(1) {
  background: #ef4444;
}
.demo-browser-dot:nth-child(2) {
  background: #f59e0b;
}
.demo-browser-dot:nth-child(3) {
  background: #10b981;
}

.demo-browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface-secondary, #f3f4f6);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
}

[data-theme="dark"] .demo-browser-url {
  background: #243442;
  color: #8b98a5;
}

.demo-browser-url i {
  color: var(--color-success, #10b981);
}

/* ============================================================================
   DEMO SCREENS CONTAINER
   ============================================================================ */
.demo-screens-wrapper {
  position: relative;
  height: calc(100% - 52px);
  overflow: hidden;
}

.demo-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  overflow: hidden;
}

.demo-screen.active {
  opacity: 1;
  visibility: visible;
}

.demo-screen.exiting {
  opacity: 0;
  visibility: hidden;
}

/* Hide scrollbar for cleaner look */
.demo-screen::-webkit-scrollbar {
  width: 6px;
}

.demo-screen::-webkit-scrollbar-thumb {
  background: var(--border-color, #e5e7eb);
  border-radius: 3px;
}

/* ============================================================================
   ANIMATED CURSOR
   ============================================================================ */
.demo-cursor {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.demo-cursor.visible {
  opacity: 1;
}

.demo-cursor svg {
  width: 100%;
  height: 100%;
}

.demo-cursor.clicking {
  transform: scale(0.9);
}

/* Cursor click ripple effect */
.demo-click-ripple {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(67, 121, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 999;
}

.demo-click-ripple.animate {
  animation: clickRipple 0.6s ease-out forwards;
}

@keyframes clickRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* ============================================================================
   BOTTOM FADE OVERLAY
   ============================================================================ */
.demo-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to top,
    var(--bg-surface-secondary, #f9fafb) 0%,
    var(--bg-surface-secondary, #f9fafb) 20%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 100;
}

[data-theme="dark"] .demo-fade-overlay {
  background: linear-gradient(
    to top,
    #0f1419 0%,
    #0f1419 20%,
    transparent 100%
  );
}

[data-theme="creamy"] .demo-fade-overlay {
  background: linear-gradient(
    to top,
    #faf8f5 0%,
    #faf8f5 20%,
    transparent 100%
  );
}

/* ============================================================================
   DEMO DASHBOARD STYLES
   ============================================================================ */
.demo-dashboard {
  display: flex;
  min-height: 100%;
  background: var(--bg-surface-secondary, #f3f4f6);
}

[data-theme="dark"] .demo-dashboard {
  background: #0f1419;
}

/* Demo Sidebar */
.demo-sidebar {
  width: 240px;
  background: var(--bg-surface, #fff);
  border-right: 1px solid var(--border-color, #e5e7eb);
  padding: 20px 0;
  flex-shrink: 0;
}

[data-theme="dark"] .demo-sidebar {
  background: #16202a;
  border-right-color: #2f3336;
}

[data-theme="creamy"] .demo-sidebar {
  background: #fff;
  border-right-color: #e8e4dd;
}

.demo-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  margin-bottom: 20px;
}

[data-theme="dark"] .demo-sidebar-brand {
  border-bottom-color: #2f3336;
}

.demo-sidebar-brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(
    135deg,
    var(--color-primary, #4379ff),
    var(--color-secondary, #1cc6ff)
  );
  border-radius: 8px;
}

.demo-sidebar-brand-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary, #111827);
}

.demo-nav-section {
  padding: 0 12px;
  margin-bottom: 20px;
}

.demo-nav-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 8px;
  margin-bottom: 8px;
}

.demo-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-nav-item:hover {
  background: var(--bg-hover, #f3f4f6);
  color: var(--text-primary, #111827);
}

[data-theme="dark"] .demo-nav-item:hover {
  background: #1d2a36;
}

.demo-nav-item.active {
  background: var(--bg-selected, rgba(67, 121, 255, 0.1));
  color: var(--color-primary, #4379ff);
}

.demo-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

/* Demo Main Content */
.demo-main {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

/* Demo Header */
.demo-header-welcome {
  margin-bottom: 24px;
  margin-top: 20px;
}

.demo-header-welcome h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin-bottom: 4px;
}

.demo-header-welcome p {
  color: var(--text-secondary, #6b7280);
  font-size: 0.9rem;
}

/* Demo Stats Grid */
.demo-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

.demo-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card, #fff);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .demo-stat-card {
  background: #16202a;
  box-shadow: none;
}

[data-theme="creamy"] .demo-stat-card {
  background: #fff;
}

.demo-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
}

.demo-stat-icon.projects {
  background: rgba(67, 121, 255, 0.1);
  color: var(--color-primary, #4379ff);
}

.demo-stat-icon.active {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.demo-stat-icon.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.demo-stat-icon.spent {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.demo-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  line-height: 1;
}

.demo-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
  margin-top: 4px;
}

/* Demo Dashboard Grid */
.demo-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1000px) {
  .demo-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.demo-card {
  background: var(--bg-card, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .demo-card {
  background: #16202a;
  box-shadow: none;
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .demo-card-header {
  border-bottom-color: #2f3336;
}

.demo-card-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin: 0;
}

.demo-card-header h2 i {
  color: var(--color-primary, #4379ff);
}

.demo-card-header .demo-view-all {
  font-size: 0.8rem;
  color: var(--color-primary, #4379ff);
  text-decoration: none;
}

.demo-card-body {
  padding: 16px 20px;
}

/* Project Items */
.demo-project-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--bg-surface-secondary, #f9fafb);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

[data-theme="dark"] .demo-project-item {
  background: #1d2a36;
}

[data-theme="creamy"] .demo-project-item {
  background: #faf8f5;
}

.demo-project-item:hover,
.demo-project-item.highlight {
  background: var(--bg-active, #e5e7eb);
  transform: translateX(4px);
}

[data-theme="dark"] .demo-project-item:hover,
[data-theme="dark"] .demo-project-item.highlight {
  background: #243442;
}

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

.demo-project-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 121, 255, 0.1);
  color: var(--color-primary, #4379ff);
  border-radius: 10px;
  flex-shrink: 0;
}

.demo-project-info {
  flex: 1;
  min-width: 0;
}

.demo-project-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary, #111827);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.demo-status-badge {
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 500;
}

.demo-status-badge.in-progress {
  border: 1px solid #91d5ff;
  background-color: #e6f7ff;
  color: #00529b;
}

.demo-status-badge.review {
  border: 1px solid #ffe58f;
  background-color: #fffbea;
  color: #8a6d1c;
}

.demo-status-badge.completed {
  border: 1px solid #a8f170;
  background-color: #eafcdd;
  color: #217007;
}

[data-theme="dark"] .demo-status-badge.completed {
  border-color: #3d5c28;
  background-color: #1a2e12;
  color: #a8f170;
}

[data-theme="dark"] .demo-status-badge.in-progress {
  border-color: #1a4a6e;
  background-color: #0d2636;
  color: #91d5ff;
}

[data-theme="dark"] .demo-status-badge.review {
  border-color: #5c4a1a;
  background-color: #2e2510;
  color: #ffe58f;
}

.demo-project-progress {
  color: var(--text-muted, #9ca3af);
}

.demo-project-arrow {
  color: var(--text-muted, #9ca3af);
  font-size: 0.8rem;
}

/* Draft Items */
.demo-draft-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--bg-surface-secondary, #f9fafb);
  border-radius: 10px;
}

[data-theme="dark"] .demo-draft-item {
  background: #1d2a36;
}

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

.demo-draft-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary, #111827);
  margin-bottom: 2px;
}

.demo-draft-date {
  font-size: 0.75rem;
  color: var(--text-muted, #9ca3af);
}

.demo-draft-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--color-primary, #4379ff);
  color: var(--color-primary, #4379ff);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

/* ============================================================================
   DEMO PROJECT DETAIL STYLES
   ============================================================================ */
.demo-project-detail {
  display: flex;
  min-height: 100%;
  background: var(--bg-surface-secondary, #f3f4f6);
}

[data-theme="dark"] .demo-project-detail {
  background: #0f1419;
}

.demo-project-main {
  flex: 1;
  padding: 24px;
}

/* Project Header */
.demo-project-header {
  margin-bottom: 24px;
  margin-top: 20px;
}

.demo-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 12px;
  cursor: pointer;
}

.demo-back-link:hover {
  color: var(--color-primary, #4379ff);
}

/* Project Detail Header Layout */
.demo-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.demo-header-actions {
  display: flex;
  gap: 8px;
}

.demo-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary, #6b7280);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: default;
  gap: 6px;
}

[data-theme="dark"] .demo-action-btn {
  background: #1d2a36;
  border-color: #2f3336;
}

.demo-action-btn:hover {
  border-color: var(--color-primary, #4379ff);
  color: var(--color-primary, #4379ff);
}

.demo-action-btn i.fa-figma {
  color: #a259ff;
}

.demo-action-btn i.fa-github {
  color: var(--text-primary, #111827);
}

[data-theme="dark"] .demo-action-btn i.fa-github {
  color: #fff;
}

.demo-project-title-section h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin-bottom: 8px;
}

.demo-project-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-project-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
}

.demo-project-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
}

/* Status Bar */
.demo-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: var(--bg-surface-secondary, #f3f4f6);
  border-radius: 12px;
  margin-bottom: 24px;
}

[data-theme="dark"] .demo-status-bar {
  background: #1d2a36;
}

.demo-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary, #4379ff);
}

.demo-status-label {
  font-weight: 600;
  color: var(--text-primary, #111827);
}

.demo-progress-section {
  flex: 1;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-surface-tertiary, #e5e7eb);
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="dark"] .demo-progress-bar {
  background: #243442;
}

.demo-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-primary, #4379ff),
    var(--color-secondary, #1cc6ff)
  );
  border-radius: 4px;
  transition: width 0.3s ease;
}

.demo-progress-text {
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
  white-space: nowrap;
}

/* Project Content Grid */
.demo-project-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 1000px) {
  .demo-project-content {
    grid-template-columns: 1fr;
  }
}

/* Overview Grid */
.demo-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.demo-overview-item .demo-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 4px;
}

.demo-overview-item .demo-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary, #111827);
}

/* Features Grid */
.demo-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(67, 121, 255, 0.1);
  color: var(--color-primary, #4379ff);
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Sidebar Cards */
.demo-project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-sidebar-card {
  background: var(--bg-card, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .demo-sidebar-card {
  background: #16202a;
  box-shadow: none;
}

.demo-sidebar-card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .demo-sidebar-card-header {
  border-bottom-color: #2f3336;
}

.demo-sidebar-card-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin: 0;
}

.demo-sidebar-card-body {
  padding: 16px;
}

/* Quick Actions */
.demo-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-action-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface-secondary, #f9fafb);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-primary, #111827);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

[data-theme="dark"] .demo-action-link {
  background: #1d2a36;
}

.demo-action-link:hover,
.demo-action-link.highlight {
  background: var(--bg-active, #e5e7eb);
}

[data-theme="dark"] .demo-action-link:hover,
[data-theme="dark"] .demo-action-link.highlight {
  background: #243442;
}

.demo-action-link i {
  color: var(--color-primary, #4379ff);
  width: 18px;
}

/* ============================================================================
   DEMO KANBAN/TASKS STYLES
   ============================================================================ */
.demo-kanban {
  display: flex;
  min-height: 100%;
  background: var(--bg-surface-secondary, #f3f4f6);
}

[data-theme="dark"] .demo-kanban {
  background: #0f1419;
}

.demo-kanban-main {
  flex: 1;
  padding: 24px;
  overflow-x: auto;
}

/* Kanban Header */
.demo-kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 20px;
}

.demo-kanban-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-kanban-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin: 0;
}

.demo-kanban-header small {
  color: var(--text-muted, #9ca3af);
  font-size: 0.85rem;
}

/* Kanban Stats */
.demo-kanban-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.demo-kanban-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card, #fff);
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .demo-kanban-stat {
  background: #16202a;
  border-color: #2f3336;
}

.demo-kanban-stat i {
  color: var(--text-muted, #9ca3af);
}

.demo-kanban-stat .stat-value {
  font-weight: 700 !important;
  color: var(--text-primary, #111827);
}

.demo-kanban-stat.progress .stat-value {
  color: var(--color-primary, #4379ff);
}

.demo-kanban-stat.completed .stat-value {
  color: #10b981 !important;
}

/* Kanban Board */
.demo-kanban-board {
  display: flex;
  gap: 16px;
  min-height: 400px;
}

.demo-kanban-column {
  flex: 0 0 280px;
  background: var(--bg-surface-secondary, #f9fafb);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: 500px;
}

.demo-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 3px solid var(--color-primary, #4379ff);
}

.demo-column-header.in-progress {
  border-bottom-color: #8b5cf6;
}

.demo-column-header.review {
  border-bottom-color: #f59e0b;
}

.demo-column-header.done {
  border-bottom-color: #10b981;
}

.demo-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary, #111827);
}

.demo-column-title i {
  font-size: 0.85rem;
}

.demo-column-count {
  background: var(--bg-surface-secondary, #f3f4f6);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #6b7280);
}

[data-theme="dark"] .demo-column-count {
  background: #243442;
}

.demo-task-list {
  flex: 1;
  padding: 12px;
  overflow: hidden;
}

/* Task Cards */
.demo-task-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

[data-theme="dark"] .demo-task-card {
  background: #1d2a36;
  border-color: #2f3336;
}

.demo-task-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary-light, #6b94ff);
}

.demo-task-card:last-child {
  margin-bottom: 0;
}

.demo-task-card.completed {
  opacity: 0.6;
}

.demo-task-type {
  margin-bottom: 8px;
}

.demo-task-type i {
  font-size: 0.85rem;
}

.demo-task-type i.type-feature {
  color: #3b82f6;
}
.demo-task-type i.type-bug {
  color: #ef4444;
}
.demo-task-type i.type-design {
  color: #ec4899;
}
.demo-task-type i.type-done {
  color: #10b981;
}

.demo-task-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary, #111827);
  margin-bottom: 6px;
  line-height: 1.3;
}

.demo-task-desc {
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
  margin-bottom: 10px;
  line-height: 1.4;
}

.demo-task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.demo-task-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted, #9ca3af);
}

.demo-task-due {
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-task-due.soon {
  color: #f59e0b;
}

.demo-task-assignee {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary, #4379ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.demo-task-done {
  color: #10b981;
  font-size: 0.75rem;
}

.demo-milestone-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  background: rgba(67, 121, 255, 0.1);
  color: var(--color-primary, #4379ff);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */
@media (max-width: 768px) {
  .demo-viewport {
    height: 60vh;
    min-height: 400px;
    max-width: 98%;
  }

  .demo-action-buttons {
    width: 100%;
    justify-content: center;
  }

  #demo-only.glass-btn {
    padding: 10px 14px;
    background: var(--bg-surface, rgba(255, 255, 255, 0.2)) !important;
  }

  #demo-only.glass-btn.primary {
    padding: 10px 14px;
    background: var(--color-primary, rgba(67, 121, 255, 0.2)) !important;
  }

  .demo-sidebar {
    display: none;
  }

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

  .demo-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .demo-project-content {
    grid-template-columns: 1fr;
  }

  .demo-kanban-board {
    flex-direction: column;
  }

  .demo-kanban-column {
    flex: none;
    width: 100%;
  }
}

/* ============================================================================
   ANIMATION STATES
   ============================================================================ */
.demo-project-item.click-animation,
.demo-action-link.click-animation {
  animation: itemClick 0.3s ease;
}

@keyframes itemClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.97);
    background: var(--bg-active);
  }
  100% {
    transform: scale(1);
  }
}

/* Screen transition indicator */
.demo-transition-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 30px;
  font-size: 0.9rem;
  opacity: 0;
  z-index: 200;
  pointer-events: none;
}

.demo-transition-indicator.show {
  animation: showIndicator 1s ease forwards;
}

@keyframes showIndicator {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* Demo Action Buttons Container */
.demo-action-buttons {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demo-action-buttons.visible {
  opacity: 1;
  display: flex;
}

.demo-replay-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-surface, #fff);
  color: var(--text-primary, #111827);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .demo-replay-btn {
  background: #1d2a36;
  color: #fff;
  border-color: #2f3336;
}

.demo-replay-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.demo-start-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--color-primary, #4379ff);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(67, 121, 255, 0.4);
}

.demo-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(67, 121, 255, 0.5);
  color: var(--color-white, #fff);
}

/* ============================================================================
   SECTION CONTAINER
   ============================================================================ */
.demo-dashboard-section {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;

  /* Grid pattern background - Light theme */
  background-color: rgb(240 241 245);
  background-image:
    linear-gradient(rgb(210 213 219) 1px, transparent 1px),
    linear-gradient(to right, rgb(210 213 219) 1px, rgb(240 241 245) 1px);
  background-size: 20px 20px;
}

[data-theme="dark"] .demo-dashboard-section {
  background-color: #0f1419;
  background-image:
    linear-gradient(rgba(47, 51, 54, 0.5) 1px, transparent 1px),
    linear-gradient(to right, rgba(47, 51, 54, 0.5) 1px, #0f1419 1px);
  background-size: 20px 20px;
}

[data-theme="creamy"] .demo-dashboard-section {
  background-color: #faf8f5;
  background-image:
    linear-gradient(rgba(216, 208, 196, 0.6) 1px, transparent 1px),
    linear-gradient(to right, rgba(216, 208, 196, 0.6) 1px, #faf8f5 1px);
  background-size: 20px 20px;
}

.demo-column-title i {
  color: var(--text-muted, #9ca3af);
}

.demo-task-assignee {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--bg-card, #fff);
}

.demo-task-assignee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlapping avatars group */
.demo-task-assignees {
  display: flex;
  flex-direction: row-reverse;
}

.demo-task-assignees .demo-task-assignee {
  margin-left: -10px;
}

.demo-task-assignees .demo-task-assignee:last-child {
  margin-left: 0;
}

.demo-task-due,
.demo-task-type i {
  color: var(--text-muted, #9ca3af) !important;
}
