/* Cadence - Music Skill Progression Tracker Styles */

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.2s ease;

  /* Instrument-specific accent colors */
  --guitar-color: #ea580c;
  --guitar-light: #fed7aa;
  --bass-color: #7c3aed;
  --bass-light: #ddd6fe;
  --piano-color: #0891b2;
  --piano-light: #cffafe;
  --drums-color: #dc2626;
  --drums-light: #fecaca;
  --vocals-color: #c026d3;
  --vocals-light: #f5d0fe;

  /* Default instrument color (dynamic) */
  --instrument-color: var(--primary-color);
  --instrument-light: var(--primary-light);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9999;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--bg-tertiary);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Login Screen */
.login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-container {
  max-width: 400px;
  width: 100%;
}

.logo {
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

.logo h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.125rem;
  opacity: 0.9;
}

.login-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.login-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.privacy-link {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.85rem;
}

.privacy-link a {
  color: var(--text-secondary);
  text-decoration: none;
}

.privacy-link a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-add {
  opacity: 0.7;
  font-size: 0.875rem;
}

.btn-add:hover {
  opacity: 1;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin-left: -4px;
}

.btn-icon:hover {
  opacity: 1;
  color: var(--primary-color);
}

.btn-icon-small {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin-left: 2px;
}

.btn-icon-small:hover {
  opacity: 1;
  color: var(--primary-color);
}

.btn-link-add {
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-link-add:hover {
  opacity: 1;
  text-decoration: underline;
}

.btn-google {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* Role Selection Screen */
.role-selection-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.role-selection-container {
  max-width: 600px;
  width: 100%;
}

.role-selection-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.role-selection-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: center;
}

.role-selection-card > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.role-option-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.role-option-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.role-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.role-option-btn h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.role-option-btn p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .role-options {
    grid-template-columns: 1fr;
  }
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem;
  transition: var(--transition);
}

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

.btn-text.btn-danger {
  background: none;
  color: #dc2626;
}

.btn-text.btn-danger:hover {
  background: none;
  color: #991b1b;
}

/* App Layout */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Preview Mode Banner */
.preview-banner {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 101;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.preview-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.preview-banner-text {
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-banner-text strong {
  font-weight: 700;
  text-decoration: underline;
}

.preview-banner .btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.app-header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-small {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
}

.nav-tab {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-tab:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-tab.active {
  background-color: var(--primary-color);
  color: white;
}

.tab-notification-badge {
  display: inline-block;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.4rem;
  min-width: 1.2rem;
  text-align: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.student-classes-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.class-badge {
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

/* Main Content */
.app-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

/* Instrument Selection */
.instrument-selection {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.selection-container {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 100%;
}

.selection-container h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.selection-container p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.instrument-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.instrument-card:hover {
  border-color: var(--primary-color);
  background: var(--bg-primary);
}

.instrument-card .icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.instrument-card .name {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Instrument Selector */
.instrument-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.instrument-dropdown {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: var(--bg-primary);
  cursor: pointer;
}

/* Pathway Container */
.pathway-container {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.pathway-map {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.level-node {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.level-node:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.level-node.current {
  border-color: var(--secondary-color);
  background: #f0fdf4;
}

.level-node.completed {
  border-color: var(--primary-color);
  background: #eef2ff;
}

.level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.level-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.level-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.level-skills {
  list-style: none;
}

.level-skills li {
  padding: 0.25rem 0;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.level-skills li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
}

.branch-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.branch-node {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.branch-node:hover {
  border-color: var(--primary-color);
}

.branch-node.selected {
  border-color: var(--secondary-color);
  background: #f0fdf4;
}

/* Instrument-specific pathway theming */
#pathway-view[data-instrument="guitar"] {
  --instrument-color: var(--guitar-color);
  --instrument-light: var(--guitar-light);
}

#pathway-view[data-instrument="bass"] {
  --instrument-color: var(--bass-color);
  --instrument-light: var(--bass-light);
}

#pathway-view[data-instrument="piano"] {
  --instrument-color: var(--piano-color);
  --instrument-light: var(--piano-light);
}

#pathway-view[data-instrument="drums"] {
  --instrument-color: var(--drums-color);
  --instrument-light: var(--drums-light);
}

#pathway-view[data-instrument="vocals"] {
  --instrument-color: var(--vocals-color);
  --instrument-light: var(--vocals-light);
}

#pathway-view .level-number,
#pathway-view .level-skills li::before,
#pathway-view .branch-badge {
  color: var(--instrument-color);
}

#pathway-view .level-node:hover,
#pathway-view .branch-node:hover {
  border-color: var(--instrument-color);
}

#pathway-view .level-node.completed {
  border-color: var(--instrument-color);
  background: var(--instrument-light);
}

/* Instrument selector tabs */
.instrument-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.instrument-tab {
  padding: 0.625rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.instrument-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.instrument-tab.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-bottom-color: var(--instrument-color);
  font-weight: 600;
}

.instrument-tab.guitar.active {
  border-bottom-color: var(--guitar-color);
}

.instrument-tab.bass.active {
  border-bottom-color: var(--bass-color);
}

.instrument-tab.piano.active {
  border-bottom-color: var(--piano-color);
}

.instrument-tab.drums.active {
  border-bottom-color: var(--drums-color);
}

.instrument-tab.vocals.active {
  border-bottom-color: var(--vocals-color);
}

/* Pathway header with instrument info */
.pathway-header {
  background: linear-gradient(135deg, var(--instrument-color), var(--primary-dark));
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pathway-header-icon {
  font-size: 3rem;
  line-height: 1;
}

.pathway-header-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pathway-header-content p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Song Filters */
.song-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input,
.filter-select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  background-color: var(--bg-primary);
}

.search-input {
  flex: 1;
  min-width: 200px;
}

.filter-select {
  min-width: 150px;
}

/* Songs Grid */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.song-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.song-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.song-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.song-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.song-artist {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.song-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.song-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.song-tag.level {
  background: var(--primary-light);
  color: white;
}

.song-tag.instrument {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.song-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.resource-link-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.resource-rating {
  font-size: 0.875rem;
  color: #ffd700;
  font-weight: 600;
  white-space: nowrap;
}

/* Progress View */
.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.progress-sections {
  display: grid;
  gap: 2rem;
}

.progress-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.song-list {
  display: grid;
  gap: 1rem;
}

.song-list-item {
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.song-list-item .info {
  flex: 1;
}

.song-list-item .title {
  font-weight: 600;
}

.song-list-item .artist {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.song-list-item .actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-small {
  max-width: 450px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

/* Form */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.grading-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checklist-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.checklist-question {
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.checklist-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.checklist-options input[type="radio"],
.checklist-options input[type="checkbox"] {
  cursor: pointer;
}

.level-suggestion {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 1.5rem;
}

.level-suggestion .suggested-level {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Export Options */
.export-options {
  display: grid;
  gap: 1.5rem;
}

.export-option {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.export-option h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.export-option p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.reflection-textarea {
  width: 100%;
  min-height: 200px;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-color);
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-left-color: var(--secondary-color);
}

.toast.error {
  border-left-color: var(--danger-color);
}

.toast.warning {
  border-left-color: var(--warning-color);
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Teacher Dashboard Styles */
.teacher-view {
  min-height: 600px;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.class-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.class-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.class-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.class-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.class-code-badge {
  background: var(--primary-light);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.class-card-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Class Detail View */
.class-detail {
  margin-top: 2rem;
}

.class-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.class-detail-title h2 {
  margin-bottom: 0.5rem;
}

.class-detail-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-secondary);
}

.class-code-display {
  background: var(--bg-tertiary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-family: monospace;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
}

.class-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.class-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.class-tab:hover {
  color: var(--text-primary);
}

.class-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Class Roster */
.class-roster {
  display: grid;
  gap: 1rem;
}

.roster-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.roster-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.roster-student-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.roster-student-name {
  font-weight: 600;
  font-size: 1rem;
}

.roster-student-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.roster-student-instruments {
  display: flex;
  gap: 0.5rem;
  font-size: 1.25rem;
}

.roster-item-pending {
  opacity: 0.75;
  border-style: dashed;
}

.roster-pending-badge {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  background-color: #fef3c7;
  color: #92400e;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Progress Heatmap */
.progress-heatmap {
  overflow-x: auto;
  margin-top: 1rem;
}

.heatmap-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
}

.heatmap-table th,
.heatmap-table td {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.heatmap-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.heatmap-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 11;
}

.heatmap-table td:first-child {
  text-align: left;
  font-weight: 500;
  position: sticky;
  left: 0;
  background: var(--bg-primary);
  z-index: 9;
}

.heatmap-cell {
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.heatmap-cell:hover {
  opacity: 0.8;
}

.heatmap-cell.level-1 { background: #dbeafe; color: #1e40af; }
.heatmap-cell.level-2 { background: #a5b4fc; color: #3730a3; }
.heatmap-cell.level-3 { background: #818cf8; color: white; }
.heatmap-cell.level-4 { background: #6366f1; color: white; }
.heatmap-cell.level-5 { background: #4f46e5; color: white; }

/* Timeline */
.class-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  background: var(--bg-primary);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.timeline-student {
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-time {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.timeline-content {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.timeline-highlight {
  color: var(--primary-color);
  font-weight: 500;
}

/* Submissions Feed */
.submissions-feed {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.submission-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.submission-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.submission-student {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.submission-song {
  font-size: 1rem;
  color: var(--text-secondary);
}

.submission-time {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.submission-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.submission-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.submission-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.submission-detail-value {
  font-size: 1rem;
  color: var(--text-primary);
}

.submission-notes {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.submission-notes-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.submission-notes-text {
  font-size: 0.875rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  line-height: 1.5;
}

.submission-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Flagged Ratings */
.flagged-ratings-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.flagged-card {
  background: var(--bg-primary);
  border: 2px solid var(--warning-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.flagged-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.flagged-song-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.flagged-song-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.flagged-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.flagged-ratings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.flagged-rating-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.flagged-student-name {
  font-weight: 500;
  font-size: 0.875rem;
}

.flagged-level {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.flagged-resolve {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.flagged-resolve label {
  font-weight: 500;
  font-size: 0.875rem;
}

.resolve-level-select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  min-width: 200px;
}

/* Join Class Section */
.join-class-section {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.join-class-section h3 {
  margin-bottom: 0.5rem;
}

.join-class-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.join-class-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
  align-items: stretch;
}

.join-class-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-family: monospace;
}

.student-classes-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.student-class-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-class-info h4 {
  margin-bottom: 0.25rem;
}

.student-class-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.student-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.student-class-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  transition: var(--transition);
}

.student-class-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.class-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.class-year-badge {
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.class-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.813rem;
  color: var(--text-secondary);
}

.class-card-meta strong {
  color: var(--text-primary);
  font-family: monospace;
  font-size: 0.875rem;
}

/* Modal sizes */
.modal-large .modal-content {
  max-width: 900px;
}

.modal-small .modal-content {
  max-width: 500px;
}

/* Student Detail Content */
.student-detail-content {
  display: grid;
  gap: 2rem;
}

.student-instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.student-instrument-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.student-instrument-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.student-progress-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.student-songs-list {
  display: grid;
  gap: 0.5rem;
}

.student-song-item {
  padding: 0.5rem;
  background: var(--bg-primary);
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Admin Dashboard Styles */
.admin-view {
  min-height: 600px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
}

.admin-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.admin-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-section-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-section-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.admin-section-tab:hover {
  color: var(--text-primary);
}

.admin-section-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-section-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.admin-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Levels List */
.levels-list {
  display: grid;
  gap: 1rem;
}

.level-admin-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.level-admin-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.level-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.level-admin-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.level-admin-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.level-admin-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.level-admin-skills {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.level-admin-skills h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.level-admin-skills ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.level-admin-skills li {
  padding: 0.25rem 0;
  font-size: 0.875rem;
}

.level-admin-skills li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Instruments Admin List */
.instruments-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.instrument-admin-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.instrument-admin-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.instrument-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.instrument-admin-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.instrument-admin-icon {
  font-size: 3rem;
  line-height: 1;
}

.instrument-admin-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.instrument-admin-order {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.instrument-admin-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.instrument-admin-stats {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

/* Content Moderation List */
.content-moderation-list {
  display: grid;
  gap: 1.5rem;
}

.content-mod-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.content-mod-card.pending {
  border-color: var(--warning-color);
  background: #fffbeb;
}

.content-mod-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.content-mod-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.content-mod-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.content-mod-status {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.content-mod-status.approved {
  background: #d1fae5;
  color: #065f46;
}

.content-mod-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.content-mod-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.content-mod-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.content-mod-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.content-mod-detail-value {
  font-size: 1rem;
  color: var(--text-primary);
}

.content-mod-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Users List */
.users-list {
  display: grid;
  gap: 1rem;
}

.user-admin-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.user-admin-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.user-admin-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-admin-name {
  font-weight: 600;
  font-size: 1rem;
}

.user-admin-email {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.user-admin-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-role-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.user-role-badge.student {
  background: #dbeafe;
  color: #1e40af;
}

.user-role-badge.teacher {
  background: #dcfce7;
  color: #166534;
}

.user-role-badge.admin {
  background: #fce7f3;
  color: #9f1239;
}

.user-admin-stats {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Button variations */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-tabs {
    width: 100%;
    justify-content: center;
  }

  .nav-tab {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }

  .user-menu {
    width: 100%;
    justify-content: center;
  }

  .view-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .songs-grid {
    grid-template-columns: 1fr;
  }

  .branch-container {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

/* Filter Banner */
.filter-banner {
  background-color: var(--primary-light);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-banner span {
  font-weight: 500;
}

.filter-banner-close {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-banner-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Print Styles */
@media print {
  .app-header,
  .btn,
  .song-actions,
  .form-actions,
  .modal-close,
  .filter-banner {
    display: none !important;
  }

  .app-main {
    padding: 0;
  }

  .level-node,
  .song-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body {
    background: white;
  }

  .pathway-container,
  .song-card {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Rating Stars */
.rating-group {
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.rating-stars {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  margin-top: 0.5rem;
  user-select: none;
}

.rating-stars .star {
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s ease;
}

.rating-stars .star:hover,
.rating-stars .star.active {
  color: #ffd700;
}

.rating-stars .star.hovered {
  color: #ffd700;
}

/* ========================================
   Student Resources & Multiple Tutorials
   ======================================== */

.resources-section {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  background-color: var(--bg-secondary);
}

.resources-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.resources-section-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.resource-item.pending {
  border-color: var(--warning-color);
  background-color: #fffbeb;
}

.resource-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius);
}

.resource-content {
  flex: 1;
  min-width: 0;
}

.resource-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.resource-title a:hover {
  text-decoration: underline;
}

.resource-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.resource-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.resource-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.resource-badge {
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-weight: 500;
}

.resource-badge.pending {
  background-color: #fef3c7;
  color: #92400e;
}

.resource-badge.approved {
  background-color: #d1fae5;
  color: #065f46;
}

.empty-resources {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Tutorial list items */
.tutorial-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.tutorial-item.pending {
  border-color: var(--warning-color);
  background-color: #fffbeb;
}

.tutorial-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tutorial-content {
  flex: 1;
  min-width: 0;
}

.tutorial-title {
  font-weight: 500;
  font-size: 0.9375rem;
}

.tutorial-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.tutorial-title a:hover {
  text-decoration: underline;
}

.tutorial-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Song card resources button */
.btn-resources {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.resource-count {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.6875rem;
  padding: 0.0625rem 0.375rem;
  border-radius: 10px;
  font-weight: 600;
}

/* Underline Resources button when resources exist */
.btn-resources.has-resources {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Small button variant */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* ============================================
   ACCOUNT MANAGEMENT VIEW
   ============================================ */

.accounts-section {
  margin-bottom: 2rem;
}

.accounts-section h3 {
  margin-bottom: 0.25rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.accounts-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

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

.account-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.account-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.account-info {
  flex: 1;
  min-width: 0;
}

.account-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.account-email {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.delete-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--border-radius);
  padding: 1rem;
}

.delete-warning p {
  margin: 0;
}
