/* Superwell - Compact Professional Dashboard */

:root {
  --primary: #0369a1;
  --primary-hover: #0284c7;
  --primary-light: #bae6fd;
  --secondary: #059669;
  --secondary-hover: #10b981;
  --accent: #7c3aed;
  --text: #0f172a;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --sidebar-width: 60px;
  --sidebar-expanded: 180px;
  --topbar-height: 46px;
  --terminal-height: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Typography - Compact */
h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2; }
h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
p { margin-bottom: 0.75rem; color: var(--text-light); font-size: 0.875rem; }

/* Dashboard Layout */
.layout-dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Bar - Compact */
.top-bar {
  height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  gap: 2rem;
  transition: all 0.3s ease;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  transition: all 0.3s ease;
}

.logo-title:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(226, 232, 240, 0.6);
  letter-spacing: 0.02em;
}

/* Top Navigation Bar - Centered */
.top-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  flex: 1;
  padding: 0 2rem;
  position: relative;
}

/* Subtle side borders for visual separation */
.top-nav::before,
.top-nav::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(203, 213, 225, 0.5), transparent);
}

.top-nav::before {
  left: 0;
}

.top-nav::after {
  right: 0;
}

.top-nav-link {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.01em;
  overflow: hidden;
}

/* Elegant hover effect with gradient background */
.top-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(3, 105, 161, 0.08), transparent);
  transition: left 0.5s ease;
}

.top-nav-link:hover::before {
  left: 100%;
}

.top-nav-link:hover {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.05) 0%, rgba(3, 105, 161, 0.02) 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.12);
}

/* Active state - bold with animated underline */
.top-nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.08) 0%, rgba(3, 105, 161, 0.04) 100%);
}

.top-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
  border-radius: 2px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    width: 0%;
    opacity: 0;
  }
  to {
    width: 60%;
    opacity: 1;
  }
}

/* Subtle glow on active link */
.top-nav-link.active:hover {
  box-shadow: 0 0 16px rgba(3, 105, 161, 0.2), 0 2px 8px rgba(3, 105, 161, 0.15);
  transform: translateY(-1px) scale(1.02);
}

.top-bar-right {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
  border-color: var(--primary-light);
}

/* Paper Link Buttons with Labels */
.paper-link {
  position: relative;
  flex-direction: column;
  width: auto;
  padding: 0.375rem 0.625rem;
  gap: 0.125rem;
}

.paper-link .paper-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  opacity: 0.9;
}

.paper-link i {
  font-size: 0.875rem;
}

.paper-link:hover .paper-label {
  opacity: 1;
}

/* App Container */
.app-container {
  display: flex;
  margin-top: var(--topbar-height);
  min-height: calc(100vh - var(--topbar-height));
}

/* Sidebar - Collapsible */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg);
  border-right: 1px solid var(--border);
  position: fixed;
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  overflow-x: hidden;
  transition: var(--transition);
  z-index: 50;
}

.sidebar:not(.collapsed) {
  width: var(--sidebar-expanded);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar .nav-link i {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
}

.sidebar.collapsed .nav-link span {
  opacity: 0;
  width: 0;
}

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

.sidebar .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 1.5rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.sidebar:not(.collapsed) ~ .main-content {
  margin-left: var(--sidebar-expanded);
}

/* Section Management */
.section-content {
  display: none;
}

.section-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

/* Compact Header */
.compact-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.compact-header h1 {
  color: white;
  margin-bottom: 0.25rem;
}

.version {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  margin: 0;
}

/* Info Cards - Compact Grid */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.info-card i {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.info-card h3 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.info-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Metrics Bar */
.metrics-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.metric {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid var(--border);
}

.metric:last-child {
  border-right: none;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Control Panel */
.control-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.control-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Form Elements */
.select-input,
.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}

.select-input:focus,
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.select-input-sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
}

/* Buttons */
.btn-primary,
.btn-sm {
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-sm:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* Visualization Container */
.viz-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  min-height: 500px;
}

.viz-main {
  width: 100%;
  height: 500px;
  position: relative;
}

.viz-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
}

.viz-placeholder i {
  color: var(--border-dark);
  margin-bottom: 1rem;
}

/* Data Explorer - Tables */
.data-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.table-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.table-controls .search-input {
  flex: 1;
  max-width: 300px;
}

.record-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
}

.record-count span {
  font-weight: 700;
  color: var(--primary);
}

.table-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: auto;
  max-height: 600px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.data-table thead {
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  z-index: 10;
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.data-table tbody tr:hover {
  background: var(--bg-light);
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-muted);
}

.loading-state i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.stat-card h4 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-details {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Visualization Layout */
.viz-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

.viz-sidebar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  height: fit-content;
}

.viz-sidebar h3 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.viz-config-group {
  margin-bottom: 1rem;
}

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

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500 !important;
  cursor: pointer;
  margin-bottom: 0.5rem !important;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.viz-main-area {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  min-height: 600px;
}

.custom-viz {
  width: 100%;
  height: 560px;
}

/* Documentation Cards */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: var(--transition);
}

.doc-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.doc-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.doc-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.doc-list {
  list-style: none;
  padding-left: 0;
}

.doc-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-light);
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list strong {
  color: var(--text);
  font-weight: 600;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.doc-link:hover {
  color: var(--primary-hover);
}

/* Code Blocks */
pre {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  font-size: 0.8125rem;
}

code {
  background: var(--bg-dark);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-family: 'Monaco', 'Menlo', monospace;
}

pre code {
  background: none;
  padding: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .viz-layout {
    grid-template-columns: 1fr;
  }
  
  .viz-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .control-panel {
    grid-template-columns: 1fr;
  }
  
  .metrics-bar {
    flex-wrap: wrap;
  }
  
  .metric {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .info-cards {
    grid-template-columns: 1fr 1fr;
  }
  
  .doc-grid {
    grid-template-columns: 1fr;
  }
  
  .top-bar {
    padding: 0 1rem;
  }
  
  .subtitle {
    display: none;
  }
}

/* Regular Pages */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-item {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--primary);
}

/* Sidebar Toggle Simple */
.sidebar-toggle-simple {
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(150, 150, 150, 0.5);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-size: 1.25rem;
  font-weight: bold;
}

.sidebar-toggle-simple:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.sidebar.collapsed .sidebar-toggle-simple span {
  transform: rotate(0deg);
  display: inline-block;
}

.sidebar:not(.collapsed) .sidebar-toggle-simple span {
  transform: rotate(180deg);
  display: inline-block;
}

/* Minimalist Terminal Bar */
.terminal-minimal {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.4rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 85;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  max-width: 600px;
  transition: var(--transition);
}

.terminal-minimal:hover {
  background: rgba(52, 51, 51, 0.95);
  box-shadow: 0 4px 16px rgba(188, 77, 77, 0.35);
  transform: translateX(-50%) translateY(-2px);
}

.terminal-label {
  font-size: 0.75rem;
  color: #999;
  font-weight: 600;
    background: linear-gradient(90deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  font-weight: 600;
  white-space: nowrap;
}

.terminal-prompt {
  color: #27c93f;
  font-weight: bold;
  font-family: 'Monaco', 'Menlo', monospace;
}

.terminal-cmd {
  color: #e0e0e0;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.78rem;
  flex: 1;
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  color: #999;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.terminal-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--primary);
}

.terminal-minimal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

/* Dashboard Footer */
.dashboard-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  margin-top: auto;
  margin-left: var(--sidebar-width);
  margin-bottom: 0;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.sidebar:not(.collapsed) ~ * .dashboard-footer {
  margin-left: var(--sidebar-expanded);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-left p {
  margin: 0;
}

.footer-center {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-center a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-center a:hover {
  color: var(--primary);
}

.footer-sep {
  color: var(--border-dark);
}

.footer-right {
  display: flex;
  gap: 1rem;
}

.footer-right a {
  color: var(--text-light);
  font-size: 1.125rem;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--primary);
}

/* Concept Image with Hover Overlay */
.concept-image-wrapper {
  margin-bottom: 2rem;
}

.concept-image {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.concept-image:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.concept-image img {
  max-width: 100%;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 0.375rem;
  display: block;
  transition: var(--transition);
}

.concept-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, 
    rgba(6, 182, 212, 0.95) 0%, 
    rgba(14, 165, 233, 0.95) 50%,
    rgba(14, 165, 233, 0.05) 100%);
  color: white;
  padding: 1rem 2.5rem 2.5rem;
  transform: translateY(calc(100% - 60px));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.concept-overlay::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(6, 182, 212, 0.2) 0%, transparent 100%);
  pointer-events: none;
}

.concept-overlay:hover {
  transform: translateY(0);
}

.overlay-content h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.overlay-content p {
  color: rgba(255, 255, 255, 0.98);
  font-size: 0.895rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
  margin: 0;
}

/* Code Block (styled div) */
.code-block {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 0.375rem;
  padding: 1rem;
  margin: 1rem 0;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.8125rem;
}

.code-line {
  color: #e0e0e0;
  padding: 0.25rem 0;
  line-height: 1.6;
}

/* Parameter List */
.param-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.param-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 0.375rem;
  border-left: 3px solid var(--primary);
}

.param-item strong {
  color: var(--text);
  font-size: 0.875rem;
}

.param-item span {
  color: var(--text-light);
  font-size: 0.8125rem;
}

/* Data Format List */
.data-format-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.format-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--bg-light);
  border-radius: 0.25rem;
}

.format-item code {
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: var(--primary);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.format-item span {
  color: var(--text-light);
  font-size: 0.8125rem;
}

/* Citation Card */
.citation-card {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
}

.citation-text {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0.25rem;
}

.citation-text p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
}

.citation-text p:last-child {
  margin-bottom: 0;
}

/* Call-to-Action Section */
.cta-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cta-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.cta-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cta-card:hover::before {
  transform: scaleY(1);
}

.cta-card.primary-cta {
  border-color: var(--primary-light);
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-light) 100%);
}

.cta-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.cta-icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.cta-card:hover .cta-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
}

.cta-card:hover .cta-icon i {
  color: white;
}

.cta-content {
  flex: 1;
}

.cta-content h3 {
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 1.125rem;
}

.cta-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.cta-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: var(--transition);
}

.cta-card:hover .cta-arrow {
  color: var(--primary);
  transform: translateX(5px);
}

/* Mobile Adjustments for New Elements */
@media (max-width: 768px) {
  .terminal-minimal {
    bottom: 60px;
    left: 1rem;
    right: 1rem;
    transform: none;
    max-width: none;
    padding: 0.625rem 1rem;
    flex-wrap: wrap;
  }
  
  .terminal-minimal:hover {
    transform: translateY(-2px);
  }
  
  .terminal-cmd {
    font-size: 0.75rem;
  }
  
  .dashboard-footer {
    margin-left: 0;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-center {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .concept-image {
    padding: 1rem;
  }
  
  .concept-image img {
    max-height: 300px;
  }
  
  .cta-section {
    grid-template-columns: 1fr;
  }
  
  .cta-card {
    padding: 1.5rem;
  }
}