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

/* Color variables and design tokens */
:root {
  /* Dark Mode (Default) */
  --bg-color: hsl(222, 47%, 9%);
  --card-bg: hsl(223, 47%, 13%);
  --card-border: hsla(223, 47%, 20%, 0.6);
  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 65%);
  --primary: hsl(250, 89%, 65%);
  --primary-hover: hsl(250, 89%, 72%);
  --primary-rgb: 108, 92, 231;
  --accent: hsl(320, 89%, 60%);
  --accent-hover: hsl(320, 89%, 68%);
  --success: hsl(142, 71%, 45%);
  --success-bg: hsla(142, 71%, 45%, 0.15);
  --error: hsl(0, 84%, 60%);
  --error-bg: hsla(0, 84%, 60%, 0.15);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(20, 24, 38, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  /* Light Mode Override */
  --bg-color: hsl(210, 40%, 96%);
  --card-bg: hsl(0, 0%, 100%);
  --card-border: hsl(214, 32%, 88%);
  --text-main: hsl(222, 47%, 12%);
  --text-muted: hsl(215, 16%, 42%);
  --primary: hsl(250, 89%, 58%);
  --primary-hover: hsl(250, 89%, 50%);
  --accent: hsl(320, 89%, 50%);
  --accent-hover: hsl(320, 89%, 42%);
  --success: hsl(142, 76%, 36%);
  --success-bg: hsla(142, 76%, 36%, 0.1);
  --error: hsl(0, 84%, 50%);
  --error-bg: hsla(0, 84%, 50%, 0.1);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Utility Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

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

p {
  color: var(--text-muted);
}

/* App Header & Navbar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  -webkit-text-fill-color: initial;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Header Home Link for inner tool pages */
.home-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.home-nav-link:hover {
  color: var(--text-main);
  background: var(--glass-border);
}

/* Dark mode toggler */
.theme-btn {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.theme-btn:hover {
  background: var(--card-border);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 80px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-main) 40%, var(--primary) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Directory Page Controls */
.directory-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

@media(min-width: 768px) {
  .directory-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

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

.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none; /* Hide scrollbar for category tabs */
}
.category-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-main);
  background: var(--card-border);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

/* Tool Grid / Card directory */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px -6px rgba(0,0,0,0.15), 0 0 0 1px var(--primary);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}
.tool-card:hover .tool-card-icon {
  background: var(--primary);
  color: white;
}

.tool-card h3 {
  font-size: 1.2rem;
  color: var(--text-main);
}

.tool-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 20px;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
  margin-top: auto;
}

.tool-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--accent);
  background: hsla(320, 89%, 60%, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
}

.tool-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.tool-card-link:hover svg {
  transform: translateX(3px);
}

/* Tool Page Specific Layouts */
.tool-header-info {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 32px;
}
.tool-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.tool-page-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.tool-header-info h1 {
  font-size: 2.2rem;
}
.tool-header-info p {
  font-size: 1.05rem;
}

/* Grid workspace layouts for tools */
.tool-workspace {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

@media(min-width: 768px) {
  .tool-workspace {
    padding: 32px;
  }
}

/* UI Elements & Controls */
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group {
  margin-bottom: 20px;
}

.text-area {
  width: 100%;
  height: 240px;
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}
.text-area:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.text-area.code-font {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

.input-text {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.input-text:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.color-picker-row {
  display: flex;
  gap: 16px;
}
.color-picker-container {
  flex: 1;
}
.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}
.color-input-wrapper input[type="color"] {
  border: none;
  background: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.color-input-wrapper input[type="text"] {
  border: none;
  background: none;
  color: var(--text-main);
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.select-input {
  width: 100%;
  background: var(--bg-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='hsl(215, 20%25, 65%25)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  background-size: 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 40px 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition);
}
.select-input:focus {
  border-color: var(--primary);
}

.range-input {
  width: 100%;
  accent-color: var(--primary);
  margin-top: 8px;
}

/* Button UI */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
  transition: var(--transition);
}
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--card-border);
}

.btn-accent {
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 0, 128, 0.15);
}
.btn-accent:hover {
  background: var(--accent-hover);
}

/* Word Counter Workspace CSS */
.word-counter-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media(min-width: 992px) {
  .word-counter-layout {
    grid-template-columns: 1.8fr 1.2fr;
  }
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-item {
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-val {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.density-section {
  grid-column: span 2;
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.density-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.density-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.density-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.density-word {
  font-family: monospace;
  background: var(--card-border);
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.density-progress {
  flex-grow: 1;
  height: 6px;
  background: var(--card-border);
  border-radius: 3px;
  margin: 0 16px;
  overflow: hidden;
  position: relative;
}

.density-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

.density-count {
  font-weight: 600;
  color: var(--text-main);
  min-width: 32px;
  text-align: right;
}

/* QR Code Workspace CSS */
.qr-workspace-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* QR templates selection styles */
.qr-templates-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.qr-templates-tabs::-webkit-scrollbar {
  display: none;
}
.qr-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.qr-tab-btn:hover {
  color: var(--text-main);
  background: var(--glass-border);
}
.qr-tab-btn.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.2);
}

.qr-input-group {
  display: none;
  animation: qrFadeIn 0.3s forwards ease-in-out;
}
.qr-input-group.active {
  display: block;
}

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

@media(min-width: 768px) {
  .qr-workspace-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.qr-result-pane {
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

#qr-code-output {
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  max-width: 100%;
}

#qr-code-output img, #qr-code-output canvas {
  max-width: 100%;
  height: auto !important;
}

.qr-placeholder {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.qr-placeholder svg {
  margin-bottom: 12px;
  opacity: 0.6;
}

/* JSON Formatter Workspace CSS */
.json-workspace-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media(min-width: 992px) {
  .json-workspace-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.json-editor-pane {
  display: flex;
  flex-direction: column;
  position: relative;
}

.json-output-pane {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  background: var(--bg-color);
  border-radius: var(--radius-md);
  height: 380px;
  position: relative;
  overflow: hidden;
}

.json-output-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.json-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.json-badge.valid {
  background: var(--success-bg);
  color: var(--success);
}

.json-badge.invalid {
  background: var(--error-bg);
  color: var(--error);
}

.json-badge.empty {
  background: var(--card-border);
  color: var(--text-muted);
}

.json-output-body {
  flex-grow: 1;
  padding: 16px;
  overflow: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-all;
}

/* JSON highlight colors */
.json-key { color: hsl(250, 89%, 68%); }
.json-string { color: hsl(142, 71%, 45%); }
.json-number { color: hsl(30, 90%, 50%); }
.json-boolean { color: hsl(320, 89%, 60%); }
.json-null { color: hsl(215, 20%, 65%); }

.validation-msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  font-size: 0.9rem;
  display: none;
}

.validation-msg.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
  display: flex;
  align-items: center;
  gap: 8px;
}

.validation-msg.error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Shared Footer styling */
.app-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  text-align: center;
  margin-top: auto;
}

.app-footer p {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Toast System */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  min-width: 250px;
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.3s forwards cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition);
}

@keyframes slideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--success);
}
.toast.error {
  border-left: 4px solid var(--error);
}
.toast.info {
  border-left: 4px solid var(--primary);
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}
.toast-close:hover {
  color: var(--text-main);
}

/* How to use & FAQ Accordion styling */
.info-section {
  margin-bottom: 60px;
}

.info-section h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.accordion-header:hover {
  background: var(--card-border);
}

.accordion-icon {
  transition: transform 0.3s;
}

.accordion-content {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 0px solid transparent;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--card-border);
  max-height: 500px; /* arbitrary height to slide down */
}
