/* ========================================================
   OPEN ENGLISH GENUINE LESSON PLAYER STYLES (activities.css)
   1:1 Authentic Reverse-Engineered Architecture
   Matches student.openenglish.com production layout exactly
   ======================================================== */

:root {
  --oe-navy: #0b1a30;
  --oe-blue: #0070f3;
  --oe-blue-hover: #005bb5;
  --oe-blue-light: #e8f2ff;
  --oe-green: #22c55e;
  --oe-green-light: #dcfce7;
  --oe-red: #ef4444;
  --oe-gold: #f59e0b;
  --oe-bg: #ffffff;
  --oe-surface: #ffffff;
  --oe-border: #e2e8f0;
  --oe-text-main: #1e293b;
  --oe-text-muted: #64748b;
}

/* --- LESSON PLAYER EMBEDDED VIEW (INSIDE PORTAL SHELL) --- */
.oe-lesson-view-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  background-color: #ffffff;
  padding-bottom: 70px; /* Space for bottom dock */
}

/* --- 1. SUB-NAV / BREADCRUMB BAR --- */
.oe-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  border-bottom: 1px solid var(--oe-border);
  background-color: #ffffff;
  font-size: 13px;
}

.oe-subnav-breadcrumb {
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 280px;
}

.oe-subnav-pager {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oe-pager-arrow {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #0f172a;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

#oePrevSlideBtn {
  width: 34px;
  height: 32px;
  border: 1.5px solid #0f172a;
  border-radius: 6px;
  background-color: #ffffff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#oePrevSlideBtn:hover:not(:disabled) {
  background-color: #f8fafc;
}

#oePrevSlideBtn:disabled {
  border-color: #cbd5e1;
  color: #94a3b8;
  opacity: 0.6;
  cursor: not-allowed;
}

#oeNextSlideBtn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #0f172a;
  padding: 4px 8px;
  cursor: pointer;
}

#oeNextSlideBtn:disabled {
  color: #cbd5e1;
  opacity: 0.5;
  cursor: not-allowed;
}

.oe-pager-progress-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  background-color: #f1f5f9;
  padding: 4px 8px;
  border-radius: 12px;
}

.oe-mini-seg {
  width: 14px;
  height: 6px;
  background-color: #cbd5e1;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.oe-mini-seg.active {
  background-color: var(--oe-blue);
  width: 20px;
}

.oe-mini-seg.done {
  background-color: var(--oe-blue);
}

.oe-pager-text {
  font-weight: 700;
  color: #475569;
  font-size: 13px;
  min-width: 44px;
  text-align: center;
}

.oe-subnav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  justify-content: flex-end;
}

.oe-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  border: 1px solid var(--oe-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.oe-subnav-btn:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.oe-subnav-btn.active {
  background-color: var(--oe-blue-light);
  color: var(--oe-blue);
  border-color: #bfdbfe;
}

/* --- 2. MAIN ACTIVITY STAGE --- */
.oe-activity-stage {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.oe-activity-instruction {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 20px;
}

/* --- 3. HORIZONTAL AUDIO SCRUBBER BAR --- */
.oe-audio-scrubber-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 20px;
  padding: 8px 16px;
  background-color: #ffffff;
}

.oe-audio-play-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--oe-blue);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
  flex-shrink: 0;
}

.oe-audio-play-round:hover {
  background-color: var(--oe-blue-hover);
  transform: scale(1.05);
}

.oe-audio-time {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  min-width: 36px;
}

.oe-audio-track-slider {
  flex: 1;
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.oe-audio-track-fill {
  height: 100%;
  background-color: var(--oe-blue);
  border-radius: 2px;
  width: 0%;
  position: relative;
}

.oe-audio-track-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--oe-blue);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  position: absolute;
  right: -6px;
  top: -4px;
}

.oe-audio-vol-icon {
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
}

/* --- 4. SCENE IMAGE --- */
.oe-scene-image-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
}

.oe-scene-image {
  width: 100%;
  max-width: 480px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* --- 5. DIALOGUE SPEECH BUBBLES --- */
.oe-dialog-chat-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 36px;
  box-sizing: border-box;
  padding: 0 16px;
}

.oe-dialog-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.oe-dialog-row.left {
  justify-content: flex-start;
  flex-direction: row;
}

.oe-dialog-row.right {
  justify-content: flex-start; /* in row-reverse, flex-start pins items flush to the right */
  flex-direction: row-reverse;
}

.oe-dialog-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
  margin-top: 14px;
}

.oe-dialog-avatar.blue {
  background-color: var(--oe-blue);
}

.oe-dialog-avatar.orange {
  background-color: #f97316;
}

.oe-dialog-content-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 520px;
}

.oe-dialog-row.left .oe-dialog-content-group {
  align-items: flex-start;
  text-align: left;
}

.oe-dialog-row.right .oe-dialog-content-group {
  align-items: flex-end;
  text-align: right;
}

.oe-dialog-speaker-name {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  text-transform: capitalize;
}

.oe-dialog-bubble {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #0f172a;
}

.oe-dialog-row.left .oe-dialog-bubble {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 0;
}

.oe-dialog-row.right .oe-dialog-bubble {
  background-color: #f1f5f9;
  border: 1px solid transparent;
  border-top-right-radius: 0;
  text-align: left;
}

.oe-dialog-translation {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}

/* --- 6. CENTERED ACTION FOOTER --- */
.oe-center-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.oe-btn-continue-pill {
  background-color: var(--oe-blue);
  color: white;
  border: none;
  padding: 10px 44px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 112, 243, 0.25);
}

.oe-btn-continue-pill:hover:not(:disabled) {
  background-color: var(--oe-blue-hover);
  transform: translateY(-1px);
}

.oe-btn-continue-pill:disabled {
  background-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

.oe-report-link {
  font-size: 12px;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
}

.oe-report-link:hover {
  color: var(--oe-blue);
}

/* --- 7. SOLID BLUE BOTTOM DOCK BAR --- */
;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.oe-dock-item {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.oe-dock-item:hover {
  background-color: rgba(255,255,255,0.12);
}

.oe-dock-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255,255,255,0.3);
}

/* --- OTHER TEMPLATES STYLES (MATCHING AUTHENTIC STYLING) --- */
.oe-tab-clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  width: 100%;
}

.oe-tab-clean-card {
  border: 1px solid var(--oe-border);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.oe-tab-clean-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.oe-tab-clean-body {
  padding: 12px;
}

.oe-4sq-clean-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 520px;
}

.oe-4sq-clean-card {
  position: relative;
  border: 2px solid var(--oe-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.oe-4sq-clean-card:hover:not(.correct) {
  border-color: #0079ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 121, 255, 0.12);
}

.oe-4sq-clean-card.selected {
  border-color: #0079ff;
  box-shadow: 0 0 0 3px rgba(0, 121, 255, 0.25);
}

.oe-4sq-clean-card.correct {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25) !important;
  cursor: default;
}

.oe-4sq-clean-card.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  animation: oeShake 0.4s ease;
}

.oe-4sq-clean-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* --- 8. AUDIO SCRUBBER EXTENSIONS (TURTLE BUTTON) --- */
.oe-audio-turtle-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  transition: all 0.15s ease;
}

.oe-audio-turtle-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.oe-audio-turtle-btn.active {
  background-color: #e0f2fe;
  border-color: #0079ff;
  color: #0079ff;
  font-weight: 700;
}

/* --- 9. ACTIVITIES DRAWER (LessonPlayerIndex, Module 4401) --- */
.oe-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 99990;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.oe-drawer-backdrop.active {
  display: block;
  opacity: 1;
}

.oe-activities-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 99995;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.oe-activities-drawer.active {
  right: 0;
}

.oe-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.oe-drawer-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.oe-drawer-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.oe-drawer-close:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.oe-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oe-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
}

.oe-drawer-item:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.oe-drawer-item.active {
  background-color: #e8f2ff;
  border-color: #0079ff;
}

.oe-drawer-item.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.oe-drawer-item.locked:hover {
  background-color: #f8fafc;
  border-color: transparent;
}

.oe-drawer-item-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.oe-drawer-item.active .oe-drawer-item-index {
  background-color: #0079ff;
  color: white;
}

.oe-drawer-item.completed .oe-drawer-item-index {
  background-color: #22c55e;
  color: white;
}

.oe-drawer-item-content {
  flex: 1;
}

.oe-drawer-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.oe-drawer-item-type {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.oe-drawer-item-badge {
  font-size: 16px;
  color: #22c55e;
}

/* --- 10. DROP IN BLANK (DIB) & TYPE IN BLANK (TIB) STYLES --- */
.oe-dib-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.oe-dib-passage {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  font-size: 18px;
  line-height: 2.2;
  color: #0f172a;
}

.oe-dib-slot {
  display: inline-block;
  min-width: 110px;
  height: 38px;
  vertical-align: middle;
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  background-color: #f8fafc;
  margin: 0 6px;
  padding: 2px 10px;
  text-align: center;
  line-height: 34px;
  font-weight: 700;
  color: #0079ff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.oe-dib-slot.filled {
  border: 2px solid #0079ff;
  background-color: #e0f2fe;
}

.oe-dib-slot.correct {
  border: 2px solid #22c55e;
  background-color: #dcfce7;
  color: #15803d;
}

.oe-dib-slot.wrong {
  border: 2px solid #ef4444;
  background-color: #fee2e2;
  color: #b91c1c;
}

.oe-dib-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background-color: #f1f5f9;
  border-radius: 12px;
}

.oe-dib-chip {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.oe-dib-chip:hover {
  background-color: #0079ff;
  color: #ffffff;
  border-color: #0079ff;
  transform: translateY(-1px);
}

.oe-dib-chip.used {
  opacity: 0.35;
  pointer-events: none;
  background-color: #e2e8f0;
}

/* --- 11. DND MATCHING STYLES (Module 4348 - Authentic Open English) --- */
.oe-dnd-grid {
  display: grid;
  grid-template-columns: 290px 310px;
  gap: 16px 28px;
  width: 100%;
  max-width: 680px;
  margin: 16px auto 32px;
  justify-content: center;
  align-items: stretch;
}

.oe-dnd-card {
  height: 68px;
  box-sizing: border-box;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background-color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
  user-select: none;
}

/* When paired with images, text cards match the height of image cards */
.oe-dnd-card.oe-dnd-card-img-pair,
.oe-dnd-grid.with-images .oe-dnd-card {
  height: 155px;
  font-size: 20px;
  padding: 18px 24px;
}

.oe-dnd-card:hover:not(.matched) {
  border-color: #0079ff;
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 121, 255, 0.12);
}

.oe-dnd-card.selected {
  border-color: #0079ff;
  background-color: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(0, 121, 255, 0.25);
}

.oe-dnd-card.matched {
  border-color: #22c55e !important;
  background-color: #f0fdf4 !important;
  color: #15803d !important;
  cursor: default;
  transform: none !important;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15) !important;
}

.oe-dnd-card .btn-aud-mini {
  border: none;
  background: #f1f5f9;
  color: #0079ff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.oe-dnd-card .btn-aud-mini:hover {
  background: #0079ff;
  color: #ffffff;
  transform: scale(1.08);
}

.oe-dnd-card.matched .btn-aud-mini {
  background: #dcfce7;
  color: #166534;
}

.oe-dnd-img-card {
  height: 155px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  overflow: hidden;
  background-color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.oe-dnd-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}

.oe-dnd-img-card:hover:not(.matched) {
  border-color: #0079ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 121, 255, 0.15);
}

.oe-dnd-img-card:hover:not(.matched) img {
  transform: scale(1.03);
}

.oe-dnd-img-card.selected {
  border-color: #0079ff;
  box-shadow: 0 0 0 3px rgba(0, 121, 255, 0.3);
}

.oe-dnd-img-card.matched {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25) !important;
  cursor: default;
  transform: none !important;
}

.oe-dnd-img-matched-badge {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.oe-dnd-img-card.matched .oe-dnd-img-matched-badge {
  display: flex;
}

.oe-dnd-img-card.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
  animation: oeShake 0.4s ease;
}

/* --- 12. VICTORY CELEBRATION MODAL --- */
.oe-victory-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  padding: 40px 24px;
  margin: 0 auto;
}

.oe-victory-trophy {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.oe-victory-title {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.oe-victory-desc {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.5;
}

.oe-victory-badge-xp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  margin-bottom: 28px;
}


/* --- 13. CONTINUOUS PROGRESS BAR (LinearProgressBar & ProgressBarPointer) --- */
.oe-pager-progress-track {
  width: 140px;
  height: 6px;
  background-color: #e0f2fe;
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: center;
}

.oe-pager-progress-fill {
  height: 100%;
  background-color: #0079ff;
  border-radius: 3px;
  transition: width 0.25s ease;
}

.oe-pager-progress-pointer {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #0079ff;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  position: absolute;
  top: -3px;
  transform: translateX(-50%);
  transition: left 0.25s ease;
}

/* --- 14. TAB CAROUSEL (Vocabulary Words Showcase - Exact Image 3) --- */
.oe-tab-carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.oe-tab-carousel-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.oe-tab-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #0f172a;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.oe-tab-nav-arrow:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #0079ff;
  color: #0079ff;
  transform: translateY(-50%) scale(1.06);
}

.oe-tab-nav-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.oe-tab-nav-arrow.prev {
  left: -12px;
}

.oe-tab-nav-arrow.next {
  right: -12px;
}

.oe-tab-cards-slider {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  padding: 10px 30px 24px;
  box-sizing: border-box;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.oe-tab-cards-slider::-webkit-scrollbar {
  display: none;
}

.oe-tab-card {
  width: 360px;
  min-width: 360px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.oe-tab-card.active {
  box-shadow: 0 10px 28px rgba(0, 121, 255, 0.16);
  border-color: #cbd5e1;
  opacity: 1;
  transform: scale(1);
}

.oe-tab-card.inactive {
  opacity: 0.65;
  transform: scale(0.96);
}

.oe-tab-card.inactive:hover {
  opacity: 0.85;
}

.oe-tab-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.oe-tab-card-banner {
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.oe-tab-card.active .oe-tab-card-banner {
  background-color: #0079ff;
}

.oe-tab-card.inactive .oe-tab-card-banner {
  background-color: #b9ddff;
}

.oe-tab-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.oe-tab-card-scrubber {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.oe-tab-card-scrubber .btn-play {
  border: none;
  background: #f1f5f9;
  color: #0079ff;
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.oe-tab-card-scrubber .btn-play:hover {
  background: #e0f2fe;
}

.oe-tab-card-scrubber .track {
  flex: 1;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.oe-tab-card-scrubber .track-fill {
  height: 100%;
  background-color: #0079ff;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.oe-tab-card-scrubber .track-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #0079ff;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  position: absolute;
  top: -3px;
  left: 0%;
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 0.1s linear;
}

.oe-tab-card-def {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.5;
}

.oe-tab-card-def-trans {
  font-size: 13.5px;
  color: #64748b;
  font-style: italic;
  margin-top: 4px;
}

/* --- 15. KEYBOARD LEGEND (Module 4345) --- */
.oe-keyboard-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-top: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.oe-keyboard-legend .key {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  padding: 0 4px;
}

/* --- 16. LEARNING / INSTRUCTION SLIDE (Module 3962 InstructionSlideActivity) --- */
.oe-learning-container {
  max-width: 760px;
  width: 100%;
  margin: 16px auto 28px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.oe-learning-img-wrapper {
  width: 100%;
  max-height: 320px;
  background-color: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oe-learning-img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.oe-learning-text-card {
  padding: 24px 32px;
}

.oe-learning-body-en {
  font-size: 18px;
  line-height: 1.7;
  color: #0f172a;
}

.oe-learning-body-en p {
  margin-bottom: 12px;
}

.oe-learning-body-en ul {
  margin: 8px 0 16px 24px;
  list-style-type: disc;
}

.oe-learning-body-en li {
  margin-bottom: 6px;
  font-size: 18px;
}

.oe-learning-body-en strong {
  color: #0079ff;
  font-weight: 700;
}

.oe-learning-body-en em {
  font-style: italic;
  color: #64748b;
}

.oe-learning-body-es {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}

/* --- 17. SENTENCE UNSCRAMBLE ACTIVITY (Module 4359) --- */
.oe-unscramble-container {
  max-width: 680px;
  width: 100%;
  margin: 16px auto 28px;
}

.oe-unscramble-dropzone {
  min-height: 72px;
  padding: 14px 20px;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  background-color: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  transition: all 0.2s ease;
}

.oe-unscramble-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px;
  background-color: #f1f5f9;
  border-radius: 12px;
  margin-top: 16px;
}

.oe-unscramble-chip {
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.oe-unscramble-chip:hover:not(.used) {
  border-color: #0079ff;
  background-color: #f0f7ff;
}

.oe-placed-chip {
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background-color: #0079ff;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 121, 255, 0.25);
  transition: transform 0.1s ease;
}

.oe-placed-chip:hover {
  transform: translateY(-2px);
  background-color: #ef4444;
}

/* --- 18. TIB INPUT --- */
.oe-tib-input:focus {
  border-color: #0079ff !important;
  box-shadow: 0 0 0 3px rgba(0, 121, 255, 0.2);
}

/* --- 19. AUTHENTIC MULTI-TEMPLATE FEEDBACK SYSTEM (ALL 10 TEMPLATES) --- */
.oe-feedback-box {
  width: 100%;
  max-width: 620px;
  margin: 16px auto 10px;
  padding: 14px 20px;
  border-radius: 10px;
  display: none;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  animation: oeFeedbackFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

.oe-feedback-box.active {
  display: flex;
}

/* Green tone for Correct Feedback */
.oe-feedback-box.correct {
  background-color: #dcfce7;
  border: 1.5px solid #22c55e;
  color: #15803d;
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.16);
}

/* Red/Coral tone for Incorrect Feedback */
.oe-feedback-box.incorrect,
.oe-feedback-box.wrong {
  background-color: #fee2e2;
  border: 1.5px solid #ef4444;
  color: #b91c1c;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.16);
  animation: oeFeedbackFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1), oeShake 0.4s ease;
}

.oe-feedback-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.oe-feedback-box.correct .oe-feedback-icon {
  background-color: #22c55e;
  color: #ffffff;
}

.oe-feedback-box.incorrect .oe-feedback-icon,
.oe-feedback-box.wrong .oe-feedback-icon {
  background-color: #ef4444;
  color: #ffffff;
}

.oe-feedback-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  flex: 1;
}

.oe-feedback-text-en {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.oe-feedback-box.correct .oe-feedback-text-en {
  color: #15803d;
}

.oe-feedback-box.incorrect .oe-feedback-text-en,
.oe-feedback-box.wrong .oe-feedback-text-en {
  color: #b91c1c;
}

.oe-feedback-text-es {
  font-size: 13.5px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  opacity: 0.95;
  margin-top: 1px;
}

.oe-feedback-box.correct .oe-feedback-text-es {
  color: #166534;
}

.oe-feedback-box.incorrect .oe-feedback-text-es,
.oe-feedback-box.wrong .oe-feedback-text-es {
  color: #991b1b;
}

@keyframes oeFeedbackFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes oeShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
