body { font-family: Inter, sans-serif; }

.tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.04);
}

/* ── Mode buttons ── */
.mode-btn {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.mode-btn.active {
  background: #fff;
  color: #065f46;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* ── Reverb toggle ── */
.reverb-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 1px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
}
.reverb-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.reverb-btn.active {
  background: #fff;
  color: #065f46;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* ── Santoor body ── */
.santoor-body {
  position: relative;
  background: linear-gradient(170deg, #5c3010 0%, #3a1c06 60%, #2a1204 100%);
  border-radius: 0.75rem 0.75rem 2rem 2rem / 0.75rem 0.75rem 1rem 1rem;
  padding: 20px 28px 28px;
  box-shadow:
    inset 0 2px 10px rgba(255,180,80,0.08),
    inset 0 -6px 24px rgba(0,0,0,0.45),
    0 8px 32px rgba(0,0,0,0.22);
  overflow: hidden;
}
.santoor-body::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,160,60,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Side bridges */
.santoor-bridge {
  position: absolute;
  top: 14px; bottom: 14px;
  width: 10px;
  background: linear-gradient(180deg, #c8a060 0%, #8a6030 50%, #6a4820 100%);
  border-radius: 3px;
  box-shadow: 2px 0 6px rgba(0,0,0,0.4), -1px 0 2px rgba(255,200,100,0.1);
  z-index: 2;
}
.left-bridge  { left: 14px; }
.right-bridge { right: 14px; }

/* ── Courses container ── */
.santoor-courses {
  display: flex;
  flex-direction: column;
  gap: 0px;
  position: relative;
  z-index: 1;
}

/* ── Individual course ── */
.santoor-course {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  padding: 2px 0;
  transition: filter 0.05s;
}
.santoor-course:active { filter: brightness(1.3); }

/* Course label left */
.course-label-left {
  width: 42px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 8px;
  line-height: 1;
}
.course-note {
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  display: block;
  white-space: nowrap;
}
.course-swar {
  font-size: 7px;
  color: rgba(255,220,120,0.75);
  display: block;
  white-space: nowrap;
}

/* String group */
.course-strings {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  position: relative;
}
.course-string {
  height: 1.5px;
  border-radius: 1px;
  transition: filter 0.08s, opacity 0.08s;
}

/* Key label right */
.course-label-right {
  width: 20px;
  flex-shrink: 0;
  padding-left: 6px;
  font-size: 7px;
  color: rgba(255,255,255,0.28);
  font-family: monospace;
  white-space: nowrap;
}

/* Struck animation */
.course-strings.struck .course-string {
  filter: brightness(2.5);
  animation: stringVib 0.35s ease-out forwards;
}
@keyframes stringVib {
  0%   { transform: translateY(0);    filter: brightness(2.5); }
  15%  { transform: translateY(-1px); }
  30%  { transform: translateY(1px);  }
  50%  { transform: translateY(-0.5px); filter: brightness(1.8); }
  70%  { transform: translateY(0.5px); }
  100% { transform: translateY(0);    filter: brightness(1); }
}

/* Raga dimming */
.santoor-course.raga-dim .course-strings .course-string {
  opacity: 0.22;
}
.santoor-course.raga-dim .course-note,
.santoor-course.raga-dim .course-swar {
  opacity: 0.3;
}
.santoor-course.raga-dim .course-label-right {
  opacity: 0.2;
}

/* ── Bridge markers (the small triangular bridges that rest on the soundboard) ── */
.course-bridge-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 5px;
  background: #c8a060;
  border-radius: 1px 1px 0 0;
  bottom: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ── Landscape banner ── */
.landscape-banner {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  padding: 8px 14px;
  font-size: 0.75rem;
  color: #92400e;
  text-align: center;
  margin-bottom: 10px;
}

/* ── Ripple ── */
.course-ripple {
  position: fixed;
  border-radius: 2px;
  pointer-events: none;
  z-index: 50;
  animation: courseRip 0.45s ease-out forwards;
  background: rgba(255,220,120,0.35);
}
@keyframes courseRip {
  from { opacity: 0.8; transform: scaleX(1) scaleY(1); }
  to   { opacity: 0;   transform: scaleX(1.3) scaleY(3); }
}

tbody tr:nth-child(even) { background: #f9fafb; }
