.nav-item.active .nav-link-inner {
  color: #ffffff;
  font-weight: bold;
  position: relative;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
}
.navbar-nav {
  display: flex;
  align-items: center;
}
.nav-item {
  display: flex;
  align-items: center;
}
.navbar-brand {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}
.navbar-brand .brand-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.navbar-brand .brand-graph {
  color: #e0e0e0;
  font-weight: 500;
}
.navbar-brand .brand-ripples {
  background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}
.navbar-brand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background-image: url("/assets/logo-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}
.navbar-brand::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(20px);
}
.navbar-brand:hover::after {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
}
[data-bs-theme="light"] .navbar-brand .brand-graph {
  color: #333;
}
[data-bs-theme="light"] .navbar-brand .brand-ripples {
  background: linear-gradient(to right, #2563eb, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.request-graph-heading {
  background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  font-size: 3.5rem;
  margin-bottom: 0;
  text-align: center;
  display: inline-block;
  width: fit-content;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.3)) drop-shadow(0 0 60px rgba(236, 72, 153, 0.2));
}
.request-graph-heading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.4) 55%, transparent 70%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
  mix-blend-mode: overlay;
}
[data-bs-theme="light"] .request-graph-heading {
  background: linear-gradient(to right, #2563eb, #7c3aed, #db2777, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.request-form-card {
  background-color: var(--bs-bg-opacity);
  background-color: rgba(var(--bs-body-bg-rgb), 0.5);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-top: 2rem;
}
.gradient-editor {
  --ge-height: 34px;
  --ge-handle-size: 14px;
  --ge-border-radius: 10px;
  --ge-border: rgba(255, 255, 255, 0.14);
  --ge-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.gradient-editor .ge-stage {
  position: relative;
  width: 100%;
  padding: 10px 0 18px 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.gradient-editor.is-disabled {
  opacity: 0.35;
  filter: saturate(0.85);
}
.gradient-editor.is-disabled .ge-bar, .gradient-editor.is-disabled .ge-handle, .gradient-editor.is-disabled .ge-color, .gradient-editor.is-disabled .ge-remove, .gradient-editor.is-disabled .ge-reverse {
  cursor: not-allowed !important;
}
.gradient-editor.is-disabled .ge-handle:active {
  cursor: not-allowed !important;
}
.gradient-editor .ge-bar {
  height: var(--ge-height);
  border-radius: var(--ge-border-radius);
  border: none;
  box-shadow: var(--ge-shadow), inset 0 0 0 1px var(--ge-border);
  background-size: cover;
  cursor: crosshair;
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
  transform: translateZ(0);
}
.gradient-editor .ge-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}
.gradient-editor .ge-handles {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: var(--ge-height);
  pointer-events: none;
}
.gradient-editor .ge-handle {
  pointer-events: auto;
  position: absolute;
  top: calc(var(--ge-height) - (var(--ge-handle-size) / 2));
  transform: translateX(-50%);
  width: var(--ge-handle-size);
  height: var(--ge-handle-size);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 10px 18px rgba(0, 0, 0, 0.35);
  cursor: grab;
  padding: 0;
  background: #000;
}
.gradient-editor .ge-handle.is-selected {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 6px rgba(59, 130, 246, 0.35), 0 12px 22px rgba(0, 0, 0, 0.45);
}
.gradient-editor .ge-handle:active {
  cursor: grabbing;
}
.gradient-editor .ge-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gradient-editor .ge-control-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0;
}
.gradient-editor .ge-color {
  width: 44px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.gradient-editor .ge-pos {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1;
}
[data-bs-theme="light"] .gradient-editor {
  --ge-border: rgba(0, 0, 0, 0.15);
  --ge-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
[data-bs-theme="light"] .gradient-editor .ge-control-label {
  color: #333;
}
[data-bs-theme="light"] .gradient-editor .ge-pos {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.12);
}
[data-bs-theme="light"] .gradient-editor .ge-handle {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.65), 0 10px 18px rgba(0, 0, 0, 0.2);
}
[data-bs-theme="light"] .gradient-editor .ge-handle.is-selected {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(37, 99, 235, 0.25), 0 12px 22px rgba(0, 0, 0, 0.25);
}
.gradient-saved-indicator {
  cursor: help;
  opacity: 0;
  transform: translateY(-1px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.gradient-saved-indicator .gradient-saved-indicator-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}
.gradient-saved-indicator.is-visible {
  opacity: 0.75;
  transform: translateY(0);
  pointer-events: auto;
}
[data-bs-theme="dark"] .request-form-card {
  background-color: rgba(40, 44, 52, 0.8);
}
[data-bs-theme="light"] .request-form-card {
  background-color: rgba(255, 255, 255, 0.9);
}
.request-form .form-label {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
[data-bs-theme="light"] .request-form .form-label {
  color: #333;
}
.request-form .form-text {
  color: #aaa;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
[data-bs-theme="light"] .request-form .form-text {
  color: #666;
}
.request-form .request-input {
  background-color: #2a2e33;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.5rem;
  color: #ffffff;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}
.request-form .request-input::placeholder {
  color: #888;
}
.request-form .request-input:focus {
  background-color: #2a2e33;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
  outline: none;
}
[data-bs-theme="light"] .request-form .request-input {
  background-color: #f8f9fa;
  border-color: rgba(59, 130, 246, 0.3);
  color: #333;
}
[data-bs-theme="light"] .request-form .request-input:focus {
  background-color: #ffffff;
  border-color: #3b82f6;
  color: #333;
}
.request-form .request-submit-btn {
  background-color: #3b82f6;
  border: 1px solid #3b82f6;
  border-radius: 0.5rem;
  color: #ffffff;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}
.request-form .request-submit-btn:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}
.request-form .request-submit-btn:active {
  transform: translateY(0);
}
[data-bs-theme="light"] .shadow-enhanced, .shadow-enhanced {
  /* inner glow */
  box-shadow: inset 0 0 0.5px 1px rgba(255, 255, 255, 0.075), 0 0 0 1px rgba(0, 0, 0, 0.05), 0 0.3px 0.4px rgba(0, 0, 0, 0.02), 0 0.9px 1.5px rgba(0, 0, 0, 0.045), 0 3.5px 6px rgba(0, 0, 0, 0.09);
}
[data-bs-theme="dark"] .shadow-enhanced {
  /* inner glow - subtle white glow */
  box-shadow: inset 0 0 0.5px 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0.5px 1px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
}
[data-bs-theme="dark"] .bg-body {
  background-color: #2a2e33 !important;
}
[data-bs-theme="dark"] .bg-body-secondary {
  background-color: #25282d !important;
}
.gradient-heading, .ripple-graphs-heading {
  background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  font-size: 3.5rem;
  margin-bottom: 0;
  text-align: left;
  display: inline-block;
  width: fit-content;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.3)) drop-shadow(0 0 60px rgba(236, 72, 153, 0.2));
}
.gradient-heading::after, .ripple-graphs-heading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.4) 55%, transparent 70%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
  mix-blend-mode: overlay;
}
[data-bs-theme="light"] .gradient-heading, [data-bs-theme="light"] .ripple-graphs-heading {
  background: linear-gradient(to right, #2563eb, #7c3aed, #db2777, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ripple-graphs-heading {
  font-size: 5rem;
}
[data-bs-theme="light"] .ripple-graphs-heading {
  background: linear-gradient(to right, #2563eb, #7c3aed, #db2777, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.path-index .lead a {
  color: #3b82f6;
  text-decoration: underline;
}
.path-index .btn-primary {
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.5);
}
[data-bs-theme="light"] .path-index .lead a {
  color: #2563eb;
}
.article-header, .article-content, .graph-content {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-header:hover, .article-content:hover, .graph-content:hover {
  transform: translateY(-1px);
}
#graph-visualizer-container {
  max-width: 2000px;
  margin: auto;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  --bg-color: #121212;
  --container-bg: #1e1e1e;
  --text-color: #e0e0e0;
  --accent-color: #00bcd4;
}
#graph-visualizer-container canvas {
  background: #000;
  border: 1px solid #333;
  border-radius: 4px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  width: 100%;
  height: auto;
  display: block;
}
#graph-visualizer-container progress {
  width: 100%;
  height: 8px;
  margin: 15px 0 5px 0;
  display: block;
  accent-color: var(--accent-color);
}
#player-container-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  background: #000;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}
#player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#graph-visualizer-container .header {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}
#graph-visualizer-container .header h2 {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
#graph-visualizer-container .video-info {
  color: #aaa;
  font-size: 1.2em;
  text-align: right;
  flex-shrink: 0;
  line-height: 1.5;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
#graph-visualizer-container .video-info .video-title {
  font-weight: 500;
  color: var(--text-color);
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
#graph-visualizer-container .video-info .video-title:hover {
  color: var(--accent-color);
}
#graph-visualizer-container .video-info .video-author {
  color: #888;
  display: inline-block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
#graph-visualizer-container .video-info .video-author a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}
#graph-visualizer-container .video-info .video-author a:hover {
  color: var(--accent-color);
}
@media (max-width: 768px) {
  #graph-visualizer-container .header {
    flex-direction: column;
  }
  #graph-visualizer-container .video-info {
    text-align: right;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
  }
  #graph-visualizer-container .video-info .video-title {
    display: block;
    width: 100%;
    text-align: right;
  }
  #graph-visualizer-container .video-info .video-author {
    display: block;
    width: 100%;
    text-align: right;
  }
}
#graph-visualizer-container .footer {
  text-align: right;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #333;
  color: #888;
}
#graph-visualizer-container .footer a {
  color: #aaa;
  font-size: 1.2em;
  text-decoration: none;
  transition: color 0.3s ease;
}
#graph-visualizer-container .footer a:hover {
  color: var(--accent-color);
}
@media (max-width: 768px) {
  #graph-visualizer-container .footer {
    text-align: left;
  }
}
#graph-visualizer-container .stats {
  background: #252525;
  color: #aaa;
  padding: 15px;
  font-family: monospace;
  border-radius: 4px;
  font-size: 0.9em;
  margin-top: 20px;
}
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  background: #444;
  color: var(--text-color);
  transition: all 0.3s ease;
}
.status-playing {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 10px var(--accent-color);
}
#graph-visualizer-container .controls {
  background: #252525;
  color: #aaa;
  padding: 15px;
  border-radius: 4px;
  font-size: 0.85em;
  margin-top: 15px;
  margin-bottom: 15px;
}
#graph-visualizer-container .controls .controls-title {
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 0.95em;
}
#graph-visualizer-container .controls .controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
#graph-visualizer-container .controls .control-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
#graph-visualizer-container .controls .control-key {
  color: var(--accent-color);
  font-weight: 600;
  font-family: monospace;
  background: rgba(0, 188, 212, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}
#graph-visualizer-container .controls .control-desc {
  color: #aaa;
}
#graph-visualizer-container .controls .controls-mobile {
  display: none;
}
@media (max-width: 768px) {
  #graph-visualizer-container .controls .controls-grid {
    display: none;
  }
  #graph-visualizer-container .controls .controls-mobile {
    display: block;
  }
  #graph-visualizer-container .controls .controls-mobile .controls-mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
