* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Skip Link for Accessibility (WCAG 2.4.1) */
.skip-link { position: absolute; top: -50px; left: 0; background: #1e40af; color: #fff; padding: 12px 24px; z-index: 10000; text-decoration: none; font-weight: 600; border-radius: 0 0 8px 0; transition: top 0.2s ease; }
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* Dark Theme (default) */
body.theme-dark {
  --primary: #6ee7ff;
  --secondary: #b4bcd0;
  --accent: #f97316;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #fb923c;
  --text: #e2e8f0;
  --text-light: #b4bcd0;
  --text-strong: #ffffff;
  --bg: #0f1115;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #212837;
  --border: rgba(255,255,255,0.1);
  --border-strong: rgba(255,255,255,0.2);
  --shadow: rgba(0,0,0,0.4);
  --overlay: rgba(0,0,0,0.95);
  color-scheme: dark;
}

/* Light Theme */
body.theme-light {
  --primary: #1d4ed8;
  --secondary: #374151;
  --accent: #ea580c;
  --success: #15803d;
  --danger: #dc2626;
  --warning: #d97706;
  --text: #1f2937;
  --text-light: #4b5563;
  --text-strong: #111827;
  --bg: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --border: rgba(0,0,0,0.12);
  --border-strong: rgba(0,0,0,0.2);
  --shadow: rgba(0,0,0,0.1);
  --overlay: rgba(0,0,0,0.6);
  color-scheme: light;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  word-wrap: break-word;
  transition: background-color 0.3s ease, color 0.3s ease;
}
input, select, textarea { font-size: 16px; }
.app-header { background: linear-gradient(135deg, #1e40af, #0c4a6e); color: #e2e8f0; padding: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; overflow: visible; }
.header-content { display: flex; justify-content: space-between; align-items: center; overflow: visible; }
.header-left { display: flex; gap: 1rem; align-items: center; }
.header-right { display: flex; gap: 0.5rem; align-items: center; overflow: visible; }
.user-display { color: white; font-size: 0.9rem; }
.stage-mode-btn { background: rgba(255,255,255,0.3); }
.modal-max-width-600 { max-width: 600px; }
.full-width-btn { width: 100%; }
.margin-top-half { margin-top: 0.5rem; }
.margin-bottom-half { margin-bottom: 0.5rem; }
.margin-bottom-1 { margin-bottom: 1rem; }
.font-size-085 { font-size: 0.85rem; }
.text-color-gray { color: #9ca3af; }
body.theme-light .text-color-gray { color: #4b5563; }
.grid-gap-half { display: grid; gap: 0.5rem; }
.tap-btn-style { width: 100%; padding: 1rem; font-size: 1rem; font-weight: 700; transition: transform 0.1s, background-color 0.1s; }
.tap-flash { transform: scale(0.95); background-color: var(--accent) !important; }
.apply-btn-style { width: 100%; margin-top: 0.5rem; padding: 0.5rem; }
.sort-select-style { max-width: 140px; font-size: 0.9rem; }
.mode-toggle { display: flex; gap: 0.5rem; align-items: center; }
.practice-tips { background: var(--warning, #fef3c7); padding: 1rem; border-radius: 8px; margin-top: 1rem; border: 1px solid var(--border); }
.app-header h1 { font-size: 1.5rem; font-weight: 700; }
.icon-btn { background: var(--button-bg, rgba(255,255,255,0.2)); border: none; color: var(--text-strong); font-size: 1.5rem; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg, .icon-btn i { width: 1.2em; height: 1.2em; }

body.theme-dark .icon-btn {
  background: rgba(255,255,255,0.2);
}

body.theme-light .icon-btn {
  background: rgba(255,255,255,0.3);
  color: #ffffff;
}

/* Light theme header adjustments */
body.theme-light .app-header {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

body.theme-light .user-display {
  color: #ffffff;
}

body.theme-light .app-header h1 {
  color: #ffffff;
}

/* Light Theme Contrast Fixes - Song Cards */
body.theme-light .song-title {
  color: #111827 !important;
}

body.theme-light .song-artist {
  color: #374151 !important;
}

body.theme-light .drag-handle {
  color: #374151 !important;
  font-weight: 900;
}

body.theme-light .drag-handle:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1f2937 !important;
}

body.theme-light .drag-handle:active {
  background: rgba(0, 0, 0, 0.12);
}

/* Drag handles on dark backgrounds should always be light */
.set-break-divider .drag-handle,
.dark-bg .drag-handle,
[style*="background: #1"] .drag-handle,
[style*="background: var(--bg-secondary)"] .drag-handle {
  color: rgba(255, 255, 255, 0.9) !important;
}
body.theme-light .set-break-divider .drag-handle {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.theme-light .song-position {
  color: #374151 !important;
  font-weight: 700;
}

body.theme-light .song-meta {
  color: #4b5563 !important;
}

body.theme-light .song-proficiency {
  color: #d97706 !important;
}

body.theme-light .song-tuning {
  color: #ea580c !important;
}

body.theme-light .delete-song-btn,
body.theme-light .delete-bank-song-btn {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

body.theme-light .delete-song-btn:hover,
body.theme-light .delete-bank-song-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Light theme link visibility */
body.theme-light a {
  color: #1d4ed8;
}

body.theme-light a:hover {
  color: #1e40af;
  text-decoration: underline;
}

body.theme-light .practice-music-link {
  color: #ffffff;
}

body.theme-light .song-notes {
  background: #f1f5f9;
  color: #374151;
}

body.theme-light .song-annotations {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(6, 182, 212, 0.08));
  border-color: rgba(29, 78, 216, 0.2);
}

body.theme-light .annotation-text-display {
  color: #1f2937;
}

body.theme-light .btn-edit,
body.theme-light .btn-details {
  background: rgba(29, 78, 216, 0.08);
}

body.theme-light .modal-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-light .form-group input,
body.theme-light .form-group select,
body.theme-light .form-group textarea {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}

body.theme-light .form-group input:focus,
body.theme-light .form-group select:focus,
body.theme-light .form-group textarea:focus {
  border-color: #1d4ed8;
}

body.theme-light .dropdown-item {
  color: #374151;
}

body.theme-light .dropdown-item:hover {
  background: rgba(29, 78, 216, 0.08);
}

/* ============================================
   COMPREHENSIVE LIGHT THEME CONTRAST FIXES
   ============================================ */

/* Header dropdown menu */
body.theme-light .header-dropdown {
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Toast notifications */
body.theme-light .toast {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.theme-light .toast-message {
  color: #1f2937;
}

body.theme-light .toast-close {
  color: #6b7280;
}

body.theme-light .toast-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Confirm dialog */
body.theme-light .confirm-dialog {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

body.theme-light .confirm-message {
  color: #1f2937;
}

body.theme-light .btn-confirm-cancel {
  background: #ffffff;
  color: #374151;
  border-color: #d1d5db;
}

body.theme-light .btn-confirm-cancel:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

body.theme-light .btn-confirm-ok {
  color: #ffffff;
}

/* Member items */
body.theme-light .member-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

body.theme-light .member-item:hover {
  background: #f9fafb;
}

body.theme-light .member-name {
  color: #1f2937;
}

body.theme-light .member-status {
  background: #22c55e;
  color: #fff;
}

/* Issue #377, #378, #379: Light mode owner controls */
body.theme-light .owner-controls-section {
  border-top-color: #e5e7eb;
}

body.theme-light .owner-controls-section h4 {
  color: #1f2937;
}

body.theme-light .owner-controls-desc {
  color: #6b7280;
}

body.theme-light .member-actions button {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #6b7280;
}

body.theme-light .member-actions button:hover {
  background: #f3f4f6;
  color: #1f2937;
}

body.theme-light .member-actions .btn-remove-member:hover {
  background: rgba(239, 68, 68, 0.1);
}

body.theme-light .member-actions .btn-transfer-ownership:hover {
  background: rgba(245, 158, 11, 0.1);
}

/* Annotation lines in edit modal */
body.theme-light .annotation-line {
  background: #f9fafb;
  border-color: #d1d5db;
}

body.theme-light .annotation-text {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}

body.theme-light .annotation-text:focus {
  border-color: #1d4ed8;
}

body.theme-light .annotation-item {
  background: #f9fafb;
}

body.theme-light .annotation-item-input {
  background: #ffffff;
  color: #1f2937;
}

/* Annotation line container */
body.theme-light .annotation-line-container {
  background: #f9fafb;
  border-color: #e5e7eb;
}

/* Band member chips on song cards */
body.theme-light .band-member-chip {
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.2);
  color: #1f2937;
}

body.theme-light .song-band-members {
  color: #374151;
  background: rgba(29, 78, 216, 0.05);
}

/* Song bank cards */
body.theme-light .song-bank-card {
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.theme-light .song-bank-card:hover {
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Vote buttons */
body.theme-light .btn-vote {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}

/* Search bar and inputs in toolbar */
body.theme-light .search-bar input {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}

body.theme-light .search-bar input::placeholder {
  color: #9ca3af;
}

body.theme-light .setlist-selector select {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}

/* Actions bar buttons - secondary buttons need visible text */
body.theme-light .btn-secondary {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #1d4ed8;
}

body.theme-light .btn-secondary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* Time signature section */
body.theme-light .time-sig-section {
  background: #f3f4f6;
}

body.theme-light .time-sig-section select,
body.theme-light .time-sig-section input {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}

/* Band member management */
body.theme-light .band-member-item {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

body.theme-light .band-member-name {
  color: #1f2937;
}

body.theme-light .band-member-role {
  color: #4b5563;
}

/* Detail rows in modals */
body.theme-light .detail-row {
  border-bottom-color: #e5e7eb;
}

body.theme-light .detail-label {
  color: #6b7280;
}

body.theme-light .detail-value {
  color: #1f2937;
}

body.theme-light .detail-notes {
  background: #f3f4f6;
  color: #1f2937;
}

/* View tabs */
body.theme-light .view-tabs {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}

body.theme-light .view-tab {
  color: #6b7280;
}

body.theme-light .view-tab:hover {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.05);
}

body.theme-light .view-tab.tab-active {
  color: #1d4ed8;
}

/* Song bank controls */
body.theme-light .song-bank-controls {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}

body.theme-light .song-bank-controls select {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}

/* Band items */
body.theme-light .band-item {
  background: #f9fafb;
  border-color: #e5e7eb;
}

body.theme-light .band-item:hover {
  border-color: #1d4ed8;
}

body.theme-light .band-name {
  color: #1f2937;
}

body.theme-light .band-meta {
  color: #6b7280;
}

/* Band dropdown in header */
body.theme-light .band-dropdown option {
  background: #ffffff;
  color: #1f2937;
}

/* Loading overlay */
body.theme-light .loading-overlay {
  background: rgba(255, 255, 255, 0.95);
}

body.theme-light .loading-text {
  color: #1f2937;
}

body.theme-light .loading-spinner {
  border-color: rgba(29, 78, 216, 0.2);
  border-top-color: #1d4ed8;
}

/* Practice mode controls */
body.theme-light .practice-controls {
  background: rgba(0, 0, 0, 0.03);
  border-color: #e5e7eb;
}

body.theme-light .practice-control-label {
  color: #374151;
}

body.theme-light .practice-song-name {
  color: #1f2937;
}

body.theme-light .practice-song-meta {
  color: #6b7280;
}

/* Tap tempo display */
body.theme-light .tap-tempo-display {
  background: #f3f4f6;
  color: #1f2937;
}

/* Empty state */
body.theme-light .empty-state {
  color: #6b7280;
}

/* Welcome state */
body.theme-light .welcome-state {
  background: #ffffff;
}

body.theme-light .welcome-title {
  color: #1f2937;
}

body.theme-light .welcome-subtitle {
  color: #6b7280;
}

body.theme-light .welcome-tips {
  background: #f3f4f6;
}

body.theme-light .tip-text {
  color: #374151;
}

/* Settings sections */
body.theme-light .setting-group label {
  color: #374151;
}

/* Actions bar and setlist selector backgrounds */
body.theme-light .actions-bar,
body.theme-light .setlist-selector,
body.theme-light .search-bar {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}

/* Main content area */
body.theme-light .main-content {
  background: #f8fafc;
}

/* Metronome controls in count-in overlay */
body.theme-light .metronome-controls {
  background: rgba(0, 0, 0, 0.1);
}

/* Prompt input in dialogs */
body.theme-light .prompt-input {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}

body.theme-light .prompt-input:focus {
  border-color: #1d4ed8;
}

/* Sync status text readability */
body.theme-light .sync-status {
  filter: brightness(0.8);
}

.btn-primary { background: var(--success); color: var(--text-strong); border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; min-height: 50px; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-primary svg, .btn-primary i { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-secondary { background: var(--bg-secondary); color: var(--primary); border: 2px solid var(--primary); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-secondary svg, .btn-secondary i { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-danger { background: var(--bg); color: var(--danger); border-color: var(--danger); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-danger svg, .btn-danger i { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-danger:hover { background: var(--danger); color: var(--text-strong); }
.btn-stop { background: var(--danger); color: var(--text-strong); border: none; padding: 1rem 2rem; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; min-height: 60px; margin-top: 2rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-stop svg, .btn-stop i { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.setlist-selector, .actions-bar, .search-bar { display: flex; gap: 0.5rem; padding: 1rem; background: var(--bg-secondary); border-bottom: 1px solid var(--border); align-items: center; }
.setlist-selector select { flex: 1; padding: 0.75rem; border: 2px solid var(--border); border-radius: 8px; min-width: 0; text-overflow: ellipsis; }
.actions-bar { flex-wrap: wrap; }
.search-bar { flex-wrap: wrap; }
.search-label { font-size: 0.9rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.search-bar input { flex: 1; min-width: 150px; padding: 0.75rem; border: 2px solid var(--border); border-radius: 8px; }
.search-bar input:focus { outline: none; border-color: var(--primary); }

/* Setlist stats bar - Issue #352 */
.setlist-stats {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}
.setlist-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.setlist-stats .stat-item i {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
.setlist-stats .stat-value {
  font-weight: 600;
  color: var(--text);
}

.main-content { flex: 1; padding: 1rem; max-width: 1200px; width: 100%; margin: 0 auto; padding-bottom: 180px; position: relative; z-index: 1; }
.song-list { display: flex; flex-direction: column; gap: 1rem; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.song-card {
  background: var(--bg-secondary, #1a1f2e);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  /* cursor: move removed - only drag handle is draggable (issue #249) */
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  will-change: transform;
  contain: layout style;
  touch-action: pan-y;
  position: relative;
}
.song-card:hover {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* Light theme card styling */
body.theme-light .song-card {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06) !important;
}
body.theme-light .song-card:hover {
  background: #ffffff !important;
  border-color: #9ca3af !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15) !important;
}

.song-card.selected { border: 3px solid var(--primary); }
.song-card.dragging { opacity: 0.8; cursor: grabbing; transform: scale(1.02) rotate(1deg); box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 1000; transition: none; }
.song-card.drag-over { border-top: 3px solid var(--primary); transform: translateY(4px); }

/* Small card size - compact 2-line layout for easier reordering */
.song-card.card-small { padding: 0.5rem 0.75rem; }
.song-card.card-small .song-header { margin-bottom: 0; }
.song-card.card-small .song-title { font-size: 1rem; margin-bottom: 0; }
.song-card.card-small .song-artist { font-size: 0.8rem; margin-bottom: 0; }
.song-card.card-small .song-proficiency,
.song-card.card-small .song-tuning,
.song-card.card-small .song-badges,
.song-card.card-small .song-notes,
.song-card.card-small .song-actions,
.song-card.card-small .annotation-lines { display: none; }
.song-card.card-small .drag-handle { min-width: 36px; min-height: 36px; padding: 0.25rem; font-size: 1rem; }
.song-card.card-small .song-position { font-size: 0.8rem; }
/* Compact BPM badge inline with title for small cards */
.song-card.card-small .compact-bpm {
  display: inline-flex;
  background: var(--badge-bpm-bg);
  color: var(--badge-bpm-text);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}
.song-card:not(.card-small) .compact-bpm { display: none; }

.song-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; gap: 0.5rem; }
.drag-handle { font-size: 1.2rem; color: var(--text-light); cursor: grab; user-select: none; -webkit-user-select: none; line-height: 1; padding: 0.5rem; touch-action: none; -webkit-touch-callout: none; min-width: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; position: relative; border-radius: 8px; transition: background 0.2s ease; background: transparent; border: none; }
.drag-handle:active { cursor: grabbing; background: rgba(110, 231, 255, 0.1); }
.drag-handle:focus { outline: 2px solid var(--primary); outline-offset: 2px; background: rgba(110, 231, 255, 0.15); }
.drag-handle.long-press-active { background: rgba(110, 231, 255, 0.2); animation: pulse-drag 0.6s ease-in-out; }
@keyframes pulse-drag { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.song-position { font-size: 0.9rem; color: var(--text-light); font-weight: 600; }
.song-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; color: var(--text-strong); }
.song-artist { font-size: 0.9rem; color: var(--text) !important; margin-bottom: 0.5rem; }
.song-proficiency { font-size: 1rem; margin-bottom: 0.75rem; color: var(--warning); font-weight: 600; }
.song-tuning { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--accent); font-weight: 600; }
.song-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.badge-bpm { background: var(--badge-bpm-bg); color: var(--badge-bpm-text); }
.badge-time { background: var(--badge-time-bg); color: var(--badge-time-text); }
.badge-key { background: var(--badge-key-bg); color: var(--badge-key-text); }

/* Badge colors - Dark Theme */
body.theme-dark {
  --badge-bpm-bg: #DBEAFE;
  --badge-bpm-text: #1e40af;
  --badge-time-bg: #FEF3C7;
  --badge-time-text: #92400E;
  --badge-key-bg: #CFFAFE;
  --badge-key-text: #0369a1;
}

/* Badge colors - Light Theme */
body.theme-light {
  --badge-bpm-bg: #dbeafe;
  --badge-bpm-text: #1e40af;
  --badge-time-bg: #fef3c7;
  --badge-time-text: #92400e;
  --badge-key-bg: #ccfbf1;
  --badge-key-text: #0f766e;
}

/* Light theme button text adjustments */
body.theme-light .btn-count-in,
body.theme-light .btn-practice {
  color: #ffffff;
}

body.theme-light .btn-primary {
  color: #ffffff;
}
.song-notes { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.75rem; padding: 0.5rem; background: var(--bg); border-radius: 6px; word-wrap: break-word; overflow-wrap: break-word; white-space: pre-wrap; }
.song-in-setlists { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.song-in-setlists svg { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.6; }
.song-in-setlists .setlist-tag { background: rgba(102, 126, 234, 0.12); color: var(--primary); padding: 0.2rem 0.5rem; border-radius: 10px; font-size: 0.7rem; font-weight: 500; white-space: nowrap; }
.song-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-count-in { background: var(--success); color: var(--text-strong); border: none; padding: 0.54rem 1.09rem; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; min-height: 43px; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-count-in svg, .btn-count-in i { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-practice { background: var(--warning); color: var(--text-strong); border: none; padding: 0.54rem 1.09rem; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; min-height: 43px; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-practice svg, .btn-practice i { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-edit { background: rgba(102, 126, 234, 0.1); color: var(--primary); border: 2px solid var(--primary); padding: 0.75rem; border-radius: 8px; font-size: 1rem; cursor: pointer; min-height: 60px; min-width: 60px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-edit svg, .btn-edit i { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-edit:hover { background: var(--primary); color: var(--text-strong); }
.btn-details { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 2px solid var(--success); padding: 0.75rem; border-radius: 8px; font-size: 1rem; cursor: pointer; min-height: 60px; min-width: 60px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-details svg, .btn-details i { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-details:hover { background: var(--success); color: var(--text-strong); }
.delete-song-btn { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: none; font-size: 1rem; width: 44px; height: 44px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.delete-song-btn svg, .delete-song-btn i { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.delete-song-btn:hover { background: var(--danger); color: var(--text-strong); transform: scale(1.1); }

/* Band Members Display on Song Cards */
.band-members-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.band-member-chip { display: inline-flex; align-items: center; gap: 0.41rem; padding: 0.41rem 0.89rem; background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.2); border-radius: 20px; font-size: 1rem; font-weight: 500; color: var(--text); transition: all 0.2s; }
.band-member-chip:hover { background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.3); transform: translateY(-1px); }
.band-member-emoji { font-size: 1.18rem; line-height: 1; }
.band-member-name { line-height: 1; }

/* Song Card Annotations Display */
.song-annotations { background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05)); border: 1px solid rgba(37, 99, 235, 0.15); border-radius: 8px; padding: 0.75rem; margin-bottom: 0.75rem; }
.song-annotations-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.annotations-icon { font-size: 1rem; }
.annotations-label { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.song-annotations-list { display: flex; flex-direction: column; gap: 0.35rem; }
.song-annotation-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--text-strong); line-height: 1.4; }
.annotation-bullet { font-weight: 600; color: var(--primary); min-width: 20px; }
.annotation-text-display { flex: 1; color: var(--text-strong); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-light); }
.welcome-state { background: var(--card-bg); border-radius: 16px; box-shadow: var(--card-shadow); max-width: 500px; margin: 2rem auto; }
.welcome-icon { font-size: 4rem; margin-bottom: 1rem; }
.welcome-title { font-size: 1.5rem; font-weight: 700; color: var(--text-strong); margin: 0 0 0.5rem 0; }
.welcome-subtitle { font-size: 1rem; color: var(--text-light); margin: 0 0 1.5rem 0; }
.welcome-tips { text-align: left; background: var(--bg-secondary); padding: 1rem 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; }
.welcome-tip { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.welcome-tip:last-child { margin-bottom: 0; }
.tip-icon { font-size: 1.2rem; flex-shrink: 0; }
.tip-text { font-size: 0.9rem; color: var(--text-strong); line-height: 1.4; }
.welcome-action-btn { padding: 0.75rem 2rem; font-size: 1rem; }
.count-in-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.count-in-content { text-align: center; color: var(--text-strong); padding: 2rem; max-width: 600px; width: 100%; }
.metronome-controls { background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 12px; margin-bottom: 1.5rem; }
.tempo-control input[type="range"] { -webkit-appearance: none; appearance: none; height: 8px; background: rgba(255,255,255,0.3); border-radius: 5px; outline: none; }
.tempo-control input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; background: var(--success); border-radius: 50%; cursor: pointer; }
.tempo-control input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; background: var(--success); border-radius: 50%; cursor: pointer; border: none; }
.bar-counter { font-size: 1.2rem; margin-bottom: 1rem; opacity: 0.8; }
.beat-indicator { font-size: 4rem; margin: 1rem 0; animation: pulse 0.3s ease-out; }
.beat-number { font-size: 8rem; font-weight: 900; line-height: 1; margin: 1rem 0; }
.song-info .song-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.song-info .song-meta { font-size: 1.2rem; opacity: 0.8; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0; } 50% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-content { background: var(--bg-secondary); border-radius: 12px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border); }
.modal-body { padding: 1rem; }
.close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.tap-tempo-modal { max-width: 400px; }
.btn-tap-tempo { background: linear-gradient(135deg, #1e40af, #0c4a6e); color: #e2e8f0; border: none; padding: 3rem; border-radius: 50%; font-size: 1.5rem; font-weight: 700; cursor: pointer; width: 200px; height: 200px; margin: 2rem auto; display: block; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4); transition: all 0.1s; }
.btn-tap-tempo:active { transform: scale(0.95); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.6); }
.tap-tempo-display { text-align: center; font-size: 1.5rem; font-weight: 700; padding: 1rem; margin: 1rem 0; border-radius: 8px; background: var(--bg); min-height: 60px; display: flex; align-items: center; justify-content: center; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 2px solid var(--border); border-radius: 8px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.setting-group { margin-bottom: 1.5rem; }
.setting-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }

/* Time Signature Sections */
.time-sig-section { background: var(--bg); padding: 0.75rem; border-radius: 8px; margin-bottom: 0.5rem; display: flex; gap: 0.5rem; align-items: center; }
.time-sig-section select { flex: 1; padding: 0.5rem; border: 2px solid var(--border); border-radius: 6px; }
.time-sig-section input { width: 80px; padding: 0.5rem; border: 2px solid var(--border); border-radius: 6px; }
.time-sig-section button { background: var(--danger); color: white; border: none; padding: 0.5rem; border-radius: 6px; cursor: pointer; min-width: 40px; }
.time-sig-section-label { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.25rem; }

/* Band Members Management */
.band-member-item { background: var(--bg); padding: 0.75rem; border-radius: 8px; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; }
.band-member-name { font-weight: 600; font-size: 1rem; color: var(--text); }
.band-member-role { font-size: 0.85rem; color: var(--text-light); margin-top: 0.25rem; }
.delete-member-btn { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: none; font-size: 1rem; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; }
.delete-member-btn:hover { background: var(--danger); color: #e2e8f0; }
.band-member-form { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.band-member-form input { flex: 2; min-width: 150px; }
.band-member-form select { flex: 1; min-width: 120px; }

/* Song Details Modal */
.detail-section { margin-bottom: 1.5rem; }
.detail-section h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.75rem; border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; }
.detail-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: var(--text-light); }
.detail-value { color: var(--text); text-align: right; }

/* View Tabs */
.view-tabs { display: flex; gap: 0; background: var(--bg-secondary); border-bottom: 2px solid var(--border); padding: 0 1rem; }
.view-tab { background: transparent; border: none; padding: 1rem 1.5rem; font-size: 1rem; font-weight: 600; color: var(--text-light); cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; }
.view-tab:hover { color: var(--primary); background: rgba(37, 99, 235, 0.05); }
.view-tab.tab-active { color: var(--primary); border-bottom-color: var(--primary); }
.view-container { display: block; }

/* Song Bank */
.song-bank-controls { display: flex; gap: 0.5rem; padding: 1rem; background: var(--bg-secondary); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.song-bank-controls select { flex: 1; min-width: 200px; padding: 0.75rem; border: 2px solid var(--border); border-radius: 8px; }
.song-bank-card { background: var(--bg-secondary); border: 2px solid var(--border-strong); border-radius: 12px; padding: 1rem; box-shadow: 0 2px 8px var(--shadow); transition: all 0.2s; margin-bottom: 1rem; }
.song-bank-card:hover { box-shadow: 0 4px 16px var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.vote-score { font-size: 1.5rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 20px; background: var(--bg); }
.vote-positive { color: var(--vote-positive-text, var(--success)); background: var(--vote-positive-bg, #D1FAE5); }
.vote-negative { color: var(--vote-negative-text, var(--danger)); background: var(--vote-negative-bg, #FEE2E2); }

body.theme-dark {
  --vote-positive-bg: #D1FAE5;
  --vote-positive-text: #065f46;
  --vote-negative-bg: #FEE2E2;
  --vote-negative-text: #7f1d1d;
}

body.theme-light {
  --vote-positive-bg: #86efac;
  --vote-positive-text: #14532d;
  --vote-negative-bg: #fca5a5;
  --vote-negative-text: #7f1d1d;
}
.song-bank-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.vote-buttons { display: flex; gap: 0.5rem; flex: 1; }
.btn-vote { background: var(--bg-secondary); border: 2px solid var(--border); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; flex: 1; min-height: 44px; }
.btn-upvote:hover { border-color: var(--success); color: var(--success); background: rgba(16, 185, 129, 0.1); }
.btn-downvote:hover { border-color: var(--danger); color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.btn-upvote.vote-active { border-color: var(--success); color: var(--text-strong); background: var(--success); }
.btn-downvote.vote-active { border-color: var(--danger); color: var(--text-strong); background: var(--danger); }
.btn-promote { background: var(--success); color: var(--text-strong); border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; flex: 2; min-height: 50px; }
.btn-promote:hover { background: var(--success); opacity: 0.9; }
.delete-bank-song-btn { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: none; font-size: 1.2rem; width: 44px; height: 44px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.delete-bank-song-btn:hover { background: var(--danger); color: var(--text-strong); transform: scale(1.1); }

.detail-notes { background: var(--bg); padding: 1rem; border-radius: 8px; color: var(--text); white-space: pre-wrap; }

/* Set Break Dividers */
.set-break-divider { background: linear-gradient(135deg, #1e40af, #0c4a6e); color: #e2e8f0; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3); transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, opacity 0.2s ease; margin-bottom: 1rem; -webkit-touch-callout: none; -webkit-user-select: none; -webkit-transform: translateZ(0); -webkit-backface-visibility: hidden; will-change: transform; touch-action: pan-y; }
.set-break-divider:hover { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); }
.set-break-divider.dragging { opacity: 0.8; cursor: grabbing; transform: scale(1.02) rotate(1deg); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5); z-index: 1000; transition: none; }
.set-break-divider.drag-over { border-top: 3px solid white; transform: translateY(4px); }
.set-break-line { display: flex; align-items: center; gap: 1rem; }
.set-break-line .drag-handle { cursor: grab; }
.set-break-line .drag-handle:active { cursor: grabbing; }
.set-break-content { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.set-break-label { font-size: 1.25rem; font-weight: 700; }
.set-break-duration { font-size: 0.9rem; opacity: 0.9; }
.set-break-divider .drag-handle { color: rgba(255, 255, 255, 0.9); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; }
.set-break-divider .icon-btn { background: rgba(255, 255, 255, 0.2); color: #e2e8f0; }
.set-break-divider .icon-btn:hover { background: var(--danger); }
.btn-edit-break { background: rgba(255, 255, 255, 0.2); color: #e2e8f0; border: none; font-size: 1.2rem; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; }
.btn-edit-break:hover { background: rgba(255, 255, 255, 0.3); }

/* Annotation Lines in Edit Modal */
.annotation-item { background: var(--bg); border: 2px solid var(--border); border-radius: 8px; padding: 0.75rem; margin-bottom: 0.75rem; transition: all 0.2s; }
.annotation-item:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1); }
.annotation-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.annotation-item-number { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.delete-annotation-btn { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: none; width: 44px; height: 44px; border-radius: 6px; font-size: 1rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.delete-annotation-btn:hover { background: var(--danger); color: #e2e8f0; transform: scale(1.1); }
.annotation-item-input { width: 100%; padding: 0.5rem 0.75rem; border: 2px solid var(--border); border-radius: 6px; font-size: 0.9rem; transition: border-color 0.2s; }
.annotation-item-input:focus { outline: none; border-color: var(--primary); }
.annotation-item-input::placeholder { color: #9ca3af; }
#editAnnotationLines { max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#editAnnotationLines::-webkit-scrollbar { width: 8px; }
#editAnnotationLines::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
#editAnnotationLines::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
#editAnnotationLines::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* Band Members on Card */
.song-band-members { font-size: 1rem; color: white; margin-top: 0.5rem; padding: 0.5rem; background: rgba(103, 126, 234, 0.05); border-radius: 6px; line-height: 1.4; }

/* Annotation Lines - Simplified */
.annotation-line-container { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; margin-top: 0.75rem; }
.annotation-controls { margin-bottom: 0.5rem; }
.btn-add-line { background: rgba(37, 99, 235, 0.1); color: var(--primary); border: 2px solid var(--primary); padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-add-line:hover { background: var(--primary); color: #e2e8f0; }
.annotation-line { background: #1a1f2e; border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.annotation-line:last-child { margin-bottom: 0; }
.annotation-text { flex: 1; border: 1px solid var(--border); background: #1a1f2e; font-size: 0.9rem; padding: 0.5rem; border-radius: 4px; color: white; }
.annotation-text:focus { outline: none; border-color: var(--primary); }
.line-delete-btn { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: none; width: 44px; height: 44px; border-radius: 4px; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.line-delete-btn:hover { background: var(--danger); color: #e2e8f0; transform: scale(1.1); }

/* Practice Modal Styles */
.practice-song-info { text-align: center; margin-bottom: 1.5rem; }
.practice-song-name { margin: 0; font-size: 1.5rem; color: var(--text); }
.practice-song-meta { margin: 0.5rem 0 0 0; color: var(--text-light); }
.practice-music-container { display: none; margin-bottom: 1.5rem; }
#practiceYoutubePlayer { margin-bottom: 0.5rem; }
#practiceYoutubePlayer iframe { width: 100%; height: 315px; border-radius: 12px; }
.practice-music-link { display: inline-block; margin-top: 0.5rem; padding: 0.5rem 1rem; background: #1DB954; color: white; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.practice-controls { background: rgba(255,255,255,0.05); padding: 1rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.1); }
.practice-control-group { margin-bottom: 1rem; }
.practice-control-group:last-child { margin-bottom: 0; }
.practice-control-label { font-size: 0.9rem; margin-bottom: 0.5rem; display: block; font-weight: 600; color: var(--text); }
.practice-control-value { color: var(--primary); }
.practice-control-slider { width: 100%; }
.practice-display-area { text-align: center; }
.practice-bar-counter { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; color: #667eea; }
.practice-beat-display { font-size: 4rem; font-weight: bold; margin: 1rem 0; color: #667eea; }
.practice-btn-start { width: 100%; padding: 1rem; font-size: 1.1rem; margin-bottom: 0.5rem; }
.practice-btn-stop { width: 100%; padding: 1rem; font-size: 1.1rem; display: none; }

/* Screen reader only class for accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Prevent text selection on draggable elements */
.song-card[draggable="true"], .set-break-divider[draggable="true"] { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.dragging * { -webkit-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important; }

/* Focus styles for accessibility */
button:focus, input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* High contrast mode support */
@media (prefers-contrast: high) { :root { --border: #000000; --text-light: #000000; } }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* Landscape mode optimizations for iPad/iPhone */
@media (orientation: landscape) and (max-height: 500px) {
  .main-content { padding-bottom: 100px; }
  .song-card { padding: 0.75rem; }
  .drag-handle { min-width: 44px; min-height: 44px; }
  .modal-content { max-height: 85vh; }
}

/* Header Dropdown Menu */
.header-menu-container { position: relative; overflow: visible; }
.header-dropdown { position: absolute; top: 100%; right: 0; margin-top: 0.5rem; background: #1a1f2e; border: 2px solid var(--border); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); min-width: 200px; z-index: 3000; overflow-y: auto; max-height: calc(100vh - 80px); }
.dropdown-item { width: 100%; background: none; border: none; padding: 0.75rem 1rem; text-align: left; color: var(--text); font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: background 0.2s; border-bottom: 1px solid var(--border); }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(103, 126, 234, 0.1); }
.dropdown-item.logout-item { color: var(--danger); }
.dropdown-item.logout-item:hover { background: rgba(239, 68, 68, 0.1); }
.dropdown-icon { font-size: 1.2rem; width: 24px; text-align: center; }
.dropdown-divider { height: 1px; background: var(--border); margin: 0.25rem 0; }
.dropdown-section-label { padding: 0.5rem 1rem 0.25rem; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Portrait mode fixes for iPhone */
@media (max-width: 480px) and (orientation: portrait) {
  .modal { padding: 0.5rem; align-items: flex-start; padding-top: 1rem; }
  .modal-content { max-height: 95vh; margin: 0; }
  .modal-body { padding: 0.75rem; }
  .form-group { margin-bottom: 0.75rem; }
}

@media (max-width: 480px) { .app-header h1 { font-size: 1.25rem; } .btn-count-in { font-size: 0.9rem; } .beat-number { font-size: 6rem; } }

/* Mobile portrait - ensure hamburger menu is always visible (#252) */
@media (max-width: 480px) and (orientation: portrait) {
  .header-content { flex-wrap: nowrap; }
  .header-right { flex-shrink: 1; min-width: 0; }
  .header-left { flex-shrink: 0; }
  .header-menu-container { flex-shrink: 0; }
  .user-display { display: none; }
  .band-dropdown { max-width: 100px; }
}

/* Mobile - setlist selector layout fix (#357) */
@media (max-width: 480px) {
  .setlist-selector { flex-wrap: wrap; }
  .setlist-selector select { flex: 1 1 100%; max-width: 100%; order: -1; }
  .setlist-selector button { flex: 0 0 auto; }
}

/* Mobile landscape - scrollable dropdown menu (#254) */
@media (max-height: 500px) and (orientation: landscape) {
  .header-dropdown {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .user-display { display: none; }
}

/* Toast Notifications */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 400px; pointer-events: none; }
.toast { background: #1a1f2e; border-radius: 8px; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 0.75rem; opacity: 0; transform: translateX(400px); transition: all 0.3s ease; pointer-events: auto; border-left: 4px solid var(--primary); }
.toast-show { opacity: 1; transform: translateX(0); }
.toast-hide { opacity: 0; transform: translateX(400px); }
.toast-icon { font-size: 1.5rem; font-weight: bold; flex-shrink: 0; }
.toast-message { flex: 1; font-size: 0.95rem; color: var(--text); word-wrap: break-word; }
.toast-close { background: none; border: none; font-size: 1.2rem; color: var(--text-light); cursor: pointer; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: all 0.2s; }
.toast-close:hover { background: var(--bg); color: var(--text); }
.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info { border-left-color: var(--primary); }
.toast-info .toast-icon { color: var(--primary); }

/* Confirmation Dialog */
.confirm-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity 0.2s ease; }
.confirm-overlay.confirm-show { opacity: 1; }
.confirm-dialog { background: #1a1f2e; border-radius: 12px; padding: 1.5rem; max-width: 400px; width: 100%; box-shadow: 0 8px 24px rgba(0,0,0,0.2); transform: scale(0.9); transition: transform 0.2s ease; }
.confirm-overlay.confirm-show .confirm-dialog { transform: scale(1); }
.confirm-message { font-size: 1rem; color: var(--text); margin-bottom: 1.5rem; line-height: 1.5; }
.confirm-buttons { display: flex; gap: 0.75rem; justify-content: flex-end; }
.btn-confirm-cancel { background: #1a1f2e; color: var(--text-light); border: 2px solid var(--border); padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-confirm-cancel:hover { background: var(--bg); border-color: var(--text-light); }
.btn-confirm-ok { background: var(--primary); color: #e2e8f0; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-confirm-ok:hover { background: #1d4ed8; }
.prompt-input { width: 100%; padding: 0.75rem; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; margin-bottom: 1rem; }
.prompt-input:focus { outline: none; border-color: var(--primary); }

@media (max-width: 480px) { .toast-container { right: 10px; left: 10px; max-width: none; } .toast { padding: 0.75rem; } }

/* Sync Status & Offline Indicator */
.sync-status {
    font-size: 1.2rem;
    margin-left: 0.5rem;
    cursor: help;
}



.offline-indicator {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

/* Band Switcher */
.band-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.75rem;
}

.band-dropdown {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 120px;
    max-width: 180px;
    cursor: pointer;
    transition: all 0.2s;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.band-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.15);
}

.band-dropdown option {
    background: #1a1f2e;
    color: white;
}

.create-band-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-band-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}



/* Band Management Modal */
.band-management-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.band-item {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.band-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.band-item.active-band {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

.band-info {
    flex: 1;
}

.band-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.band-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.btn-switch-band {
    background: var(--primary);
    color: #e2e8f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-switch-band:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-leave-band {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 2px solid var(--danger);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-leave-band:hover {
    background: var(--danger);
    color: #e2e8f0;
    transform: translateY(-1px);
}

.band-members-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.band-members-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-item {
    background: var(--surface);
    padding: 0.875rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    transition: background 0.2s;
}

.member-item:hover {
    background: var(--surface-hover, rgba(255,255,255,0.05));
}

.member-name {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.member-status {
    background: var(--success);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Issue #377, #378, #379: Owner badge and controls */
.owner-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.member-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.member-actions button {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-actions button:hover {
    background: var(--surface);
    color: var(--text);
    transform: translateY(-1px);
}

.member-actions .btn-remove-member:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.member-actions .btn-transfer-ownership:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.member-actions button svg {
    width: 16px;
    height: 16px;
}

.owner-controls-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.owner-controls-section h4 {
    color: var(--text);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.owner-controls-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
}

.btn-delete-band {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.btn-delete-band svg {
    width: 18px;
    height: 18px;
}

.btn-owner-actions {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    padding: 0.35rem !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-owner-actions:hover {
    background: var(--surface) !important;
    color: var(--text) !important;
}

.btn-owner-actions svg {
    width: 16px;
    height: 16px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 17, 21, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(110, 231, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Bandless Landing Page (Issue #259) */
.bandless-landing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bandless-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px var(--shadow);
    border: 1px solid var(--border);
}

.bandless-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.bandless-icon svg {
    width: 40px;
    height: 40px;
    color: var(--bg);
    stroke-width: 2;
}

.bandless-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 0.5rem;
}

.bandless-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.bandless-options {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.bandless-option {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bandless-option .option-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.bandless-option .option-content strong {
    color: var(--text-strong);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
}

.bandless-option .option-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.bandless-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.bandless-divider::before,
.bandless-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.bandless-action-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bandless-action-btn svg {
    width: 20px;
    height: 20px;
}

.bandless-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--text);
}

.btn-link svg {
    width: 16px;
    height: 16px;
}

/* Hide main app when bandless landing is visible */
body.bandless-mode .setlist-selector,
body.bandless-mode .actions-bar,
body.bandless-mode .view-tabs,
body.bandless-mode #setlistView,
body.bandless-mode #songBankView,
body.bandless-mode .band-switcher {
    display: none !important;
}

/* ============================================
   Bug Report Modal (Issue #314)
   ============================================ */

.bug-report-modal {
    max-width: 500px;
}

.bug-report-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.bug-report-modal .form-group {
    margin-bottom: 1.25rem;
}

.bug-report-modal label {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.bug-report-modal label .required {
    color: var(--danger);
}

.bug-report-modal input[type="text"],
.bug-report-modal textarea,
.bug-report-modal select {
    width: 100%;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bug-report-modal input[type="text"]:focus,
.bug-report-modal textarea:focus,
.bug-report-modal select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.2);
}

.bug-report-modal textarea {
    resize: vertical;
    min-height: 100px;
}

.bug-report-modal .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bug-report-modal .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.bug-report-modal .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.bug-report-modal .help-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 26px;
}

.context-preview {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.context-preview .btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.context-preview .btn-link:hover {
    text-decoration: underline;
}

.context-preview .btn-link svg {
    width: 14px;
    height: 14px;
}

.context-preview pre {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    overflow-x: auto;
    max-height: 150px;
    white-space: pre-wrap;
    word-break: break-word;
}

.bug-report-modal .modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.bug-report-modal .modal-footer button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bug-report-modal .modal-footer .btn-primary {
    background: var(--primary);
    color: var(--bg);
    border: none;
}

.bug-report-modal .modal-footer .btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.bug-report-modal .modal-footer .btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.bug-report-modal .modal-footer .btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}

/* Severity indicator colors */
.bug-report-modal select option[value="low"] {
    color: var(--success);
}

.bug-report-modal select option[value="medium"] {
    color: var(--warning);
}

.bug-report-modal select option[value="high"] {
    color: #f97316;
}

.bug-report-modal select option[value="critical"] {
    color: var(--danger);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .bug-report-modal {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .bug-report-modal .modal-footer {
        flex-direction: column;
    }

    .bug-report-modal .modal-footer button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   ChordPro Rendering Styles (Issue #337)
   ============================================================ */

/* Container for ChordPro rendered content */
.chordpro-container {
    font-family: 'Roboto Mono', 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Header with metadata */
.chordpro-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.chordpro-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 0.25rem;
}

.chordpro-artist {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.chordpro-key {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

/* Individual line with chords above lyrics */
.chordpro-line {
    margin-bottom: 0.5rem;
    min-height: 1.2em;
}

.chordpro-empty {
    height: 1em;
}

/* Chord row - positioned above lyrics */
.chordpro-chords {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.02em;
    height: 1.3em;
    white-space: pre;
}

/* Lyrics row */
.chordpro-lyrics {
    color: var(--text);
    white-space: pre;
}

/* Individual chord span */
.chordpro-chord {
    color: var(--primary);
    font-weight: 700;
}

/* Spacing spans (invisible, for alignment) */
.chordpro-space {
    visibility: hidden;
}

/* Section containers */
.chordpro-section {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 8px;
}

.chordpro-section-label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

/* Chorus section styling */
.chordpro-chorus {
    background: rgba(110, 231, 255, 0.08);
    border-left: 3px solid var(--primary);
}

body.theme-light .chordpro-chorus {
    background: rgba(29, 78, 216, 0.06);
}

/* Verse section styling */
.chordpro-verse {
    background: transparent;
    border-left: 3px solid var(--border);
}

/* Bridge section styling */
.chordpro-bridge {
    background: rgba(249, 115, 22, 0.08);
    border-left: 3px solid var(--accent);
}

body.theme-light .chordpro-bridge {
    background: rgba(234, 88, 12, 0.06);
}

/* Intro/Outro section styling */
.chordpro-intro,
.chordpro-outro {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--text-light);
}

body.theme-light .chordpro-intro,
body.theme-light .chordpro-outro {
    background: rgba(0, 0, 0, 0.02);
}

/* Comment/instruction styling */
.chordpro-comment {
    font-style: italic;
    color: var(--text-light);
    padding: 0.5rem 0;
    font-size: 0.9em;
}

/* ChordPro detection indicator (#336) */
.chordpro-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    background: rgba(110, 231, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
}

body.theme-light .chordpro-indicator {
    background: rgba(29, 78, 216, 0.08);
}

.chordpro-indicator-text {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chordpro-indicator-text svg {
    width: 14px;
    height: 14px;
}

.chordpro-toggle-btns {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.chordpro-toggle-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.chordpro-toggle-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}

.chordpro-toggle-btn.active {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.chordpro-help-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.chordpro-help-link svg {
    width: 12px;
    height: 12px;
}

/* ChordPro preview container in edit modal */
.chordpro-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

/* Mobile responsive for ChordPro */
@media (max-width: 480px) {
    .chordpro-container {
        font-size: 0.85rem;
    }

    .chordpro-section {
        padding: 0.75rem;
        margin: 1rem 0;
    }

    .chordpro-indicator {
        flex-wrap: wrap;
    }

    .chordpro-toggle-btns {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .chordpro-toggle-btn {
        flex: 1;
        text-align: center;
    }
}
