/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-primary: #080b11;
  --bg-secondary: #0d121c;
  --bg-tertiary: #131a29;
  --border-color: #202b3f;
  --border-hover: #354766;
  
  --text-primary: #f0f3f8;
  --text-secondary: #8e9db5;
  --text-muted: #566885;
  
  /* Accent Colors */
  --accent-tech: #1188ff;
  --accent-tech-glow: rgba(17, 136, 255, 0.4);
  --accent-gaming: #ffffff;
  --accent-gaming-glow: rgba(255, 255, 255, 0.4);
  --accent-networking: #00f0ff;
  --accent-networking-glow: rgba(0, 240, 255, 0.4);
  --accent-meta: #8ec5fc;
  
  --gradient-brand: linear-gradient(135deg, var(--accent-tech) 0%, var(--accent-gaming) 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  
  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Rajdhani', sans-serif;
  
  /* Layout */
  --header-height: 70px;
  --sidebar-width: 320px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --border-radius: 12px;
  --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Glowing Orbs */
.glow-orb {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}
.orb-1 {
  background: var(--accent-tech);
  top: -100px;
  right: -100px;
}
.orb-2 {
  background: var(--accent-gaming);
  bottom: -150px;
  left: -150px;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  color: var(--accent-tech);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-tech-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-primary {
  background: var(--gradient-brand);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(17, 136, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 136, 255, 0.4);
}
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--border-color);
  border-color: var(--text-secondary);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}
.icon-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
  height: var(--header-height);
  background: rgba(13, 18, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

#sidebar-toggle {
  display: none; /* Desktop hidden, shown on mobile */
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo-img {
  height: 38px;
  display: block;
  filter: drop-shadow(0 0 4px rgba(17, 136, 255, 0.2));
  transition: var(--transition-smooth);
}
.logo:hover .logo-img {
  filter: drop-shadow(0 0 12px rgba(17, 136, 255, 0.5));
  transform: scale(1.03);
}

/* Search Box */
.header-center {
  flex: 0 1 480px;
}
.search-wrapper {
  position: relative;
  width: 100%;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}
#search-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 40px 10px 38px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}
#search-input:focus {
  border-color: var(--accent-tech);
  box-shadow: 0 0 10px var(--accent-tech-glow);
  background: var(--bg-secondary);
}
.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.search-clear-btn:hover {
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-badge {
  background: rgba(17, 136, 255, 0.08);
  border: 1px solid rgba(17, 136, 255, 0.2);
  color: var(--accent-tech);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-tech);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-tech);
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ==========================================================================
   LAYOUT BODY & SIDEBAR TREE
   ========================================================================== */
.layout-body {
  display: flex;
  flex: 1;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  transition: var(--transition-smooth);
}

.sidebar-header {
  padding: 20px 24px 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px 20px;
}

/* TREE CSS RULES */
.tree-list {
  list-style: none;
  padding-left: 0;
}

.tree-item {
  margin-bottom: 4px;
  position: relative;
}

/* Categories & Article links in tree */
.tree-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}
.tree-node:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.tree-node-label {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-node-label i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tree-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

/* Directory Nodes */
.tree-node.category-node {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: 8px;
}
.tree-node.category-node i {
  color: var(--accent-gaming);
}
.tree-node.category-node:hover i {
  color: var(--accent-tech);
}

/* Open states */
.tree-item.open > .tree-node > .tree-arrow {
  transform: rotate(90deg);
}

/* Sub lists */
.tree-sub-list {
  list-style: none;
  padding-left: 12px;
  margin-left: 10px;
  border-left: 1px dashed var(--border-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}
.tree-item.open > .tree-sub-list {
  max-height: 2000px; /* Big enough to container large trees */
  opacity: 1;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* Leaf articles node styling */
.tree-node.article-node {
  color: var(--text-secondary);
}
.tree-node.article-node i {
  color: var(--text-muted);
}
.tree-node.article-node.active {
  background: linear-gradient(90deg, rgba(17, 136, 255, 0.12) 0%, rgba(17, 136, 255, 0) 100%);
  border-left: 3px solid var(--accent-tech);
  color: var(--accent-tech);
  padding-left: 9px; /* Balance for the border border */
}
.tree-node.article-node.active i {
  color: var(--accent-tech);
}

/* Highlighted match search in sidebar */
.sidebar-search-highlight {
  background-color: rgba(17, 136, 255, 0.25);
  color: #fff;
  border-radius: 2px;
  padding: 0 2px;
}

.menu-loading {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
}

/* Footer / Static buttons in sidebar */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}
.sidebar-home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.sidebar-home-link:hover, .sidebar-home-link.active {
  color: #fff;
  border-color: var(--accent-gaming);
  background: linear-gradient(90deg, var(--bg-tertiary) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  background: var(--bg-primary);
  overflow: hidden;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.breadcrumb-separator {
  margin: 0 10px;
  color: var(--text-muted);
  font-size: 0.65rem;
}
.active-crumb {
  color: var(--text-primary);
}

/* Viewport containing pages */
.content-viewport {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  position: relative;
}

/* ==========================================================================
   DASHBOARD / HOME VIEW
   ========================================================================== */
.home-view {
  animation: fadeIn 0.4s ease-out forwards;
}

.welcome-hero {
  background: radial-gradient(circle at top right, rgba(17, 136, 255, 0.1), rgba(255, 255, 255, 0.03)), var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}
.welcome-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-brand);
}
.welcome-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.welcome-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  gap: 20px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 24px;
  min-width: 140px;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-tech);
}
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.section-title-wrapper {
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i {
  color: var(--accent-gaming);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.grid-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.grid-loading p {
  margin-top: 10px;
}

/* Article Cards */
.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-bounce);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3), 0 0 1px 1px rgba(17, 136, 255, 0.1);
}
.card-image-wrapper {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.article-card:hover .card-image-wrapper img {
  transform: scale(1.08);
}
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 11, 17, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-tech);
}
.article-card.gaming-card .card-tag {
  color: var(--accent-gaming);
}
.article-card.networking-card .card-tag {
  color: var(--accent-networking);
}
.article-card.meta-card .card-tag {
  color: var(--text-primary);
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.3;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-size: 0.8rem;
  color: var(--accent-tech);
  font-family: var(--font-display);
  font-weight: 600;
}
.article-card:hover .card-footer {
  color: #fff;
  text-shadow: 0 0 4px var(--accent-tech-glow);
}

/* ==========================================================================
   ARTICLE DETAIL VIEW
   ========================================================================== */
.article-view {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease-out forwards;
}

/* Custom Tag Styles in Article */
.article-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.category-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
}
.tag-tech {
  background: rgba(17, 136, 255, 0.08);
  border-color: rgba(17, 136, 255, 0.2);
  color: var(--accent-tech);
}
.tag-gaming {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-gaming);
}
.tag-networking {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--accent-networking);
}
.tag-meta {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-secondary);
}
.article-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-content-container h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  line-height: 1.15;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-hero-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
  box-shadow: var(--box-shadow);
}

.article-content-container h2 {
  font-size: 1.8rem;
  margin-top: 32px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.article-content-container p {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0.95;
}

/* Callout Box inside Articles */
.highlight-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-tech);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}
.highlight-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.highlight-box ul {
  padding-left: 20px;
}
.highlight-box li {
  margin-bottom: 8px;
}

/* Custom Table in Articles */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.specs-table th, .specs-table td {
  padding: 12px 16px;
  text-align: left;
}
.specs-table th {
  background: var(--bg-tertiary);
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 0.95rem;
  border-bottom: 2px solid var(--border-color);
}
.specs-table td {
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.specs-table tr:last-child td {
  border-bottom: none;
}
.specs-table tr:hover td {
  color: #fff;
  background: rgba(255,255,255,0.01);
}

/* Contact form custom styles */
.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}
.contact-card h3 {
  margin-bottom: 12px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.form-group input, .form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-gaming);
  box-shadow: 0 0 8px var(--accent-gaming-glow);
}

/* Article footer */
.article-nav-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   SKELETON LOADER
   ========================================================================== */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 4px;
}
.skeleton-line.short { width: 40%; }
.skeleton-line.long { height: 32px; width: 85%; }
.skeleton-hero {
  height: 380px;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}
.skeleton-body .skeleton-line {
  margin-bottom: 12px;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   ANIMATIONS & GENERIC CLASSES
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 280px;
  }
  .content-viewport {
    padding: 24px;
  }
  .welcome-hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* Toggle buttons visible on mobile */
  #sidebar-toggle {
    display: flex;
  }
  
  /* Sidebar Drawer styling for mobile slideout */
  .sidebar {
    position: fixed;
    left: calc(-1 * var(--sidebar-width));
    height: 100vh;
    top: 0;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-header {
    padding-top: 30px;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  /* Main content shifts to fill page */
  .main-content {
    height: calc(100vh - var(--header-height));
  }
  
  /* Adjust header layout */
  .header-center {
    display: none; /* Hide main search bar in center on mobile */
  }
  
  /* Adjust heroes and details */
  .welcome-hero {
    padding: 24px;
  }
  .welcome-hero h1 {
    font-size: 1.8rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  .article-content-container h1 {
    font-size: 2.2rem;
  }
  .article-hero-image {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.2rem;
  }
  .content-viewport {
    padding: 16px;
  }
  .welcome-hero h1 {
    font-size: 1.5rem;
  }
  .article-content-container h1 {
    font-size: 1.8rem;
  }
  .specs-table th, .specs-table td {
    padding: 8px;
    font-size: 0.8rem;
  }
  .theme-badge {
    display: none; /* Hide framework label on small screens */
  }
}

/* ==========================================================================
   TIKTOK EXPORTER MODAL & SLIDES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 9, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 92%;
  max-width: 1280px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 16px 24px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.modal-header h2 i {
  color: #ff0050; /* TikTok brand color */
  text-shadow: 0 0 10px rgba(255, 0, 80, 0.5);
}

.modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

@media (max-width: 900px) {
  .modal-body {
    flex-direction: column;
  }
  .modal-sidebar-controls {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
    padding: 16px !important;
  }
  .modal-content {
    height: 95vh;
  }
}

.modal-sidebar-controls {
  width: 320px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.controls-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.slide-theme-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-theme-selector label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.theme-options {
  display: flex;
  gap: 12px;
}

.theme-btn {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.theme-btn.active#theme-blue-btn {
  border-color: var(--accent-tech);
  color: #fff;
  background: rgba(17, 136, 255, 0.05);
  box-shadow: 0 0 10px rgba(17, 136, 255, 0.2);
}

.theme-btn.active#theme-white-btn {
  border-color: var(--accent-gaming);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.export-tips {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-top: auto;
}

.export-tips h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.export-tips ul {
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Slides Preview Container */
.slides-preview-container {
  flex: 1;
  background: var(--bg-primary);
  padding: 32px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  align-items: center;
  justify-content: flex-start;
  scroll-behavior: smooth;
}

/* Slide Card Structure */
.tiktok-slide {
  width: 360px;
  height: 640px;
  min-width: 360px;
  min-height: 640px;
  background: #080c14;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Themes classes injected dynamically */
.tiktok-slide.theme-blue {
  --slide-accent: var(--accent-tech);
  --slide-accent-glow: var(--accent-tech-glow);
  --slide-gradient: linear-gradient(135deg, #08121f 0%, #04060b 100%);
  --slide-border-glow: 0 0 20px rgba(17, 136, 255, 0.15);
}

.tiktok-slide.theme-white {
  --slide-accent: #ffffff;
  --slide-accent-glow: rgba(255, 255, 255, 0.3);
  --slide-gradient: linear-gradient(135deg, #181d24 0%, #05070a 100%);
  --slide-border-glow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.tiktok-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  pointer-events: none;
  z-index: 10;
}

/* Background Gradients */
.slide-bg-gradient {
  position: absolute;
  inset: 0;
  background: var(--slide-gradient);
  z-index: 1;
}

.slide-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 2;
  pointer-events: none;
}

/* Cover Slide specific */
.slide-hero-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.25) contrast(1.1);
  transform: scale(1.1);
  z-index: 1;
}

.slide-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(8, 12, 20, 0.4) 0%, 
    rgba(8, 12, 20, 0.8) 50%, 
    #080c14 100%
  );
  z-index: 2;
}

/* Slide Header & Footer branding */
.slide-header {
  position: relative;
  z-index: 5;
  padding: 24px 24px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slide-brand-img {
  height: 20px;
  display: block;
}

.slide-category-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.slide-category-badge.category-accent {
  background: rgba(17, 136, 255, 0.1);
  border-color: rgba(17, 136, 255, 0.3);
  color: var(--accent-tech);
}

.slide-category-badge.category-accent-gaming {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--accent-gaming);
}

.slide-content {
  position: relative;
  z-index: 5;
  padding: 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-footer {
  position: relative;
  z-index: 5;
  padding: 10px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.slide-footer-tagline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.slide-swipe-indicator {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--slide-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: slide-bounce 1s infinite alternate;
}

@keyframes slide-bounce {
  0% { transform: translateX(0); }
  100% { transform: translateX(4px); }
}

/* Slide Typography & Layout components */
.slide-title-wrapper {
  margin-bottom: 20px;
}

.slide-main-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}

.slide-accent-line {
  width: 60px;
  height: 4px;
  background: var(--slide-accent);
  box-shadow: 0 0 10px var(--slide-accent-glow);
  border-radius: 2px;
  margin-bottom: 12px;
}

.slide-intro-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e2e8f0;
  font-weight: 400;
}

/* Highlight / Bullet Slide components */
.slide-bullets-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--slide-accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-bullets-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-bullets-list li {
  display: flex;
  gap: 12px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.slide-bullet-icon {
  color: var(--slide-accent);
  font-size: 0.9rem;
  margin-top: 4px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px var(--slide-accent-glow));
}

.slide-bullet-text strong {
  color: #fff;
}

/* Highlight Box / Spec Table inside Slide */
.slide-highlight-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--slide-accent);
  box-shadow: var(--slide-border-glow);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.slide-highlight-card h4 {
  font-family: var(--font-display);
  color: var(--slide-accent);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.slide-highlight-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
}

/* Outro/CTA Slide */
.slide-outro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
}

.slide-outro-logo {
  height: 48px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(17, 136, 255, 0.3));
}

.slide-outro-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.3;
}

.slide-outro-cta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.slide-outro-cta-box i {
  font-size: 1.8rem;
  color: var(--slide-accent);
  filter: drop-shadow(0 0 8px var(--slide-accent-glow));
}

.slide-outro-cta-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.slide-outro-domain {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slide-accent);
  letter-spacing: 1px;
  text-shadow: 0 0 10px var(--slide-accent-glow);
}

/* ==========================================================================
   AUTH SYSTEM & DROP DOWN
   ========================================================================== */
.auth-container {
  position: relative;
  display: inline-block;
}

.auth-btn {
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 8px 16px;
}

.user-badge-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}
.user-badge-container:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-tech);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-display);
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* User Role Badges */
.role-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.role-badge-admin {
  background: rgba(17, 136, 255, 0.12);
  border: 1px solid rgba(17, 136, 255, 0.3);
  color: var(--accent-tech);
  box-shadow: 0 0 4px rgba(17, 136, 255, 0.1);
}

.role-badge-editor {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.role-badge-user {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

/* Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 180px;
  box-shadow: var(--box-shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 110;
  animation: fadeIn 0.2s ease;
}

.user-dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.dropdown-item-logout {
  border-top: 1px solid var(--border-color);
  color: #ff4a4a;
}
.dropdown-item-logout:hover {
  background: rgba(255, 74, 74, 0.05);
  color: #ff6b6b;
}

/* Auth Modal Content styling */
.auth-modal-content {
  max-width: 440px;
  height: auto;
  max-height: 90vh;
}

.auth-modal-body {
  padding: 24px !important;
}

.auth-form {
  border: none !important;
  padding: 0 !important;
  gap: 16px !important;
  width: 100%;
}

.btn-auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 20px;
}

.auth-error-msg {
  color: #ff4a4a;
  background: rgba(255, 74, 74, 0.08);
  border: 1px solid rgba(255, 74, 74, 0.2);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Quick Login helpers inside Auth Modal */
.quick-login-helpers {
  margin-top: 20px;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-login-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-login-buttons {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.btn-quick-login {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-quick-login:hover {
  background: var(--border-color);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ==========================================================================
   ARTICLE EDITOR VIEW & WYSIWYG
   ========================================================================== */
.editor-view {
  animation: fadeIn 0.4s ease;
  height: calc(100vh - var(--header-height) - 70px); /* Leave room for header/breadcrumbs */
  display: flex;
  flex-direction: column;
}

.editor-container {
  display: flex;
  gap: 24px;
  height: 100%;
  overflow: hidden;
}

.editor-pane {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.editor-compose-pane {
  flex: 1.1; /* Slightly wider compose area */
}

.editor-preview-pane {
  flex: 0.9;
  background: var(--bg-primary); /* Same base bg for accurate preview */
}

.editor-section-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.editor-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-section-header h2 i {
  color: var(--accent-tech);
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

@media (max-width: 1200px) {
  .editor-container {
    flex-direction: column;
    overflow-y: auto;
  }
  .editor-pane {
    height: auto;
    overflow: visible;
  }
  .editor-form {
    overflow: visible;
  }
}

.editor-form input[type="text"],
.editor-form select {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-smooth);
}

.editor-form input[type="text"]:focus,
.editor-form select:focus {
  border-color: var(--accent-tech);
  box-shadow: 0 0 8px var(--accent-tech-glow);
}

/* Toolbar styling */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 8px 12px;
}

.toolbar-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.toolbar-btn:hover {
  background: var(--border-color);
  color: #fff;
  border-color: var(--text-muted);
}

.toolbar-btn.active {
  background: var(--accent-tech);
  color: var(--bg-primary);
}

.toolbar-separator {
  width: 1px;
  height: 18px;
  background: var(--border-color);
  margin: 0 4px;
}

.text-accent-btn {
  width: auto;
  padding: 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  gap: 4px;
  border: 1px dashed var(--border-color);
}

.text-accent-btn:hover {
  border-color: var(--accent-tech);
  color: var(--accent-tech);
}

.img-upload-label {
  width: auto;
  padding: 0 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 32px;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.img-upload-label:hover {
  border-color: var(--accent-tech);
  color: var(--accent-tech);
}

/* Workspace styling */
.editor-workspace {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0 0 6px 6px;
  padding: 16px;
  min-height: 320px;
  max-height: 480px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  outline: none;
  overflow-y: auto;
  box-sizing: border-box;
}

.editor-workspace[contenteditable="true"]:empty:before {
  content: attr(placeholder);
  color: var(--text-muted);
  display: block;
}

/* Highlight box inserting outline */
.editor-workspace .highlight-box,
.editor-workspace .specs-table {
  position: relative;
  outline: 1px dashed rgba(255, 255, 255, 0.15);
  margin-top: 16px;
  margin-bottom: 16px;
}

.editor-workspace .highlight-box::before {
  content: 'BOX EVIDENZIATO';
  position: absolute;
  top: -8px;
  left: 10px;
  background: var(--accent-tech);
  color: var(--bg-primary);
  font-size: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.editor-workspace .specs-table::before {
  content: 'TABELLA SPECIFICHE';
  position: absolute;
  top: -8px;
  left: 10px;
  background: var(--accent-gaming);
  color: var(--bg-primary);
  font-size: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* Preview Scrollbar and inner page styling */
.preview-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  border: 1px solid transparent; /* Align visually */
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.editor-view-alert {
  margin-bottom: 16px;
}

