/* ==========================================================================
   Clasa — Design System (Google Classroom + Apple/Emil Motion)
   ========================================================================== */

:root {
  /* Paletă luminoasă Google Classroom */
  --bg-page: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f3f4;
  --bg-elevated: rgba(255, 255, 255, 0.86);

  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #70757a;

  --border-subtle: #dadce0;
  --border-focus: #1a73e8;

  /* Culori Classroom pe materii */
  --blue-primary: #1a73e8;
  --blue-soft: #e8f0fe;
  --blue-dark: #174ea6;

  --green-primary: #1e8e3e;
  --green-soft: #e6f4ea;
  --green-dark: #137333;

  --amber-primary: #e37400;
  --amber-soft: #fef7e0;
  --amber-dark: #b06000;

  --coral-primary: #d93025;
  --coral-soft: #fce8e6;
  --coral-dark: #a50e0e;

  --purple-primary: #7627bb;
  --purple-soft: #f3e8fd;
  --purple-dark: #4a148c;

  /* Curbe de mișcare fluide */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-card: 0 1px 2px 0 rgba(60, 64, 67, 0.12), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
  --shadow-card-hover: 0 4px 12px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.1);
  --shadow-sheet: 0 -8px 32px rgba(32, 33, 36, 0.18);
}

/* Baseline mobile-native */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font: 100%/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  overscroll-behavior: none;
}

/* Elimină auto-zoom pe iOS */
input,
textarea,
select {
  font-size: 16px;
  font-family: inherit;
  color: var(--text-primary);
}

/* Elimină 300ms tap delay și selecția textului pe controale */
button,
a,
[role="button"],
.role-btn,
.course-card,
.sheet-handle-area {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  margin: 0;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Antet Translucid
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 1.25rem 0.65rem;
  background: var(--bg-elevated);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(218, 220, 224, 0.85);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: none;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out);
}

.brand-btn:active {
  transform: scale(0.97);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Comutator Elev / Profesor */
.role-switch {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.role-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.role-btn:active {
  transform: scale(0.96);
}

.role-btn.active {
  background: var(--bg-surface);
  color: var(--blue-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Chip Cont Google */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem 0.25rem 0.3rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: transform 120ms var(--ease-out), border-color 150ms var(--ease-out);
}

.user-chip:active {
  transform: scale(0.97);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.user-initials {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Container Principal
   ========================================================================== */
.main-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   Butoane
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary {
  background-color: var(--blue-primary);
  color: #ffffff;
}

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

.btn-tonal {
  background-color: var(--blue-soft);
  color: var(--blue-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-sm {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Grilă de Cursuri (Google Classroom Grid)
   ========================================================================== */
.section-header {
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

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

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  animation: cardEnter 240ms var(--ease-out) forwards;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.course-card:nth-child(1) { animation-delay: 0ms; }
.course-card:nth-child(2) { animation-delay: 40ms; }
.course-card:nth-child(3) { animation-delay: 80ms; }
.course-card:nth-child(4) { animation-delay: 120ms; }
.course-card:nth-child(n+5) { animation-delay: 160ms; }

.course-card:active {
  transform: scale(0.98);
}

/* Card dedicat profesorului pentru adăugare lecție */
.course-add-card {
  background: var(--bg-surface);
  border: 2px dashed #dadce0;
  border-radius: var(--radius-md);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  cursor: pointer;
  text-align: center;
  color: var(--text-secondary);
  opacity: 0;
  animation: cardEnter 240ms var(--ease-out) forwards;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.course-add-card:active {
  transform: scale(0.98);
}

.course-add-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.course-add-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-primary);
}

.course-add-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 24ch;
}

.course-banner {
  padding: 1.1rem 1.15rem;
  color: #ffffff;
  position: relative;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-blue { background: linear-gradient(135deg, #1a73e8 0%, #174ea6 100%); }
.theme-green { background: linear-gradient(135deg, #1e8e3e 0%, #137333 100%); }
.theme-amber { background: linear-gradient(135deg, #e37400 0%, #b06000 100%); }
.theme-coral { background: linear-gradient(135deg, #d93025 0%, #a50e0e 100%); }
.theme-purple { background: linear-gradient(135deg, #7627bb 0%, #4a148c 100%); }

.course-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.95;
}

.course-subject-tag {
  background: rgba(255, 255, 255, 0.22);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.course-banner-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.45rem;
  line-height: 1.3;
}

.course-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.course-preview-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.course-footer {
  padding: 0.75rem 1.15rem;
  border-top: 1px solid var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.course-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.course-status-pill.completed {
  background: var(--green-soft);
  color: var(--green-dark);
}

.course-cta {
  color: var(--blue-primary);
}

/* ==========================================================================
   Vedere Lecție Activă
   ========================================================================== */
.lesson-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.timer-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
}

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

.timer-digits {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--blue-primary);
  font-size: 0.95rem;
}

.timer-reset-btn {
  border: none;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}

.timer-reset-btn:active {
  transform: scale(0.95);
}

.lesson-hero {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.lesson-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.subject-pill,
.grade-pill,
.type-pill,
.teacher-pill {
  background: rgba(255, 255, 255, 0.22);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.lesson-hero-title {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  color: #ffffff;
  font-weight: 600;
}

.lesson-workspace {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: start;
}

.lesson-column-left,
.lesson-column-right {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.classroom-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

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

.step-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.chip-warning {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.ai-model-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.summary-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.trojan-instructions {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.trojan-text-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--amber-primary);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* Barem profesor */
.teacher-key-box {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--purple-soft);
  border: 1px solid rgba(118, 39, 187, 0.25);
  font-size: 0.84rem;
}

.teacher-key-title {
  font-weight: 600;
  color: var(--purple-dark);
  margin-bottom: 0.45rem;
}

.teacher-key-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.investigation-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.mistake-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mistake-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-wrap: wrap;
}

.mistake-badge {
  background: var(--coral-soft);
  color: var(--coral-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-teacher {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.mistake-textarea,
.form-input,
.form-select {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  background: var(--bg-surface);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  resize: vertical;
}

.mistake-textarea:focus,
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

/* ==========================================================================
   Bottom Sheet (Evaluare & Adăugare Lecție)
   ========================================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(32, 33, 36, 0.45);
  opacity: 0;
  transition: opacity 240ms var(--ease-drawer);
}

.sheet-backdrop.open {
  opacity: 1;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  max-width: 760px;
  max-height: 88dvh;
  margin: 0 auto;
  background: var(--bg-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 280ms var(--ease-drawer);
  will-change: transform;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet.dragging {
  transition: none !important;
}

.sheet-handle-area {
  padding: 0.7rem 0 0.35rem;
  display: flex;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.sheet-handle-pill {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #cbd0d6;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.35rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.sheet-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out);
}

.sheet-close-btn:active {
  transform: scale(0.92);
}

.sheet-content {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ==========================================================================
   Raport Evaluare
   ========================================================================== */
.eval-score-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  border: 1px solid rgba(26, 115, 232, 0.22);
  flex-wrap: wrap;
}

.eval-score-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.eval-synthesis-box {
  background: #f8fafd;
  border-left: 4px solid var(--blue-primary);
  padding: 0.95rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.eval-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.eval-item-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.eval-item-card.status-corect {
  border-left: 4px solid var(--green-primary);
}

.eval-item-card.status-partial {
  border-left: 4px solid var(--amber-primary);
}

.eval-item-card.status-gresit {
  border-left: 4px solid var(--coral-primary);
}

.eval-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
}

.status-tag {
  font-size: 0.74rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.status-tag.corect { background: var(--green-soft); color: var(--green-dark); }
.status-tag.partial { background: var(--amber-soft); color: var(--amber-dark); }
.status-tag.gresit { background: var(--coral-soft); color: var(--coral-dark); }

.study-plan-box {
  background: var(--amber-soft);
  border: 1px solid rgba(227, 116, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
}

.study-plan-title {
  font-weight: 600;
  color: var(--amber-dark);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.study-plan-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* ==========================================================================
   Modal Autentificare Google Sign-In
   ========================================================================== */
.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(32, 33, 36, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-backdrop[hidden] {
  display: none !important;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  animation: cardEnter 220ms var(--ease-out) forwards;
}

.auth-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.auth-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.google-btn-container {
  display: flex;
  justify-content: center;
  min-height: 44px;
  align-items: center;
  padding: 0.5rem 0;
}

.auth-status-msg {
  font-size: 0.82rem;
  color: var(--amber-dark);
  text-align: center;
}

/* ==========================================================================
   Hover doar pentru pointer fin
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .brand-btn:hover {
    background-color: var(--bg-subtle);
  }
  .btn-primary:hover {
    background-color: var(--blue-dark);
  }
  .btn-secondary:hover {
    background-color: var(--bg-subtle);
  }
  .btn-tonal:hover {
    background-color: #d2e3fc;
  }
  .btn-ghost:hover {
    background-color: var(--bg-subtle);
  }
  .course-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: #bdc1c6;
  }
  .course-add-card:hover {
    border-color: var(--blue-primary);
    background-color: #f8fbff;
  }
  .user-chip:hover {
    border-color: var(--blue-primary);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .lesson-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .main-container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

/* ==========================================================================
   Accesibilitate
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }
  .course-card,
  .course-add-card {
    opacity: 1;
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
