/* Simple TDS Documentation Styles */
/* Matched with Landing Page Design */

:root {
  /* Light mode colors - matching MUI theme */
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-sidebar: #1a237e;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --bg-code: #f8f9fa;

  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-sidebar: #ecf0f1;
  --text-muted: #999;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: #e0e0e0;

  /* MUI-matching colors */
  --accent-primary: #1976d2;
  --accent-primary-dark: #1565c0;
  --accent-primary-light: #42a5f5;
  --accent-success: #4caf50;
  --accent-success-dark: #388e3c;
  --accent-warning: #ff9800;
  --accent-danger: #f44336;
  --accent-info: #2196f3;
  --accent-secondary: #9c27b0;

  /* Gradient backgrounds */
  --gradient-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --gradient-hero: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  --gradient-cta: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  --gradient-quick-start: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Enhanced shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 12px 24px rgba(25, 118, 210, 0.15);

  --sidebar-width: 280px;
  --header-height: 64px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Dark mode colors */
.dark-mode {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-sidebar: #1a1a2e;
  --bg-header: #1e1e1e;
  --bg-card: #2c2c2c;
  --bg-code: #363636;

  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-sidebar: #ecf0f1;
  --text-muted: #888;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);

  --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--gradient-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
}

/* Animated background pattern like landing */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 50px,
      rgba(33, 150, 243, 0.03) 50px,
      rgba(33, 150, 243, 0.03) 100px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 50px,
      rgba(76, 175, 80, 0.03) 50px,
      rgba(76, 175, 80, 0.03) 100px
    );
  animation: drift 60s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 50px) rotate(360deg); }
}

.dark-mode body::before {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 50px,
      rgba(33, 150, 243, 0.02) 50px,
      rgba(33, 150, 243, 0.02) 100px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 50px,
      rgba(76, 175, 80, 0.02) 50px,
      rgba(76, 175, 80, 0.02) 100px
    );
}

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

/* Header - Material Design style */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-header);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1100;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

.dark-mode .header {
  background-color: rgba(30, 30, 30, 0.95);
}

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
  text-decoration: none;
}

.logo span {
  color: var(--text-primary);
  font-weight: 400;
}

/* Sidebar toggle button - MUI style */
.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
  width: 40px;
  height: 40px;
}

.sidebar-toggle:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.dark-mode .sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Theme toggle - MUI button style */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: var(--accent-primary);
}

.dark-mode .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Language switcher - MUI style */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: var(--accent-primary);
}

.dark-mode .lang-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 1200;
  display: none;
  overflow: hidden;
}

.lang-dropdown.open {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color var(--transition-fast);
  font-size: 0.875rem;
}

.lang-option:hover {
  background-color: rgba(25, 118, 210, 0.08);
  text-decoration: none;
}

.lang-option.active {
  background-color: var(--accent-primary);
  color: white;
}

.lang-flag {
  font-size: 1.25rem;
}

/* Sidebar - Material Design style */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--gradient-hero);
  color: var(--text-sidebar);
  overflow-y: auto;
  transition: transform var(--transition-normal);
  z-index: 1000;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.dark-mode .sidebar {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.sidebar.closed {
  transform: translateX(-100%);
}

.sidebar-nav {
  padding: 16px 0;
}

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

.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all var(--transition-fast);
  gap: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.sidebar-nav li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav li.active a {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-left-color: white;
}

.sidebar-nav li a .icon {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

.nav-section-title {
  padding: 20px 24px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.nav-divider {
  height: 1px;
  margin: 16px 24px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main content */
.main-content {
  margin-top: var(--header-height);
  padding: 40px;
  flex: 1;
  min-height: calc(100vh - var(--header-height));
  transition: margin-left var(--transition-normal);
  max-width: 900px;
  margin-left: calc(var(--sidebar-width) + 40px);
  margin-right: auto;
}

/* Center content when sidebar is open on wide screens */
@media (min-width: 1400px) {
  .main-content {
    margin-left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width) - 900px) / 2);
  }
}

.sidebar-closed .main-content {
  margin-left: auto;
  margin-right: auto;
}

/* Typography - MUI style */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-cta);
  border-radius: 2px;
}

h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  color: var(--text-primary);
}

h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  color: var(--accent-primary);
}

h4 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

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

a:hover {
  color: var(--accent-primary-dark);
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Code - Enhanced styling */
code {
  font-family: 'Fira Code', source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  background-color: var(--bg-code);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.875em;
  color: var(--accent-danger);
  border: 1px solid var(--border-color);
}

pre {
  background-color: var(--bg-code);
  padding: 20px 24px;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
  border: none;
}

/* Tables - MUI DataGrid style */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--gradient-hero);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

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

tr:hover td {
  background-color: rgba(25, 118, 210, 0.04);
}

.dark-mode tr:hover td {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Cards - MUI Paper style */
.card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--accent-primary);
}

/* Alerts - MUI Alert style */
.alert {
  padding: 16px 24px;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert::before {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-info {
  background-color: rgba(33, 150, 243, 0.12);
  color: #0d47a1;
}

.alert-info::before {
  content: 'ℹ️';
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.12);
  color: #1b5e20;
}

.alert-success::before {
  content: '✅';
}

.alert-warning {
  background-color: rgba(255, 152, 0, 0.12);
  color: #e65100;
}

.alert-warning::before {
  content: '⚠️';
}

.alert-danger {
  background-color: rgba(244, 67, 54, 0.12);
  color: #b71c1c;
}

.alert-danger::before {
  content: '❌';
}

.dark-mode .alert-info {
  background-color: rgba(33, 150, 243, 0.15);
  color: #90caf9;
}

.dark-mode .alert-success {
  background-color: rgba(76, 175, 80, 0.15);
  color: #a5d6a7;
}

.dark-mode .alert-warning {
  background-color: rgba(255, 152, 0, 0.15);
  color: #ffcc80;
}

.dark-mode .alert-danger {
  background-color: rgba(244, 67, 54, 0.15);
  color: #ef9a9a;
}

/* Buttons - MUI Button style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 4px 14px rgba(25, 118, 210, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.5);
  text-decoration: none;
  color: white;
}

.btn-outlined {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-outlined:hover {
  background-color: rgba(25, 118, 210, 0.08);
  text-decoration: none;
}

/* Badges - MUI Chip style */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--accent-primary);
}

.badge-success {
  background-color: rgba(76, 175, 80, 0.12);
  color: var(--accent-success);
}

.badge-warning {
  background-color: rgba(255, 152, 0, 0.12);
  color: var(--accent-warning);
}

/* TOC - Enhanced */
.toc {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.toc h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc li {
  margin-bottom: 0.5rem;
  padding-left: 16px;
  position: relative;
}

.toc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.toc a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.toc a:hover {
  color: var(--accent-primary);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 12px 16px;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb-separator {
  color: var(--text-muted);
}

/* Quick Start box - Gradient style like landing */
.quick-start-box {
  background: var(--gradient-quick-start);
  color: white;
  padding: 32px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.quick-start-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.quick-start-box h3 {
  color: white;
  margin-top: 0;
  font-size: 1.5rem;
}

.quick-start-box p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  font-size: 1.05rem;
}

.quick-start-box a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}

.quick-start-box a:hover {
  opacity: 0.9;
}

/* Scroll to top - MUI FAB style */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1000;
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(25, 118, 210, 0.5);
}

.scroll-to-top.visible {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  .main-content {
    margin-left: auto;
    margin-right: auto;
    padding: 24px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header {
    padding: 0 16px;
  }

  .header-right {
    gap: 8px;
  }

  .theme-toggle,
  .lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 12px 16px;
  }

  .quick-start-box {
    padding: 24px;
  }

  .card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .header-left {
    gap: 8px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .theme-toggle span:not(.icon) {
    display: none;
  }

  .lang-btn span:not(.lang-flag) {
    display: none;
  }
}

/* Print styles */
@media print {
  .header, .sidebar, .scroll-to-top, .theme-toggle, .lang-switcher {
    display: none !important;
  }

  .main-content {
    margin: 0;
    padding: 20px;
    max-width: 100%;
  }

  body::before {
    display: none;
  }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 900;
  display: none;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Highlight */
.highlight {
  background: linear-gradient(120deg, rgba(255, 235, 59, 0.3) 0%, rgba(255, 235, 59, 0.1) 100%);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Steps - Enhanced */
.steps {
  counter-reset: step-counter;
  margin-bottom: 2rem;
}

.step {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2rem;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient-cta);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(25, 118, 210, 0.4);
}

/* Feature list - Card grid like landing */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 2rem;
}

.feature-item {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  box-shadow: var(--shadow-md);
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
  text-decoration: none;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(25, 118, 210, 0.05) 100%);
  border-radius: 16px;
}

.feature-title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer - Enhanced */
.doc-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.doc-footer p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.doc-footer a {
  color: var(--accent-primary);
}

/* Selection */
::selection {
  background-color: rgba(25, 118, 210, 0.2);
  color: var(--text-primary);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

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

.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
