.getmolms-app,
.getmolms-admin {
  --getmo-charcoal: #323232;
  --getmo-blue: #2570d9;
  --getmo-gold: #d79a21;
  --getmo-sand: #dede9a;
  --getmo-white: #ffffff;
  color: #171717;
  font-family: "Nunito Sans", Arial, sans-serif;
}

.getmolms-hero {
  background: var(--getmo-charcoal);
  color: var(--getmo-white);
  padding: 28px;
  margin-bottom: 18px;
}

.getmolms-hero h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
}

.getmolms-hero p {
  margin: 8px 0 0;
  max-width: 720px;
}

.getmolms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.getmolms-tabs a,
.getmolms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 0;
  border-radius: 4px;
  background: var(--getmo-blue);
  color: var(--getmo-white);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.getmolms-button-muted {
  background: var(--getmo-charcoal);
}

.getmolms-panel {
  margin: 0 0 22px;
  padding: 20px;
  background: #fff;
  border-left: 6px solid var(--getmo-gold);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.getmolms-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.getmolms-card,
.getmolms-admin-course {
  padding: 16px;
  background: #f8f6ed;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

.getmolms-form {
  display: grid;
  gap: 14px;
}

.getmolms-form-inline {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.getmolms-form label,
.getmolms-question label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.getmolms-form input,
.getmolms-form select,
.getmolms-form textarea,
.getmolms-question textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
}

.getmolms-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.getmolms-action-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.getmolms-table {
  width: 100%;
  border-collapse: collapse;
}

.getmolms-table th,
.getmolms-table td {
  padding: 10px;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
}

.getmolms-question {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #ddd;
}

.getmolms-media-note {
  padding: 10px;
  background: #edf4ff;
  color: #134b91;
}

@media (max-width: 700px) {
  .getmolms-hero {
    padding: 20px;
  }

  .getmolms-hero h1 {
    font-size: 28px;
  }
}

/* Catalog / student card images — consistent aspect, no stretch */
.getmolms-catalog .card-img-top,
.getmolms-student .card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

/* Hero image on course detail */
.getmolms-course > img {
  max-height: 360px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Avatar circles (with initials fallback) */
.getmolms-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--getmo-blue, #2570d9);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.getmolms-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.getmolms-avatar-xs { width: 24px; height: 24px; font-size: 11px; }
.getmolms-avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.getmolms-avatar-md { width: 56px; height: 56px; font-size: 22px; }
.getmolms-avatar-lg { width: 96px; height: 96px; font-size: 38px; }
.getmolms-avatar-initial {
  user-select: none;
  text-transform: uppercase;
}

/* Dashboard stats header — dark band like the screenshot */
.getmolms-stats-header {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  background: var(--getmo-charcoal, #323232);
  color: #fff;
  padding: 22px 18px;
  margin-bottom: 18px;
  border-radius: 6px;
}
.getmolms-stats-tile {
  text-align: center;
}
.getmolms-stats-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.getmolms-stats-label {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.getmolms-stats-identity {
  text-align: center;
}
.getmolms-stats-identity .getmolms-avatar {
  background: #fff;
  color: var(--getmo-charcoal, #323232);
}
@media (max-width: 700px) {
  .getmolms-stats-header {
    grid-template-columns: 1fr 1fr;
  }
  .getmolms-stats-identity {
    grid-column: 1 / -1;
    order: -1;
  }
}

/* Badge-earned toast */
.getmolms-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--getmo-gold, #d79a21), #f5c14a);
  color: #2a2300;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  animation: gm-toast-pop 320ms ease-out;
}
.getmolms-toast-icon {
  font-size: 28px;
  line-height: 1;
}
@keyframes gm-toast-pop {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Slim always-on student bar (top of every LMS page) */
.getmolms-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}
.getmolms-bar-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--getmo-blue, #2570d9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.getmolms-bar-avatar img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50%;
}
.getmolms-bar-name {
  font-weight: 700;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.getmolms-bar-chip {
  font-size: 14px;
  line-height: 1;
}
.getmolms-bar-xp {
  font-weight: 700;
  color: var(--getmo-gold, #d79a21);
  margin-left: auto;
}
.getmolms-bar-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.getmolms-bar-nav a {
  font-size: 12px;
  color: var(--getmo-blue, #2570d9);
  text-decoration: none;
  font-weight: 600;
  padding: 2px 4px;
  white-space: nowrap;
}
.getmolms-bar-nav a:hover { text-decoration: underline; }
.getmolms-bar-sep {
  color: #ccc;
  font-size: 12px;
  user-select: none;
}

@media (max-width: 540px) {
  .getmolms-bar { gap: 8px; padding: 4px 8px; font-size: 12px; }
  .getmolms-bar-name { max-width: 80px; }
  .getmolms-bar-nav { gap: 6px; }
}

/* Mobile-friendly attempts list — replaces the wide table */
.getmolms-attempts-list { display: flex; flex-direction: column; gap: 6px; }
.getmolms-attempt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  flex-wrap: wrap;
}
.getmolms-attempt-row:hover { border-color: var(--getmo-blue, #2570d9); background: #f8fbff; }
.getmolms-attempt-main { flex-grow: 1; min-width: 200px; }
.getmolms-attempt-title { font-weight: 700; }
.getmolms-attempt-sub { font-size: 12px; color: #666; }
.getmolms-attempt-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Inline mini progress bar — used on course/lesson tiles and roster rows */
.getmolms-mini-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
}
.getmolms-mini-progress-track {
  flex: 1 1 auto;
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  min-width: 80px;
}
.getmolms-mini-progress-fill {
  height: 100%;
  background: var(--getmo-blue, #2570d9);
  transition: width 200ms;
}
.getmolms-mini-progress-fill.is-complete { background: var(--getmo-gold, #d79a21); }
.getmolms-mini-progress-pct {
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  min-width: 36px;
  text-align: right;
}

/* Roster status pills */
.getmolms-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.getmolms-status-pill.on-track   { background: #d4f5d4; color: #145a14; }
.getmolms-status-pill.behind     { background: #fff3cd; color: #6a4f00; }
.getmolms-status-pill.inactive   { background: #fadcdc; color: #842029; }
.getmolms-status-pill.completed  { background: #fff5e0; color: #6a4f00; border: 1px solid #d79a21; }

.getmolms-class-summary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  background: #f8f9fa;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.getmolms-class-summary strong { color: #111; }

/* Progress summary (XP + next milestone) */
.getmolms-progress-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  background: linear-gradient(90deg, #2570d9 0%, #1a4fa0 100%);
  color: #fff;
  padding: 18px;
  border-radius: 8px;
  margin: 14px 0 8px;
}
.getmolms-progress-xp { text-align: center; min-width: 110px; }
.getmolms-progress-xp-num { font-size: 36px; font-weight: 800; line-height: 1; }
.getmolms-progress-xp-label { font-size: 12px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; }
.getmolms-progress-bar-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
}
.getmolms-progress-bar-fill {
  height: 100%;
  background: var(--getmo-gold, #f5c14a);
  transition: width 200ms ease-out;
}
@media (max-width: 600px) {
  .getmolms-progress-summary { flex-direction: column; align-items: stretch; text-align: center; }
}

/* My Progress page polish */
.getmolms-progress-page h1 { margin: 4px 0 18px; }
.getmolms-pp-section-h {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  border-bottom: 2px solid var(--getmo-gold, #d79a21);
  display: inline-block;
  padding-bottom: 4px;
}
.getmolms-pp-section-h small { color: #777; font-weight: 600; font-size: 14px; }

.getmolms-pp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.getmolms-pp-stat {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}
.getmolms-pp-stat-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #111;
}
.getmolms-pp-stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 4px;
}

.getmolms-pp-featured {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff8e6 0%, #ffe9b3 100%);
  border: 2px solid var(--getmo-gold, #d79a21);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0;
}
.getmolms-pp-featured-icon { font-size: 56px; line-height: 1; flex-shrink: 0; }
.getmolms-pp-featured h3 { margin: 0; color: #2a2300; }

.getmolms-pp-almost {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.getmolms-pp-almost-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--getmo-gold, #d79a21);
  border-radius: 6px;
  padding: 12px 14px;
}
.getmolms-pp-almost-icon { font-size: 36px; line-height: 1; flex-shrink: 0; }

.getmolms-pp-courses { display: flex; flex-direction: column; gap: 6px; }
.getmolms-pp-course-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  flex-wrap: wrap;
}
.getmolms-pp-course-row:hover { border-color: var(--getmo-blue, #2570d9); }

.getmolms-pp-activity {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.getmolms-pp-activity li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
}
.getmolms-pp-activity-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }

/* Badge gallery */
.getmolms-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.getmolms-badge-card {
  text-align: center;
  padding: 18px 12px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #fff;
}
.getmolms-badge-card.is-earned {
  background: linear-gradient(180deg, #fff8e6, #ffffff);
  border-color: var(--getmo-gold, #d79a21);
  box-shadow: 0 4px 14px rgba(215, 154, 33, 0.18);
}
.getmolms-badge-card.is-locked {
  opacity: 0.45;
  filter: grayscale(0.9);
}
.getmolms-badge-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}
.getmolms-badge-name {
  font-weight: 700;
  margin-bottom: 4px;
}
.getmolms-badge-desc {
  font-size: 13px;
  color: #555;
  min-height: 38px;
}
.getmolms-badge-meta {
  font-size: 12px;
  color: #777;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Business simulation */
.getmolms-sim-header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #2570d9 0%, #1a4fa0 100%);
  color: #fff;
  padding: 22px 24px;
  margin: 14px 0 6px;
  border-radius: 8px 8px 0 0;
}
.getmolms-sim-header h1 { color: #fff; margin: 0; line-height: 1.1; }
.getmolms-sim-header-icon {
  font-size: 56px;
  line-height: 1;
  flex-shrink: 0;
}
.getmolms-sim-status-pill {
  font-size: 12px;
  letter-spacing: 0.5px;
}
.getmolms-sim-progress {
  background: #f8f8f8;
  padding: 12px 18px;
  border-left: 3px solid var(--getmo-blue, #2570d9);
  border-right: 3px solid var(--getmo-blue, #2570d9);
}
.getmolms-sim-progress-track {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.getmolms-sim-progress-dot {
  flex: 1 1 auto;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  min-width: 20px;
}
.getmolms-sim-progress-dot.is-done    { background: var(--getmo-blue, #2570d9); }
.getmolms-sim-progress-dot.is-current { background: var(--getmo-gold, #d79a21); box-shadow: 0 0 8px rgba(215,154,33,0.6); }

.getmolms-sim-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: #2a2a2a;
  border-radius: 0 0 8px 8px;
  margin: 0 0 14px;
  overflow: hidden;
}
.getmolms-sim-stat {
  text-align: center;
  background: var(--getmo-charcoal, #323232);
  color: #fff;
  padding: 16px 12px;
}
.getmolms-sim-num { font-size: 28px; font-weight: 800; line-height: 1.1; }
.getmolms-sim-label {
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.getmolms-sim-delta {
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.6;
  font-weight: 600;
}
.getmolms-sim-delta.is-up   { color: #4ade80; opacity: 1; }
.getmolms-sim-delta.is-down { color: #f87171; opacity: 1; }

.getmolms-sim-recap {
  background: #fff8e6;
  border-left: 4px solid var(--getmo-gold, #d79a21);
  padding: 12px 16px;
  border-radius: 4px;
}
.getmolms-sim-recap-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6a4f00;
  margin-bottom: 4px;
  font-weight: 700;
}
.getmolms-sim-recap-decision { margin-bottom: 4px; }
.getmolms-sim-recap-event    { margin-bottom: 4px; color: #4a3500; }
.getmolms-sim-recap-totals   { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(215,154,33,0.3); }

.getmolms-decision {
  display: block;
  cursor: pointer;
  transition: border-color 120ms, transform 120ms, box-shadow 120ms;
}
.getmolms-decision:hover {
  border-color: var(--getmo-blue, #2570d9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Upload progress bar */
.getmolms-progress {
  width: 220px;
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.getmolms-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--getmo-blue, #2570d9);
  transition: width 120ms linear;
}

/* Profile crop panel */
.getmolms-crop-panel {
  margin: 16px 0;
  padding: 12px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}
.getmolms-crop-area {
  max-width: 480px;
  max-height: 480px;
  margin: 0 auto;
}
.getmolms-crop-area img {
  display: block;
  max-width: 100%;
  height: auto;
}
