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

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--coach-accent);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

button:focus-visible {
  outline: 2px solid var(--coach-accent);
  outline-offset: 2px;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --border: #2a2a35;

  /* Coach accent - green */
  --coach-accent: #4ade80;
  --coach-accent-hover: #22c55e;
  --coach-accent-dark: #16a34a;

  /* Student accent - blue */
  --student-accent: #60a5fa;
  --student-accent-hover: #3b82f6;
  --student-accent-dark: #2563eb;

  --difficulty-beginner: #22c55e;
  --difficulty-intermediate: #eab308;
  --difficulty-advanced: #ef4444;

  --success: #22c55e;
  --error: #ef4444;
  --warning: #eab308;
  --info: #60a5fa;

  --transition: all 0.2s ease;
}

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

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px; /* Space for bottom nav */
}

main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

/* ========== LOADER ========== */
.loader {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem 0;
  font-size: 1.125rem;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--coach-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loader-text {
  color: var(--text-secondary);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease;
}

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(26, 26, 36, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 0.75rem;
  flex: 1;
  max-width: 120px;
}

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

.nav-item.active {
  color: var(--coach-accent);
  background: rgba(74, 222, 128, 0.1);
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
}

.nav-icon {
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition);
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ========== LOGIN PAGES ========== */
.login-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(1.5rem, env(safe-area-inset-top, 1.5rem)) 0.75rem max(1rem, env(safe-area-inset-bottom, 1rem));
  padding-top: max(3rem, 6vh);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  max-width: 450px;
  width: 100%;
  animation: fadeIn 0.4s ease;
}

@media (max-width: 480px) {
  .login-card {
    max-width: none;
    width: calc(100% - 0.5rem);
    border-radius: 1.25rem;
    padding: 1.25rem;
  }
}

.login-lang-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.login-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-header h1, .login-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.role-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.role-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  color: var(--text-primary);
  font-family: inherit;
  min-height: 80px;
  position: relative;
}

.role-btn.coach-role {
  border-left: 4px solid var(--coach-accent);
}

.role-btn.student-role {
  border-left: 4px solid var(--student-accent);
}

.role-btn:hover {
  border-color: var(--coach-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.role-btn.coach-role:hover {
  border-color: var(--coach-accent);
}

.role-btn.student-role:hover {
  border-color: var(--student-accent);
}

.role-icon {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.role-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.role-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

/* ========== FORMS ========== */
.login-form, .form-card form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  animation: fadeIn 0.4s ease;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--coach-accent);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.form-group small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-label:hover {
  background: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-actions .btn {
  flex: 1;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--coach-accent);
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  background: var(--coach-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.btn-coach {
  background: var(--coach-accent);
  color: #000;
}

.btn-coach:hover:not(:disabled) {
  background: var(--coach-accent-hover);
}

.btn-student {
  background: var(--student-accent);
  color: #fff;
}

.btn-student:hover:not(:disabled) {
  background: var(--student-accent-hover);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card);
  border-color: var(--coach-accent);
}

.btn-danger {
  background: var(--error);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon-remove {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: var(--transition);
}

.btn-icon-remove:hover {
  color: var(--error);
}

.quick-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ========== PAGE HEADER ========== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

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

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.stat-card.coach-accent {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.05);
}

.stat-card.student-accent {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.05);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.student-accent .stat-value {
  color: var(--student-accent);
}

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

/* ========== SECTIONS ========== */
.section {
  margin-bottom: 2rem;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

/* ========== CARDS ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  animation: fadeIn 0.4s ease;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--coach-accent);
  box-shadow: 0 8px 20px rgba(74, 222, 128, 0.15);
}

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

.category-name {
  font-size: 1.125rem;
  font-weight: 600;
}

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

/* ========== STUDENTS ========== */
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  animation: fadeIn 0.4s ease;
}

.student-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.student-card:hover {
  border-color: var(--coach-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.1);
}

.student-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.student-avatar, .student-avatar-lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--coach-accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.student-avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
}

.student-info {
  flex: 1;
}

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

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

.student-code-display {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.student-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ========== LESSONS ========== */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  animation: fadeIn 0.4s ease;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lesson-card:hover {
  border-color: var(--coach-accent);
  transform: translateY(-2px);
}

.lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.lesson-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  flex: 1;
}

.drill-count {
  background: var(--bg-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.lesson-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.lesson-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

/* ========== LESSON BUILDER ========== */
.lesson-builder {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lesson-info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.selected-drills-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.selected-drills-section h3 {
  margin-bottom: 1rem;
}

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

.selected-drill {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.selected-drill-handle {
  color: var(--text-secondary);
  cursor: move;
  font-size: 1.25rem;
  line-height: 1;
}

.selected-drill-content {
  flex: 1;
}

.selected-drill-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.selected-drill-number {
  color: var(--coach-accent);
  font-weight: 600;
}

.selected-drill-name {
  flex: 1;
  font-weight: 500;
}

.drill-notes-input {
  width: 100%;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
}

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

.drill-library-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

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

.drill-library-header input {
  max-width: 300px;
}

.drill-library-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drill-category-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drill-category-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.drill-library-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.drill-library-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.drill-library-item:hover {
  border-color: var(--coach-accent);
}

.drill-library-item.selected {
  border-color: rgba(74, 222, 128, 0.3);
  border-left: 3px solid var(--coach-accent);
  background: rgba(74, 222, 128, 0.06);
}

.drill-library-name {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.drill-library-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.selected-checkmark {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  background: var(--coach-accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.lesson-actions-sticky {
  position: sticky;
  bottom: 70px;
  z-index: 50;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10, 10, 15, 0.92);
}



/* ========== DRILLS ========== */
.drill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.4s ease;
}

.drill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.drill-card:hover {
  transform: translateX(4px);
  border-color: var(--coach-accent);
}

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

.drill-name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.difficulty-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.difficulty-badge.beginner {
  background: var(--difficulty-beginner);
  color: #000;
}

.difficulty-badge.intermediate {
  background: var(--difficulty-intermediate);
  color: #000;
}

.difficulty-badge.advanced {
  background: var(--difficulty-advanced);
  color: #fff;
}

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

.drill-detail {
  animation: fadeIn 0.4s ease;
}

.drill-detail-header {
  margin-bottom: 1.5rem;
}

.drill-detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.drill-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.drill-description {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.lesson-drills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lesson-drill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
}

.drill-number {
  width: 40px;
  height: 40px;
  background: var(--coach-accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.drill-content {
  flex: 1;
}

.drill-content h3 {
  margin-bottom: 0.5rem;
}

.drill-content .drill-description {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
}

.coach-notes {
  background: rgba(74, 222, 128, 0.1);
  border-left: 3px solid var(--coach-accent);
  padding: 0.75rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

/* ========== VIDEOS ========== */
.videos-section {
  margin-top: 2rem;
}

.videos-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 1rem;
  background: #000;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.video-embed:hover .video-thumbnail {
  opacity: 0.9;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  pointer-events: none;
}

.video-embed:hover .play-button {
  background: rgba(255, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
}

.video-info {
  padding: 0 0.25rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-channel {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.video-why {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
}

/* ========== ASSIGNMENTS ========== */
.assignments-list, .activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.assignment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

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

.assignment-header h3 {
  font-size: 1.125rem;
  flex: 1;
}

.assignment-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

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

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

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-assigned {
  background: var(--info);
  color: #000;
}

.badge-in_progress {
  background: var(--warning);
  color: #000;
}

.badge-completed {
  background: var(--success);
  color: #000;
}

.pinned-badge {
  background: var(--warning);
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========== STUDENT VIEWS ========== */
.student-welcome {
  text-align: center;
  margin-bottom: 2rem;
}

.student-welcome h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.student-welcome p {
  color: var(--text-secondary);
}

.student-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.student-lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
}

.student-lesson-card:hover {
  border-color: var(--student-accent);
  transform: translateY(-2px);
}

.student-lesson-card.pinned {
  border-color: var(--warning);
  background: rgba(234, 179, 8, 0.05);
}

.pin-badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: var(--warning);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.lesson-card-header h3 {
  font-size: 1.125rem;
  flex: 1;
}

.lesson-card-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

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

.student-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-top: 2rem;
}

.student-info-card p {
  margin-bottom: 0.5rem;
}

.lesson-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

.due-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ========== PROGRESS COMPONENTS ========== */
.progress-circle {
  position: relative;
  display: inline-block;
}

.progress-circle svg {
  transform: rotate(0deg);
}

.progress-circle-bg {
  fill: none;
  stroke: var(--border);
}

.progress-circle-fill {
  fill: none;
  stroke: var(--student-accent);
  transition: stroke-dashoffset 0.5s ease;
}

.progress-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--student-accent);
}

.progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--student-accent), var(--student-accent-hover));
  border-radius: 9999px;
  transition: width 0.5s ease;
}

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

/* ========== STUDENT DRILLS ========== */
.student-drills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.student-drill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  transition: var(--transition);
}

.student-drill-card.completed {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.05);
}

.drill-checkbox {
  flex-shrink: 0;
}

.drill-checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--student-accent);
}

.drill-details {
  flex: 1;
}

.drill-details h3 {
  margin-bottom: 0.5rem;
}

.completion-info {
  background: rgba(96, 165, 250, 0.1);
  border-left: 3px solid var(--student-accent);
  padding: 0.75rem;
  margin-top: 1rem;
  border-radius: 0.5rem;
}

.completion-rating {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.completion-notes {
  color: var(--text-secondary);
  font-style: italic;
  margin: 0.5rem 0;
}

.rating-input {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rating-input input[type="radio"] {
  display: none;
}

.star-label {
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.25rem;
}

.rating-input input[type="radio"]:checked + .star-label {
  background: var(--student-accent);
  border-color: var(--student-accent);
}

.star-label:hover {
  border-color: var(--student-accent);
}

/* ========== PROGRESS PAGE ========== */
.progress-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

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

.progress-lesson-header h3 {
  flex: 1;
  font-size: 1.125rem;
}

/* ========== ACTIVITY ========== */
.activity-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.activity-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

.activity-rating {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ========== MODALS ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: var(--transition);
}

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

.modal-content {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.modal-actions .btn {
  flex: 1;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  transition: transform 0.3s ease;
  max-width: 90%;
}

.toast-show {
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.1);
}

.toast-error {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.toast-info {
  border-color: var(--info);
  background: rgba(96, 165, 250, 0.1);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.empty-state-hint {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (min-width: 768px) {
  main {
    padding: 1.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .drill-detail-title {
    font-size: 2.25rem;
  }

  .videos-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  main {
    padding: 2rem;
  }

  .video-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* === DASHBOARD v2 IMPROVEMENTS === */

.quick-actions-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #1a2e1a, #1a3a1a);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.quick-action-btn:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, #1a3a1a, #1a4a1a);
}

.qa-icon {
  font-size: 20px;
}

.inline-add-section {
  margin-bottom: 20px;
}

.inline-add-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-add-form .input {
  flex: 1;
  padding: 12px 16px;
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.inline-add-form .input:focus {
  border-color: #4ade80;
}

.inline-add-form .btn {
  white-space: nowrap;
  padding: 12px 20px;
}

.stat-card.clickable {
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.stat-card.clickable:active {
  transform: scale(0.97);
}

.onboarding-cta {
  margin-bottom: 20px;
}

.onboarding-card {
  background: linear-gradient(135deg, #0f1f0f, #1a2e1a);
  border: 2px dashed rgba(74, 222, 128, 0.4);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.onboarding-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.onboarding-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #fff;
}

.onboarding-card p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  z-index: 9999;
  animation: slideDown 0.3s ease, fadeOut 0.3s ease 2.7s;
  max-width: 90%;
  text-align: center;
}

.toast.success {
  background: #166534;
  border: 1px solid #4ade80;
}

.toast.error {
  background: #7f1d1d;
  border: 1px solid #f87171;
}

@keyframes slideDown {
  from { top: -50px; opacity: 0; }
  to { top: 20px; opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ========== Language Picker ========== */
.lang-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0;
}

.lang-picker-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.lang-pill {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  padding: 0.4rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

.lang-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.lang-pill.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========== EMAIL OTP AUTH ========== */
.email-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

.btn-email {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-email:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-email-action {
  width: 100%;
}

.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Menlo', monospace;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  caret-color: var(--coach-accent);
  transition: border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.otp-input:focus {
  border-color: var(--coach-accent);
  outline: none;
  background: rgba(74, 222, 128, 0.05);
}

.otp-error {
  text-align: center;
  color: var(--error);
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--coach-accent);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  padding: 0.25rem;
}

.btn-link:disabled {
  color: var(--text-secondary);
  cursor: default;
  opacity: 0.5;
}

.resend-timer {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.optional-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
}

@media (max-width: 380px) {
  .otp-input {
    width: 42px;
    height: 48px;
    font-size: 1.25rem;
  }
  .otp-inputs {
    gap: 0.35rem;
  }
}

/* ========== LESSON TEMPLATES ========== */
.templates-section {
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.templates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.templates-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.templates-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

.templates-toggle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.templates-content {
  padding: 0 1.25rem 1.25rem;
}

.templates-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.template-duration-group {
  margin-bottom: 1.25rem;
}

.template-duration-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--coach-accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
}

.template-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.template-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-card:hover {
  border-color: var(--coach-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.1);
}

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

.template-card-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.template-drill-count {
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.template-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.template-use-btn {
  font-size: 0.8rem;
  color: var(--coach-accent);
  font-weight: 500;
}

/* ========== ASSIGNMENT CARD IMPROVEMENTS ========== */
.assignment-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.assignment-link:hover {
  opacity: 0.85;
}

.assignment-link h3 {
  color: var(--coach-accent);
}

.assignment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.assignment-actions .btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

/* ========== CLICKABLE STAT CARDS ========== */
.stat-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.stat-clickable::after {
  content: '›';
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 1.2rem;
  color: var(--coach-accent);
  opacity: 0.4;
}

.stat-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
  border-color: var(--coach-accent);
}

.stat-clickable:active {
  transform: translateY(0);
}

/* ========== FILTER TABS ========== */
.filter-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.filter-tab:hover {
  border-color: var(--coach-accent);
  color: var(--text-primary);
}

.filter-tab.active {
  background: rgba(74, 222, 128, 0.12);
  border-color: var(--coach-accent);
  color: var(--coach-accent);
  font-weight: 600;
}

/* ========== DRILL COMPLETIONS ========== */
.completions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.completion-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.completion-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.completion-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.completion-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

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

/* ========== TEMPLATE CARD ACTIONS ========== */
.template-card-body {
  cursor: pointer;
  padding: 1rem;
}

.template-card {
  padding: 0 !important;
  overflow: hidden;
}

.template-actions {
  display: flex;
  border-top: 1px solid var(--border);
}

.btn-tpl-action {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-tpl-action:not(:last-child) {
  border-right: 1px solid var(--border);
}

.btn-tpl-use {
  color: var(--coach-accent);
  font-weight: 500;
}

.btn-tpl-use:hover {
  background: rgba(74, 222, 128, 0.1);
}

.btn-tpl-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.templates-restore {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.8rem;
}

.link-accent {
  color: var(--coach-accent);
  text-decoration: none;
  cursor: pointer;
}

.link-accent:hover {
  text-decoration: underline;
}

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

/* Optgroup styling for lesson select */
select optgroup {
  font-weight: 600;
  color: var(--text-primary);
}

select option {
  font-weight: 400;
}
