/* ======================
   SIDEBAR STYLES
   ====================== */

/* Hamburger Menu Button */
.sidebar-toggle {
  position: fixed;
  top: 1rem;
  right: 0;
  z-index: 1001;
  background: #1e293b;
  border: none;
  border-radius: 8px 0 0 8px;
  width: 60px;
  height: 50px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background: #334155;
  box-shadow: -2px 6px 20px rgba(0, 0, 0, 0.25);
}

.hamburger-line {
  width: 22px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sidebar-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.sidebar-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.sidebar-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Move toggle button when sidebar is open */
.sidebar-toggle.active {
  right: 280px;
  border-radius: 0 8px 8px 0;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: white;
  z-index: 1000;
  transition: right 0.3s ease, opacity 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.sidebar.open {
  right: 0;
}

.sidebar.closing {
  opacity: 0;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border-left-color: #3b82f6;
}

.sidebar-nav a.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-left-color: #3b82f6;
}

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

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
}

.nav-section-title {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content Adjustments */
.main-content {
  transition: margin-right 0.3s ease;
  min-height: 100vh;
}

.navbar.sidebar-open {
  margin-right: 280px;
}

/* Page Content Styling */
.page-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* ======================
   DATASET HELPER STYLES
   ====================== */

.dataset-helper-content {
  margin-top: 2rem;
}

.loading-state {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: #64748b;
}

.table-controls {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.helper-table {
  width: 100%;
  border-collapse: collapse;
}

.helper-table th {
  background: #f8fafc;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e2e8f0;
}

.helper-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.helper-table tr:hover {
  background: #f8fafc;
}

.pathology-tag {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}

.dataset-cell strong {
  color: #1e293b;
  font-size: 1.1rem;
}

.reason-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reason-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.reason-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.caution-text {
  font-size: 0.9rem;
  color: #dc2626;
  background: #fef2f2;
  padding: 0.5rem;
  border-radius: 4px;
  display: block;
}

.action-button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

.action-button:hover {
  background: #2563eb;
}

/* ======================
   DATASET SUBMISSION STYLES
   ====================== */

.submission-form {
  max-width: 800px;
  margin: 0 auto;
}

.dataset-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.reasons-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.reasons-section h3 {
  margin: 0 0 1rem 0;
  color: #1e293b;
  font-size: 1.2rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  border: 1px solid #3b82f6;
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
  border-color: #9ca3af;
}

/* ======================
   ARTICLE PLACEHOLDER STYLES
   ====================== */

.article-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.coming-soon {
  text-align: center;
  max-width: 500px;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coming-soon i {
  font-size: 3rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.coming-soon h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.coming-soon p {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.external-link:hover {
  color: #2563eb;
}

/* ======================
   RESPONSIVE STYLES
   ====================== */

@media (max-width: 768px) {
  .sidebar {
    width: 100vw;
    right: -100vw;
  }
  
  .navbar.sidebar-open {
    margin-right: 0;
  }
  
  .sidebar-toggle.active {
    right: calc(100vw - 60px);
    border-radius: 0 8px 8px 0;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .page-header h1 {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .helper-table {
    font-size: 0.875rem;
  }
  
  .helper-table th,
  .helper-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

.hero {
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: #334155;
  margin-bottom: 1rem;
}

.hero-image {
  flex: 1 1 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hero-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.intro-cards {
  background: #ffffff;
  padding: 2rem 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #f9fafb;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.card p {
  color: #475569;
  font-size: 0.95rem;
}

  
  /* Legacy filters - keeping for compatibility */
  .filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  
  .filters input, .filters select {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    flex: 1;
    min-width: 200px;
  }
  
  .dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  
  .dataset-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
    padding: 1rem;
    text-align: center;
    transition: 0.3s ease;
  }
  
  .dataset-card img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 0.5rem;
  }
  
  .dataset-card h3 {
    margin: 0.5rem 0;
  }
  
  .dataset-card .tags {
    margin: 0.5rem 0;
  }
  
  .dataset-card .tag {
    background: #edf2f7;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-right: 0.4rem;
    display: inline-block;
  }
  
  .dataset-card button {
    background: #4f46e5;
    color: white;
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 8px;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .dataset-card button:hover {
    background: #3730a3;
  }
/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Modal Container */
.modal {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

/* Modal Content Sections */
.modal h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.modal ul {
  list-style: none;
  margin: 1rem 0;
  line-height: 1.5;
}

.modal li {
  margin-bottom: 0.5rem;
}

.modal a {
  color: #007acc;
  text-decoration: none;
}

.modal a:hover {
  text-decoration: underline;
}

/* Download Button */
.button.icon {
  display: inline-block;
  background-color: #007acc;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out;
}

.button.icon:hover {
  background-color: #005fa3;
}

/* Columns Layout */

.columns-2 {
  display: flex;
  flex-wrap: nowrap; /* force side-by-side unless screen is too narrow */
  gap: 1.5rem;
}

.columns-2 > div {
  flex: 1; /* equal width columns */
  min-width: 0; /* prevent overflow */
}

.columns-2 img {
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.chart-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem 0;
}
@media (max-width: 1000px) {
  .modal {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
  .chart-container {
    max-width: 98vw;
  }
}

#ageChart {
  width: 100% !important;  /* makes it responsive */
  max-width: 500px;        /* limit max width */
  height: auto !important; /* maintain aspect ratio */
  margin: 1rem auto 0 auto; /* Increased top margin for spacing */
}

#genderChart {
  width: 100% !important;  /* makes it responsive */
  display: block;
  margin: 1rem auto 0 auto; /* Increased top margin for spacing */
  max-width: 250px;
  max-height: 250px;
}

/* Close Button */
.modal button {
  background-color: #e0e0e0;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1.5rem;
  font-size: 1rem;
  transition: background 0.2s ease-in-out;
}

.modal button:hover {
  background-color: #bdbdbd;
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


body {
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background-color: #ffffffcc;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.clarity-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.clarity-link {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.3s;
}

.clarity-link:hover {
    color: #2563eb;
}

.footer {
  background: #f9fafb;
  padding: 2.5rem 1rem;
  font-size: 0.95rem;
  color: #374151;
  border-top: 1px solid #e5e7eb;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

.footer a {
  color: #2563eb;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-left p {
  margin: 0.3rem 0;
}

.footer-right {
  max-width: 600px;
}

.footer-right h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.footer-right details {
  margin-bottom: 1rem;
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.footer-right summary {
  font-weight: 600;
  cursor: pointer;
  color: #1f2937;
  list-style: none;
}

.footer-right summary::-webkit-details-marker {
  display: none;
}

.footer-right summary::after {
  content: " ▼";
  font-size: 0.7rem;
}

.footer-right details[open] summary::after {
  content: " ▲";
}

.citation {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}

.bibtex {
  background: #e5e7eb;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-family: "Courier New", Courier, monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  margin-top: 0.5rem;
}


.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.top-right-thumb {
  width: 100px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 0.5rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f3f4f6;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #111;
  transition: background 0.2s ease;
}

.action-button i {
  font-size: 1.2rem;
}

.action-button:hover {
  background-color: #e5e7eb;
}

.close-button {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background-color: #ef4444;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.close-button:hover {
  background-color: #dc2626;
}

/* ...existing code... */

/* --- Enhanced Table Styles --- */
.dataset-table-container {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
}

.dataset-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dataset-table thead {
  background: #f3f4f6;
}

.dataset-table th, .dataset-table td {
  padding: 1rem 0.75rem;
  text-align: left;
}

.dataset-table th {
  color: #374151;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #e5e7eb;
  background: #f3f4f6;
}

.dataset-table tbody tr {
  transition: background 0.2s;
}

.dataset-table tbody tr:hover {
  background: #f1f5f9;
}

.dataset-table td {
  border-bottom: 1px solid #e5e7eb;
  color: #334155;
  vertical-align: middle;
}

.dataset-table td img {
  border-radius: 0.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  background: #f9fafb;
  margin-right: 0.5em;
  vertical-align: middle;
}

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

.dataset-table button {
  background: #4f46e5;
  color: white;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.dataset-table button:hover {
  background: #3730a3;
}

/* Responsive Table */
@media (max-width: 900px) {
  .dataset-table th, .dataset-table td {
    padding: 0.7rem 0.4rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .dataset-table-container {
    padding: 0.5rem 0.1rem;
  }
  .dataset-table th, .dataset-table td {
    padding: 0.5rem 0.2rem;
    font-size: 0.9rem;
  }
}

/* ...existing code... */

.niivue-container {
    position: relative; /* For overlay positioning */
    width: 100%;
    height: 400px; /* Default height, adjust as needed */
    background-color: #222; /* Dark background for contrast */
    border: 1px solid #444;
    margin-top: 0.5rem; /* Spacing from title */
    border-radius: 4px;
    overflow: hidden; /* Hide potential canvas overflow */
}
.niivue-canvas { /* Canvas itself */
    display: block;
    width: 100%;
    height: 100%;
}
.niivue-overlay { /* Loading/Error state */
    position: absolute;
    inset: 0; /* Covers the container */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    color: #eee;
    font-size: 1.1em;
    padding: 1em;
    text-align: center;
    z-index: 5; /* Above canvas */
}

.filter-item label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #333;
}
  .filter-item input[type="text"],
  .filter-item select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}
.filter-item .age-slider-container {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 5px;
}
.filter-item input[type="range"] {
    flex-grow: 1; /* Allow sliders to take available space */
    cursor: pointer;
}
.filter-item .age-value {
    min-width: 25px; /* Fixed width for age numbers */
    text-align: center;
    font-size: 0.9em;
    color: #555;
}

/* --- Dataset Viewer Section --- */
.dataset-viewer-section {
  background: linear-gradient(120deg, #f8fafc 60%, #e0e7ef 100%);
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(60, 72, 88, 0.07);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  margin: 2rem auto 2.5rem auto;
  max-width: 1600px;
  transition: box-shadow 0.2s;
}

.dataset-viewer-section h2 {
  font-size: 2.1rem;
  font-weight: 700;
  /* color: #3730a3; */
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.filters {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
  background: #f3f4f6;
  padding: 1.2rem 1rem;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px rgba(60, 72, 88, 0.04);
}

.filters input, .filters select {
  padding: 0.6rem 1rem;
  font-size: 1.05rem;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  background: #fff;
  color: #374151;
  min-width: 180px;
  transition: border 0.2s;
}

.filters input:focus, .filters select:focus {
  border: 1.5px solid #6366f1;
  outline: none;
}

.grid_table_button {
    background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 1.15rem;
  margin-top: 1.2rem;
  margin-left: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: background 0.2s, border 0.2s;
}

.fade-expand-enter-active, .fade-expand-leave-active {
    transition: opacity 0.25s, max-height 0.32s cubic-bezier(.4,2,.6,1);
}
.fade-expand-enter, .fade-expand-leave-to {
    opacity: 0;
    max-height: 0;
}
.fade-expand-enter-to, .fade-expand-leave {
    opacity: 1;
    max-height: 200px;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* Publication Cards in Modal */
.explainable-publication-card {
  flex: 1 1 0;
  min-width: 0;
  background: #f7f7fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s;
  margin-bottom: 0; /* Remove if you want spacing between cards */
}

.explainable-publication-card a {
  display: flex;
  align-items: center;
  gap: 0.8em;
  text-decoration: none;
  color: inherit;
  padding: 1.2em;
  transition: background 0.2s;
}

.explainable-publication-card a:hover,
.explainable-publication-card a.active {
  background: #e6f2ff;
}

.explainable-publication-card i.fas.fa-link {
  font-size: 1.5em;
  color: #1976d2;
  flex-shrink: 0;
}

.explainable-publication-card .pub-title {
  font-weight: 600;
  font-size: 1.08em;
  transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s;
  background: none;
  border: none;
  outline: none;
}

.explainable-publication-card .pub-title.active {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 4px 16px rgba(25,118,210,0.08);
}

.fade-expand-enter-active, .fade-expand-leave-active {
  transition: opacity 0.25s, max-height 0.32s cubic-bezier(.4,2,.6,1);
}
.fade-expand-enter, .fade-expand-leave-to {
  opacity: 0;
  max-height: 0;
}
.fade-expand-enter-to, .fade-expand-leave {
  opacity: 1;
  max-height: 200px;
}

.explainable-publication-card .pub-description {
  margin-top: 0.7em;
  color: #444;
  font-size: 0.98em;
  background: #f0f6ff;
  border-radius: 7px;
  padding: 0.7em 1em;
  box-shadow: 0 2px 8px rgba(25,118,210,0.06);
}

.explainable-publication-card a,
.explainable-publication-card a:hover,
.explainable-publication-card a.active {
  text-decoration: none;
}

.modality-tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.95em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  opacity: 0.95;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}

/* Dataset Link Button Styles */
.dataset-link-button {
  display: inline-block;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border: 2px solid #3b82f6;
  border-radius: 6px;
  background: #f8fafc;
  transition: all 0.2s ease;
  font-size: 1.05rem;
}

.dataset-link-button:hover {
  background: #3b82f6;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.no-info {
  color: #9ca3af;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Updated Dataset Submission Styles */
.submission-options {
  max-width: 1000px;
  margin: 0 auto;
}

.submission-method {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.method-header h3 {
  margin: 0;
  color: #1e293b;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge.recommended {
  background: #3b82f6;
}

.form-embed-container {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-form-embed {
  display: block;
  border: none;
  min-height: 800px;
}

.form-instructions {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.form-instructions h4 {
  margin: 0 0 1rem 0;
  color: #1e293b;
}

.form-instructions ol {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.submission-alternatives {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submission-alternatives h3 {
  margin: 0 0 1.5rem 0;
  color: #1e293b;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alt-methods {
  display: grid;
  gap: 1.5rem;
}

.alt-method {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.alt-method > i {
  font-size: 2rem;
  color: #3b82f6;
  margin-top: 0.25rem;
}

.alt-method div {
  flex: 1;
}

.alt-method h4 {
  margin: 0 0 0.5rem 0;
  color: #1e293b;
  font-size: 1.1rem;
}

.alt-method p {
  margin: 0 0 1rem 0;
  color: #6b7280;
  line-height: 1.5;
}

/* AI Term Tooltip Styles */
.ai-term {
    color: #667eea;
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    font-weight: 600;
    position: relative;
}

.ai-term:hover {
    color: #5a67d8;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    width: 300px;
    max-width: 80vw;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-weight: normal;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2d3748;
}

.ai-term:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .method-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .alt-method {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .alt-method > i {
    font-size: 1.5rem;
  }
  
  .google-form-embed {
    min-height: 1000px;
  }
}

/* Clean & Compact Dataset Helper Table Styling */
.helper-table {
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
}

/* Clean Header Styling */
.pathology-header {
  width: 25% !important;
  font-size: 1.05rem !important;
  color: #374151 !important;
  font-weight: 600 !important;
  background: #fafafb !important;
}

.dataset-header {
  width: 20% !important;
  font-weight: 600 !important;
  background: #fafafb !important;
}

.benefits-header {
  width: 40% !important;
  font-weight: 600 !important;
  background: #fafafb !important;
}

.cautions-header {
  width: 15% !important;
  font-weight: 600 !important;
  background: #fafafb !important;
}

.helper-table th {
  padding: 0.8rem !important;
  font-size: 0.95rem !important;
  border-bottom: 1px solid #e5e7eb !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.helper-table td {
  padding: 0.8rem !important;
  font-size: 0.9rem !important;
}

/* Clean Pathology Tag Styling */
.pathology-cell {
  width: 25% !important;
}

.pathology-tag {
  background: #f3f4f6 !important;
  color: #374151 !important;
  padding: 0.3rem 0.8rem !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  display: inline-block !important;
  border-left: 3px solid #6366f1 !important;
  text-transform: capitalize !important;
  letter-spacing: 0.01em !important;
}

/* Clean Dataset Button */
.dataset-cell {
  width: 20% !important;
}

.dataset-link-button {
  display: inline-block !important;
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  padding: 0.25rem 0.5rem !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 4px !important;
  background: #f9fafb !important;
  transition: all 0.2s ease !important;
  font-size: 0.85rem !important;
}

.dataset-link-button:hover {
  background: #2563eb !important;
  color: white !important;
  text-decoration: none !important;
  border-color: #2563eb !important;
}

/* Compact Reasons List */
.reasons-cell {
  width: 40% !important;
}

.reason-list {
  margin: 0 !important;
  padding: 0 !important;
}

.reason-list li {
  margin: 0.3rem 0 !important;
  padding: 0 !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: #4b5563 !important;
  position: relative !important;
  padding-left: 1rem !important;
}

.reason-list li::before {
  content: "•" !important;
  color: #6366f1 !important;
  position: absolute !important;
  left: 0 !important;
  font-weight: bold !important;
}

/* Clean Cautions */
.caution-cell {
  width: 15% !important;
}

.caution-text {
  font-size: 0.82rem !important;
  line-height: 1.3 !important;
  color: #dc2626 !important;
  font-weight: 500 !important;
  background: #fef2f2 !important;
  padding: 0.4rem 0.6rem !important;
  border-radius: 4px !important;
  border-left: 2px solid #dc2626 !important;
}

/* Compact Table */
.helper-table tr:hover {
  background: #f8fafc !important;
}

.table-container {
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* ======================
   MODERN FILTER STYLES
   ====================== */

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

/* Modern Filters Container */
.modern-filters {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.filter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: end;
}

/* Filter Groups */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}

.filter-label i {
  color: #6366f1;
  font-size: 0.875rem;
}

/* Input Styling */
.input-wrapper {
  position: relative;
}

.modern-input {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-right: 3rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fafafa;
  color: #374151;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.modern-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modern-input::placeholder {
  color: #9ca3af;
}

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

/* Select Styling */
.select-wrapper {
  position: relative;
}

.modern-select {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-right: 3rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fafafa;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  box-sizing: border-box;
}

.modern-select:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.modern-select:focus + .select-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* Age Filter Styling */
.age-filter {
  grid-column: span 2;
}

.age-slider-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.age-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
}

.age-value {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.age-separator {
  color: #9ca3af;
  font-weight: 400;
}

.modern-slider {
  height: 8px !important;
  border-radius: 4px;
  background: #e5e7eb;
  border: none;
  box-shadow: none;
}

/* NoUISlider Custom Styling */
.modern-slider .noUi-connect {
  background: linear-gradient(90deg, #6366f1, #8b5cf6) !important;
  box-shadow: none;
}

.modern-slider .noUi-handle {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 3px solid #6366f1 !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25) !important;
  cursor: pointer !important;
}

.modern-slider .noUi-handle:before,
.modern-slider .noUi-handle:after {
  display: none !important;
}

.modern-slider .noUi-handle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important;
}

.modern-slider .noUi-tooltip {
  background: #374151 !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 0.75rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Action Buttons */
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: end;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.view-toggle-btn:hover {
  border-color: #6366f1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.view-toggle-btn.grid-active,
.view-toggle-btn.table-active {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.reset-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid #fecaca;
  border-radius: 0.75rem;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
  transform: translateY(-1px);
}

/* Filter Summary */
.filter-summary {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 0.75rem;
  text-align: center;
}

.results-count {
  font-size: 0.95rem;
  color: #0369a1;
  font-weight: 500;
}

/* Responsive Design for Filters */
@media (max-width: 1024px) {
  .age-filter {
    grid-column: span 1;
  }
  
  .filter-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .modern-filters {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .filter-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .age-filter {
    grid-column: span 1;
  }
  
  .filter-actions {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .view-toggle-btn,
  .reset-btn {
    flex: 1;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

/* ======================
   NEURODATAHUB CLI PAGE STYLES
   ====================== */

.cli-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.cli-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.cli-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cli-hero-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cli-hero-text p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cli-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cli-badges img {
  height: 20px;
  border-radius: 4px;
}

/* Terminal Window */
.terminal-window {
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  background: #374151;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-buttons .button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.button.red { background: #ef4444; }
.button.yellow { background: #eab308; }
.button.green { background: #22c55e; }

.terminal-title {
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

.terminal-line {
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.terminal-line .prompt {
  color: #10b981;
  font-weight: bold;
  margin-right: 0.5rem;
}

.terminal-line.output {
  color: #94a3b8;
  margin-left: 1rem;
}

/* Features Section */
.cli-features {
  margin-bottom: 3rem;
}

.cli-features h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #1e293b;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.feature-card p {
  color: #475569;
  line-height: 1.6;
}

/* Installation Section */
.cli-installation {
  margin-bottom: 3rem;
}

.cli-installation h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #1e293b;
}

.install-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.install-method {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.install-method h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Code Blocks */
.code-block {
  background: #1e293b;
  color: #e5e7eb;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy-btn {
  background: #374151;
  border: none;
  color: #9ca3af;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: #4b5563;
  color: #e5e7eb;
}

/* Usage Examples */
.cli-usage {
  margin-bottom: 3rem;
}

.cli-usage h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #1e293b;
}

.usage-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.usage-category {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.usage-category h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.command-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.command-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.command-desc {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

/* Categories Section */
.cli-categories {
  margin-bottom: 3rem;
}

.cli-categories h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #1e293b;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #6366f1;
}

.category-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-card p {
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.category-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-card li {
  padding: 0.5rem 0;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.category-card li:last-child {
  border-bottom: none;
}

.category-card small {
  color: #9ca3af;
  font-style: italic;
}

/* Links Section */
.cli-links {
  margin-bottom: 3rem;
}

.cli-links h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #1e293b;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.link-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.link-card i {
  font-size: 2.5rem;
  color: #6366f1;
  margin-bottom: 1rem;
}

.link-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.link-card p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cli-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cli-hero-text h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .install-methods {
    grid-template-columns: 1fr;
  }
  
  .usage-examples {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .links-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .code-block {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
  }
  
  .terminal-body {
    padding: 1rem;
    font-size: 0.75rem;
  }
}

