/* ============================
   SSO MoE Platform - Core Styles
   Matches SSO Operations Hub aesthetic
   ============================ */

:root {
  --b1: #0c3455;
  --b2: #238c92;
  --b3: #3ec2cf;
  --g1: #00a14f;
  --g2: #8cc747;
  --g3: #d5d839;
  --gr: #363436;
  --lt: #f7f9fb;
  --vs: #e85d3a;
  --warn: #f39c12;
  --myth: #7b1fa2;
  --shadow: rgba(12,52,85,0.08);
  --radius: 10px;
}

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

body {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  background: #eef2f6;
  color: var(--gr);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
}

a { color: var(--b2); text-decoration: none; }
a:hover { color: var(--b1); }

/* ===== LAYOUT ===== */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--b1) 0%, #0a2a44 100%);
  color: #fff;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo h2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.sidebar-logo .subtitle {
  font-size: 0.68rem;
  color: var(--b3);
  font-weight: 600;
  margin-top: 2px;
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.nav-section-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  padding: 16px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.nav-item.active {
  background: rgba(62,194,207,0.1);
  color: var(--b3);
  border-left-color: var(--b3);
}

.nav-item .nav-icon {
  width: 20px;
  margin-right: 10px;
  text-align: center;
  font-size: 0.9rem;
}

.nav-item .progress-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-left: auto;
  background: rgba(255,255,255,0.15);
}

.nav-item .progress-dot.complete { background: var(--g1); }
.nav-item .progress-dot.partial { background: var(--warn); }

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem;
}

.sidebar-user .user-name { font-weight: 700; color: #fff; }
.sidebar-user .user-company { color: rgba(255,255,255,0.5); margin-top: 2px; }
.sidebar-user a { color: var(--b3); font-weight: 600; margin-top: 6px; display: inline-block; font-size: 0.7rem; }

.main-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
}

/* ===== TOP BAR ===== */

.top-bar {
  background: #fff;
  padding: 16px 32px;
  border-bottom: 1px solid #e4e9ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--b1);
}

.breadcrumb {
  font-size: 0.72rem;
  color: #8899aa;
  font-weight: 600;
}

.breadcrumb a { color: var(--b2); }
.breadcrumb .sep { margin: 0 6px; color: #ccd; }

/* ===== CONTENT AREA ===== */

.content-area { padding: 28px 32px 48px; max-width: 1100px; }

/* ===== HERO BANNER ===== */

.hero-banner {
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 60%, var(--b3) 100%);
  color: #fff;
  padding: 40px 36px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.hero-banner h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-banner p {
  font-size: 0.88rem;
  opacity: 0.85;
  max-width: 600px;
  line-height: 1.6;
}

.hero-banner .stats-row {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.hero-banner .stat {
  text-align: center;
}

.hero-banner .stat .num {
  font-size: 1.8rem;
  font-weight: 800;
}

.hero-banner .stat .lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
  font-weight: 600;
}

/* ===== CARDS ===== */

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--b1);
}

/* ===== QUARTER CARDS ===== */

.quarter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.quarter-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.quarter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(12,52,85,0.12);
}

.quarter-card .q-header {
  padding: 16px 20px;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
}

.quarter-card .q-body { padding: 16px 20px; }

.quarter-card .q-theme {
  font-size: 0.78rem;
  color: #667;
  font-style: italic;
  margin-bottom: 12px;
}

.quarter-card .q-months { font-size: 0.74rem; color: #889; }
.quarter-card .q-months span { display: block; margin-bottom: 3px; }

.quarter-card .q-progress {
  margin-top: 12px;
}

/* ===== PROGRESS BAR ===== */

.progress-bar {
  background: #eef2f6;
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.progress-bar .fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #8899aa;
  margin-top: 4px;
}

/* ===== MONTH LIST ===== */

.month-list { margin-bottom: 24px; }

.month-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 16px 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 4px solid transparent;
}

.month-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(12,52,85,0.1);
}

.month-item .month-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  margin-right: 16px;
  flex-shrink: 0;
}

.month-item .month-info { flex: 1; }
.month-item .month-title { font-weight: 700; font-size: 0.85rem; color: var(--b1); }
.month-item .month-theme { font-size: 0.74rem; color: #889; margin-top: 2px; }

.month-item .month-progress {
  width: 100px;
  margin-left: 16px;
}

/* ===== WEEK/LESSON LIST ===== */

.week-list { margin-bottom: 24px; }

.week-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px var(--shadow);
  padding: 14px 18px;
  margin-bottom: 8px;
  transition: all 0.15s;
}

.week-item:hover { background: var(--lt); }

.week-item .week-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--b1);
  margin-right: 14px;
  flex-shrink: 0;
  border: 2px solid #dde5ec;
}

.week-item .week-num.complete {
  background: var(--g1);
  color: #fff;
  border-color: var(--g1);
}

.week-item .week-title { flex: 1; font-weight: 600; font-size: 0.82rem; color: var(--gr); }
.week-item .week-title a { color: var(--gr); }
.week-item .week-title a:hover { color: var(--b2); }

.week-item .status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.complete { background: rgba(0,161,79,0.1); color: var(--g1); }
.status-badge.locked { background: #f0f0f0; color: #aaa; }

/* ===== ACCENT BOXES (Founder Trap, Myth Buster, etc.) ===== */

.accent-box {
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 16px;
  border-left: 5px solid;
}

.accent-box .accent-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.accent-box p { font-size: 0.82rem; line-height: 1.6; }

.accent-box.biz-now { background: #fff8e1; border-color: #f57c00; }
.accent-box.biz-now .accent-label { color: #f57c00; }

.accent-box.founder-trap { background: #fff3e0; border-color: #d32f2f; }
.accent-box.founder-trap .accent-label { color: #d32f2f; }

.accent-box.myth-buster { background: #ede7f6; border-color: var(--myth); }
.accent-box.myth-buster .accent-label { color: var(--myth); }

.accent-box.strategist-qs { background: #e3f2fd; border-color: #1565c0; }
.accent-box.strategist-qs .accent-label { color: #1565c0; }
.accent-box.strategist-qs ul { padding-left: 18px; margin-top: 6px; }
.accent-box.strategist-qs li { font-size: 0.82rem; margin-bottom: 4px; }

.accent-box.action-item { background: #e8f5e9; border-color: #2e7d32; }
.accent-box.action-item .accent-label { color: #2e7d32; }
.accent-box.action-item p { font-weight: 600; }

/* ===== LESSON PAGE ===== */

.lesson-header {
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 100%);
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.lesson-header .lesson-meta {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.lesson-header h1 {
  font-size: 1.3rem;
  font-weight: 800;
}

.video-container {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.video-placeholder .icon { font-size: 3rem; margin-bottom: 8px; }

.lesson-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.lesson-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--lt);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--b1);
  transition: all 0.15s;
}

.lesson-nav a:hover { background: var(--b1); color: #fff; }

.complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}

.complete-btn.mark-complete {
  background: var(--g1);
  color: #fff;
}

.complete-btn.mark-complete:hover { background: #008a43; }

.complete-btn.completed {
  background: #e8f5e9;
  color: var(--g1);
}

/* ===== SCORECARD ===== */

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

.scorecard-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--b1);
  font-weight: 700;
}

.scorecard-table td {
  padding: 12px 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid #eef1f5;
}

.scorecard-table tr:nth-child(odd) td { background: #fafbfd; }

.scorecard-select {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 2px solid #dde5ec;
  cursor: pointer;
  background: #fff;
}

.scorecard-select.got-it { border-color: var(--g1); color: var(--g1); background: #e8f5e9; }
.scorecard-select.getting-there { border-color: var(--warn); color: #856404; background: #fff8e1; }

/* ===== ADMIN ===== */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 18px 20px;
  text-align: center;
}

.admin-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--b1);
}

.admin-stat .lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8899aa;
  font-weight: 600;
  margin-top: 2px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--b1);
  font-weight: 700;
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef1f5;
}

.admin-table tr:nth-child(odd) td { background: #fafbfd; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge.active { background: rgba(0,161,79,0.1); color: var(--g1); }
.badge.inactive { background: #f0f0f0; color: #999; }
.badge.admin { background: rgba(12,52,85,0.08); color: var(--b1); }
.badge.launch { background: rgba(35,140,146,0.1); color: var(--b2); }
.badge.accelerate { background: rgba(0,161,79,0.1); color: var(--g1); }
.badge.dominate { background: rgba(232,93,58,0.1); color: var(--vs); }

/* ===== FORMS ===== */

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #8899aa;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #dde5ec;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--gr);
  transition: border-color 0.15s;
}

.form-input:focus { outline: none; border-color: var(--b2); }

.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #dde5ec;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary { background: var(--b1); color: #fff; }
.btn-primary:hover { background: var(--b2); color: #fff; }

.btn-green { background: var(--g1); color: #fff; }
.btn-green:hover { background: #008a43; color: #fff; }

.btn-danger { background: var(--vs); color: #fff; }
.btn-danger:hover { background: #c74425; color: #fff; }

.btn-sm { padding: 5px 14px; font-size: 0.72rem; }

/* ===== LOGIN PAGE ===== */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 50%, var(--b3) 100%);
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  padding: 40px 36px;
  width: 400px;
  max-width: 95vw;
}

.login-card .logo-area {
  text-align: center;
  margin-bottom: 28px;
}

.login-card .logo-area h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--b1);
  margin-bottom: 4px;
}

.login-card .logo-area p {
  font-size: 0.78rem;
  color: #8899aa;
}

.login-card .error-msg {
  background: rgba(232,93,58,0.08);
  color: var(--vs);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .content-area { padding: 16px; }
  .hero-banner { padding: 24px 20px; }
  .hero-banner h1 { font-size: 1.2rem; }
  .quarter-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
