/* 4-V Methode - Chor-Annotationstool Styles */

:root {
  --bg: #fafaf9;
  --bg-soft: #f5f5f4;
  --surface: #ffffff;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-soft: #78716c;
  
  --v1: #7C3AED;
  --v1-bg: #F3EEFE;
  --v2: #0891B2;
  --v2-bg: #ECFAFC;
  --v3: #D97706;
  --v3-bg: #FEF6E7;
  --v4: #059669;
  --v4-bg: #ECFDF5;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.12);
  
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

html, body, #root {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

input, textarea, select {
  font-family: inherit;
}

/* ================= APP LAYOUT ================= */

.app {
  display: grid;
  grid-template-columns: 280px 1fr 360px;
  grid-template-rows: 56px 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.topbar {
  grid-column: 1 / 4;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 10;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.topbar-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.topbar-piece-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  outline: none;
  min-width: 200px;
  max-width: 360px;
}
.topbar-piece-name:hover { background: var(--bg-soft); }
.topbar-piece-name:focus { background: var(--bg-soft); border-color: var(--border-strong); }

.bmc-fixed {
  position: fixed;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #FFDD00;
  color: #1c1917;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 50;
}
.bmc-fixed:hover {
  background: #ffca00;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}

.topbar-divider {
  width: 1px; height: 24px; background: var(--border);
}

.topbar-spacer { flex: 1; }

.topbar-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.topbar-action:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.topbar-action.primary {
  background: var(--text);
  color: white;
}
.topbar-action.primary:hover {
  background: #000;
  color: white;
}

/* ================= SIDEBAR LEFT (Stücke + Probenplan) ================= */

.sidebar-left {
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}

.sidebar-tab {
  flex: 1;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.sidebar-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
.sidebar-tab:hover:not(.active) {
  background: var(--bg-soft);
  color: var(--text-muted);
}

.sidebar-section {
  padding: 16px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-transform: none;
  letter-spacing: 0;
}
.btn-add:hover { background: var(--bg-soft); color: var(--text); }

.piece-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 4px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.piece-card:hover { background: var(--bg-soft); }
.piece-card.active { background: var(--bg-soft); border-color: var(--border); }

.piece-thumb {
  width: 36px; height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.piece-info { flex: 1; min-width: 0; }
.piece-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.piece-meta {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}

.piece-delete {
  width: 24px; height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  opacity: 0;
}
.piece-card:hover .piece-delete { opacity: 1; }
.piece-delete:hover { background: #fee2e2; color: #dc2626; }

/* Phase progress */
.phase-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phase-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
}
.phase-row:hover { background: var(--bg-soft); }
.phase-row.active { background: var(--bg-soft); border-color: var(--border); }

.phase-badge {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
}

.phase-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.phase-sub {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 1px;
}

.phase-progress-bar {
  height: 4px;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.phase-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

/* ================= TOOLBAR ================= */

.toolbar {
  position: sticky;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  z-index: 5;
  width: fit-content;
  margin: 0 auto;
  flex-shrink: 0;
}

.tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  transition: all 0.15s;
}
.tool-btn:hover { background: var(--bg-soft); color: var(--text); }
.tool-btn.active {
  background: var(--text);
  color: white;
}
.tool-btn.active:hover {
  background: var(--text);
  color: white;
}

.tool-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

.tool-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
}

.popover-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.popover-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 60px;
}

/* Stamps-Popover */
.stamps-popover {
  min-width: 320px;
  max-width: 380px;
}
.stamps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.stamp-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.stamp-pick:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.stamp-pick.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}
.stamp-pick-label {
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stamp-Marker auf der Partitur */
.stamp-marker {
  position: absolute;
  pointer-events: auto;
  z-index: 3;
  cursor: grab;
  transform: translate(-50%, -50%);
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.1s;
}
.stamp-marker:hover {
  opacity: 1;
}
.stamp-marker.selected {
  outline: 2px solid var(--v2);
  outline-offset: 2px;
  border-radius: 4px;
  opacity: 1;
}

.stamp-beat {
  background: rgba(255,255,255,0.9);
  border: 2px solid currentColor;
  border-radius: 8px;
  padding: 6px;
}

.stamp-resize-handle {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
  background: var(--v2);
  border: 2px solid white;
  border-radius: 3px;
  cursor: ns-resize;
  pointer-events: auto;
  box-shadow: var(--shadow-sm);
  z-index: 4;
}
.stamp-resize-handle:hover {
  background: var(--v1);
  transform: scale(1.2);
}
.stamp-resize-handle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 2px;
  width: 6px;
  height: 1px;
  background: white;
  box-shadow: 0 2px 0 white, 0 4px 0 white;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--text); }

.size-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--text);
  border-radius: 50%;
  cursor: pointer;
}

/* ================= CANVAS ================= */

.canvas-area {
  position: relative;
  background: var(--bg);
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 40px 40px;
}

.canvas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
  color: var(--text-soft);
  gap: 16px;
}

.canvas-empty-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
}

.canvas-empty h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.canvas-empty p {
  margin: 0;
  max-width: 400px;
  line-height: 1.6;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--text);
  color: white;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  margin-top: 8px;
}
.upload-btn:hover { background: #000; }

.upload-btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.upload-btn.secondary:hover { background: var(--bg-soft); }

.page-wrap {
  position: relative;
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
  margin-bottom: 30px;
}

.page-canvas-layer,
.page-svg-layer,
.page-overlay-layer {
  display: block;
}

.page-overlay-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-overlay-layer.tool-active {
  pointer-events: auto;
  cursor: crosshair;
}

.pin-group {
  position: absolute;
  pointer-events: auto;
  z-index: 3;
  transform: translate(-14px, -28px);
  cursor: grab;
}
.pin-group.dragging {
  cursor: grabbing;
  z-index: 10;
}

.pin-marker {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 11px;
  pointer-events: auto;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  border: 2px solid white;
  transition: transform 0.15s;
}
.pin-group:hover .pin-marker {
  transform: rotate(-45deg) scale(1.15);
}
.pin-marker > span {
  transform: rotate(45deg);
  display: block;
}

.pin-group.selected .pin-marker {
  outline: 3px solid rgba(0,0,0,0.15);
  outline-offset: 2px;
}

.pin-label {
  position: absolute;
  left: 20px;
  top: -10px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  line-height: 1.3;
}
.pin-label-phase {
  font-weight: 700;
  margin-right: 4px;
}

/* Page number label */
.page-label {
  position: absolute;
  top: -28px;
  left: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ================= SIDEBAR RIGHT (Comments) ================= */

.sidebar-right {
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.right-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}

.right-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  transition: all 0.15s;
}
.filter-chip:hover { background: var(--bg-soft); }
.filter-chip.active {
  border-color: var(--text);
  background: var(--text);
  color: white;
}

.filter-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.right-tabs {
  display: flex;
  gap: 2px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.right-tab {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.right-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.comments-list {
  padding: 12px 16px;
  flex: 1;
}

.comment-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
  font-size: 13px;
}

.comment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.comment-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.comment-card.selected {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-pin-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.comment-phase-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.comment-meta {
  font-size: 11px;
  color: var(--text-soft);
  margin-left: auto;
}

.comment-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.comment-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.comment-subtag {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--bg-soft);
  color: var(--text-muted);
}

.comment-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.comment-action {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-soft);
}
.comment-action:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.comment-action.danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* ================= COMMENT EDITOR ================= */

.comment-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-editor {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.editor-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
}
.editor-close:hover { background: var(--bg-soft); color: var(--text); }

.editor-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 6px;
  display: block;
}

.phase-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.phase-pick {
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  transition: all 0.15s;
}
.phase-pick:hover { border-color: var(--border-strong); }
.phase-pick.active {
  border-width: 2px;
  padding: 7px 5px;
}

.phase-pick .ppc-dot {
  width: 18px; height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 9px;
}

.subtag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.subtag-pick {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid transparent;
}
.subtag-pick.active {
  background: var(--text);
  color: white;
}

.text-input,
.text-area {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  outline: none;
  resize: none;
  font-family: inherit;
  color: var(--text);
}
.text-input:focus,
.text-area:focus {
  border-color: var(--text);
}

.text-area {
  min-height: 100px;
}

.editor-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: var(--bg-soft); }

.btn-primary {
  background: var(--text);
  color: white;
}
.btn-primary:hover { background: #000; }

.btn-danger {
  background: var(--surface);
  color: #dc2626;
  border-color: var(--border);
}
.btn-danger:hover { background: #fee2e2; border-color: #fecaca; }

/* ================= CHECKLIST ================= */

.checklist-panel {
  padding: 16px 20px;
}

.checklist-section {
  margin-bottom: 18px;
}

.checklist-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.checklist-section-title {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}

.checklist-counter {
  font-size: 11px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.1s;
}
.checklist-item:hover { background: var(--bg-soft); }

.checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s;
}
.checkbox.checked {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

.checklist-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.checklist-item.done .checklist-text {
  text-decoration: line-through;
  color: var(--text-soft);
}

.checklist-item.na {
  opacity: 0.5;
  cursor: default;
}
.checklist-item.na .checklist-text {
  text-decoration: line-through;
  color: var(--text-soft);
}
.checkbox.na {
  background: var(--bg-soft);
  border-color: var(--border);
}
.checkbox-na {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-soft);
}

.checklist-na-btn {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.1s;
}
.checklist-item:hover .checklist-na-btn {
  opacity: 1;
}
.checklist-na-btn.active {
  opacity: 1;
  background: var(--bg-soft);
  border-color: var(--border-strong);
  color: var(--text);
}
.checklist-na-btn:hover {
  background: var(--bg-soft);
}

.checklist-na-hint {
  font-size: 11px;
  color: var(--text-soft);
}

/* ================= PROBENPLAN ================= */

.rehearsal-panel {
  padding: 12px 16px;
}

.rehearsal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
}
.rehearsal-card:hover { border-color: var(--border-strong); }

.rehearsal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rehearsal-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
}
.rehearsal-title {
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0;
}
.rehearsal-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.rehearsal-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 100px;
  color: white;
}

.rehearsal-notes {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
  white-space: pre-wrap;
}

/* ================= TOAST / HINT ================= */

.hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 25, 23, 0.92);
  color: white;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  z-index: 6;
  backdrop-filter: blur(8px);
}

/* Loading */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); background-clip: padding-box; border: 2px solid transparent; }

/* ================= ZOOM ================= */

.zoom-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 40px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.zoom-label:hover {
  background: var(--bg-soft);
  color: var(--text);
}

/* ================= ADMIN PANEL ================= */

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}

.admin-table-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tr:hover td {
  background: var(--bg-soft);
}
.admin-cell-name {
  font-weight: 500;
}
.admin-cell-email {
  color: var(--text-muted);
}
.admin-count {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}
.admin-loading, .admin-error {
  text-align: center;
  padding: 40px;
  color: var(--text-soft);
  font-size: 14px;
}
.admin-error {
  color: #dc2626;
}
