/* 
   Infinix OTT Platform Deployment Documentation Stylesheet
   Design: Modern Premium Dark/Light Theme with Glassmorphism and Micro-animations
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Dark Mode Default */
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(139, 92, 246, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Gradients */
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --brand-gradient: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  --brand-gradient-hover: linear-gradient(135deg, #a78bfa, #f472b6);
  --blue-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
  
  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #06b6d4;
  
  /* Syntax Highlighting */
  --code-bg: #0b0f19;
  --code-keyword: #ff79c6;
  --code-string: #f1fa8c;
  --code-comment: #6272a4;
  --code-function: #50fa7b;
  --code-variable: #bd93f9;
  --code-number: #ffb86c;
  
  /* Typography */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Sizes and Radius */
  --sidebar-width: 320px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --scrollbar-track: #080c14;
  --scrollbar-thumb: #1e293b;
  --scrollbar-thumb-hover: #334155;
}

/* Light Mode Variables overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(139, 92, 246, 0.4);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(148, 163, 184, 0.15);
  --shadow-lg: 0 16px 48px rgba(148, 163, 184, 0.2);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
  
  --code-bg: #1e293b;
  
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-thumb-hover: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-pink);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--bg-tertiary);
  color: var(--accent-pink);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* Page Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Progress Bar at the top of the screen */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 2000;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--brand-gradient);
  box-shadow: 0 0 10px var(--accent-purple);
  transition: width var(--transition-normal) ease;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform var(--transition-normal), background-color var(--transition-normal), border-right var(--transition-normal);
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
}

.logo-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Configurator Panel in Sidebar */
.configurator-panel {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(139, 92, 246, 0.03);
}

.configurator-panel h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.configurator-panel h3 svg {
  color: var(--accent-purple);
}

.config-group {
  margin-bottom: 0.8rem;
}

.config-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.config-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.config-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Navigation Links */
.sidebar-nav {
  padding: 1.5rem 1rem;
  flex: 1;
}

.nav-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 1.5rem 0.5rem 0.5rem 0.5rem;
  font-weight: 700;
}

.nav-section-title:first-child {
  margin-top: 0;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

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

.nav-link:hover svg {
  opacity: 1;
}

.nav-link.active {
  background: var(--brand-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

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

/* Sidebar Footer */
.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-primary);
  border-color: var(--accent-purple);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.sun-icon { display: none; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-normal);
}

/* Header Styling */
.content-header {
  height: var(--header-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background-color var(--transition-normal), border-bottom var(--transition-normal);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.search-box {
  position: relative;
  width: 320px;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem 0.6rem 2.8rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.header-status .pulse {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tracker-btn {
  background: var(--brand-gradient);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tracker-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* Documentation Body Scroll Area */
.doc-scroll-area {
  padding: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.doc-section {
  margin-bottom: 4.5rem;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.doc-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.doc-section h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
}

.doc-section h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.doc-section h2 svg {
  color: var(--accent-purple);
  width: 24px;
  height: 24px;
}

.doc-section h3 {
  font-size: 1.3rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.doc-section p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

/* Architecture Cards Grid */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.architecture-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.architecture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.architecture-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.architecture-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.architecture-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  display: inline-block;
  margin-top: 1rem;
}

.card-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.card-badge.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

/* Callouts / Alerts */
.callout {
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-purple);
  background-color: var(--bg-secondary);
  display: flex;
  gap: 1rem;
}

.callout-icon {
  flex-shrink: 0;
  color: var(--accent-purple);
}

.callout-content h4 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.callout-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.callout.tip {
  border-left-color: var(--color-success);
  background-color: rgba(16, 185, 129, 0.02);
}

.callout.tip .callout-icon {
  color: var(--color-success);
}

.callout.warning {
  border-left-color: var(--color-warning);
  background-color: rgba(245, 158, 11, 0.02);
}

.callout.warning .callout-icon {
  color: var(--color-warning);
}

.callout.danger {
  border-left-color: var(--color-danger);
  background-color: rgba(239, 68, 68, 0.02);
}

.callout.danger .callout-icon {
  color: var(--color-danger);
}

/* Interactive VPS Checklist Container */
.checklist-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.checklist-header h3 {
  margin: 0;
}

.checklist-percentage {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.checklist-item:hover {
  background-color: var(--bg-tertiary);
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
  margin-top: 0.2rem;
  background: var(--bg-primary);
  transition: all var(--transition-fast);
}

.checklist-item input[type="checkbox"]:checked {
  background: var(--brand-gradient);
  border-color: transparent;
}

.checklist-item input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.checklist-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.checklist-item input[type="checkbox"]:checked ~ .checklist-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Command Block & Syntax Highlighting */
.command-block {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.command-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.copy-btn:hover {
  background: var(--accent-purple);
  color: white;
  border-color: transparent;
}

.copy-btn.copied {
  background: var(--color-success);
  color: white;
  border-color: transparent;
}

.command-body {
  background-color: var(--code-bg);
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  position: relative;
}

.command-body pre {
  margin: 0;
}

.command-body code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e2e8f0;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}

/* Nginx Config Block Line Highlighting */
.nginx-keyword { color: var(--code-keyword); font-weight: 600; }
.nginx-variable { color: var(--code-variable); }
.nginx-number { color: var(--code-number); }
.nginx-comment { color: var(--code-comment); font-style: italic; }
.nginx-string { color: var(--code-string); }

/* Steps Navigation inside Sections */
.step-list {
  list-style: none;
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.step-list::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.9rem;
  width: 2px;
  background-color: var(--border-color);
}

.step-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.step-number {
  position: absolute;
  left: -2.5rem;
  top: 0.1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 2;
  transition: all var(--transition-fast);
}

.step-item.completed .step-number {
  background: var(--brand-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Specifications Table */
.spec-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--bg-secondary);
}

.spec-table th, .spec-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.spec-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-table td {
  font-size: 0.95rem;
}

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

.spec-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Expandable FAQ / Accordions */
.faq-container {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-focus);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-trigger svg {
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-trigger svg {
  transform: rotate(180deg);
  color: var(--accent-purple);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease;
}

.faq-content-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-content-inner {
  border-top-color: var(--border-color);
}

/* Footer Section */
.doc-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.doc-footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Responsive Layout */
@media (max-width: 1200px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .content-header {
    padding: 0 1.5rem;
  }
  
  .doc-scroll-area {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .search-box {
    display: none;
  }
  
  .header-actions {
    gap: 0.8rem;
  }
  
  .doc-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }
  
  .doc-footer-links {
    justify-content: center;
  }
}
