@import url("assets/vendor/fonts/fonts.css");

/* =====================================
   ROOT VARIABLES
===================================== */

:root {
  --evolyn-purple: #7457e8;
  --evolyn-purple-dark: #5d42ce;
  --evolyn-dark: #17152a;
  --evolyn-text: #242235;
  --evolyn-muted: #777487;
  --evolyn-light: #f7f6fb;
  --evolyn-border: #e9e7f0;
  --white: #ffffff;
}

/* =====================================
   GLOBAL
===================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--evolyn-text);
  background: var(--evolyn-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Manrope", sans-serif;
}

a {
  text-decoration: none;
}

button,
a {
  transition: all 0.2s ease;
}

/* =====================================
   BRAND ICON (used in navbar and auth pages)
===================================== */

.brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--evolyn-purple), #9a7cff);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 10px 25px rgba(116, 87, 232, 0.25);
}

/* =====================================
   AUTH PAGES (login.php, register.php)
===================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, #e9e3ff, transparent 35%),
    radial-gradient(circle at bottom left, #eee9ff, transparent 35%), #f7f6fb;
}

.auth-container {
  width: 100%;
  max-width: 460px;
  padding: 25px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.auth-brand h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 1px;
}

.auth-brand p {
  margin: 2px 0 0;
  color: var(--evolyn-muted);
  font-size: 12px;
}

.auth-card {
  background: white;
  border: 1px solid var(--evolyn-border);
  border-radius: 22px;
  padding: 35px;
  box-shadow: 0 25px 70px rgba(38, 31, 75, 0.1);
}

.section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--evolyn-purple);
}

.auth-card h2 {
  font-size: 29px;
  font-weight: 800;
  margin-top: 7px;
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  color: var(--evolyn-muted);
  font-size: 13px;
}

.auth-footer a {
  color: var(--evolyn-purple);
  font-weight: 700;
}

/* =====================================
   FORM ELEMENTS
===================================== */

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #29263a;
  margin-bottom: 8px;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid #dfdce8;
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 14px;
  color: #29263a;
  background: #ffffff;
}

textarea.form-control {
  min-height: auto;
  resize: vertical;
}

.form-control::placeholder {
  color: #aaa6b7;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--evolyn-purple);
  box-shadow: 0 0 0 4px rgba(116, 87, 232, 0.1);
}

/* =====================================
   BUTTONS
===================================== */

.btn-evolyn {
  min-height: 48px;
  border-radius: 11px;
  border: none;
  color: white;
  background: linear-gradient(
    135deg,
    var(--evolyn-purple),
    var(--evolyn-purple-dark)
  );
  font-weight: 700;
  padding: 11px 18px;
  box-shadow: 0 10px 22px rgba(116, 87, 232, 0.22);
}

.btn-evolyn:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 13px 25px rgba(116, 87, 232, 0.28);
}

.btn-outline-evolyn {
  border: 1px solid var(--evolyn-border);
  color: var(--evolyn-text);
  background: white;
}

.btn-outline-evolyn:hover {
  border-color: var(--evolyn-purple);
  color: var(--evolyn-purple);
}

/* =====================================
   APPLICATION SHELL (dashboard pages)
===================================== */

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

/* =====================================
   SIDEBAR
===================================== */

.sidebar {
  width: 250px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 24px 16px;
  color: white;
  background: linear-gradient(180deg, #1b192d, #151327);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 10px 28px;
}

.sidebar-brand h4 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 1px;
}

.sidebar-brand small {
  color: #878398;
  font-size: 9px;
}

.sidebar .brand-icon {
  width: 38px;
  height: 38px;
  font-size: 16px;
}

.sidebar-section {
  padding: 17px 12px 9px;
}

.sidebar-section span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #716c82;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  margin-bottom: 4px;
  border-radius: 10px;
  color: #a09bad;
  font-size: 12px;
}

.sidebar-link i {
  width: 18px;
  font-size: 14px;
}

.sidebar-link:hover {
  color: white;
  background: #29263f;
}

.sidebar-link.active {
  color: white;
  background: linear-gradient(90deg, #7657e8, #6748d7);
  box-shadow: 0 8px 20px rgba(116, 87, 232, 0.22);
}

.account-section {
  margin-top: 15px;
}

.sidebar-bottom {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: #716c82;
}

.sidebar-bottom strong {
  display: block;
  color: #c9b8ff;
  font-size: 11px;
}

/* =====================================
   APP CONTENT
===================================== */

.app-content {
  margin-left: 250px;
  flex: 1;
}

.topbar {
  background: white;
  border-bottom: 1px solid var(--evolyn-border);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-title {
  font-weight: 800;
  font-size: 15px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--evolyn-purple), #9a7cff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.page-content {
  padding: 32px;
}

.page-title h2 {
  font-weight: 800;
  margin: 6px 0;
}

.page-title p {
  color: var(--evolyn-muted);
  margin: 0;
}

.card {
  border: 1px solid var(--evolyn-border);
  border-radius: 16px;
}

.programme-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(116, 87, 232, 0.1);
  color: var(--evolyn-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.status-active {
  background: #e5f7ec;
  color: #1e8e4a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-draft {
  background: #fdf1dc;
  color: #a5701f;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.programme-card {
  border: 1px solid var(--evolyn-border);
  border-radius: 16px;
  transition: 0.2s ease;
}

.programme-card:hover {
  border-color: var(--evolyn-purple);
  box-shadow: 0 10px 30px rgba(116, 87, 232, 0.1);
}

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

@media (max-width: 991px) {
  .sidebar {
    display: none;
  }
  .app-content {
    margin-left: 0;
  }
}

/* =====================================
   LANDING PAGE
===================================== */

.landing-navbar {
  background: var(--evolyn-dark);

  padding: 18px 0;
}

.landing-navbar .navbar-brand {
  color: white;

  font-weight: 800;

  font-size: 18px;

  letter-spacing: 1px;
}

.hero-section {
  background: var(--evolyn-dark);

  color: white;

  padding: 80px 0;
}

.hero-badge {
  display: inline-block;

  background: rgba(116, 87, 232, 0.18);

  border: 1px solid rgba(116, 87, 232, 0.4);

  color: #c9b8ff;

  font-size: 13px;

  font-weight: 600;

  padding: 6px 14px;

  border-radius: 20px;

  margin-bottom: 20px;
}

.hero-title {
  font-family: "Manrope", sans-serif;

  font-weight: 800;

  font-size: 44px;

  line-height: 1.15;

  color: white;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.7);

  font-size: 17px;

  margin: 20px 0 28px;

  max-width: 480px;
}

.stat-number {
  font-family: "Manrope", sans-serif;

  font-weight: 800;

  color: white;

  margin-bottom: 2px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.5);
}

/* --- the live demo card in the hero --- */

.demo-box {
  background: white;

  border-radius: 20px;

  padding: 28px;

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.badge-demo {
  background: var(--evolyn-purple);

  color: white;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.5px;

  padding: 5px 12px;

  border-radius: 20px;
}

.demo-question {
  font-weight: 700;

  color: var(--evolyn-text);

  font-size: 16px;

  margin-bottom: 18px;
}

.demo-choice {
  display: block;

  width: 100%;

  text-align: left;

  background: white;

  border: 1px solid var(--evolyn-border);

  border-radius: 12px;

  padding: 13px 15px;

  margin-bottom: 10px;

  font-size: 14px;

  color: var(--evolyn-text);

  cursor: pointer;
}

.demo-choice:hover:not(:disabled) {
  border-color: var(--evolyn-purple);

  background: #faf9ff;
}

.demo-choice:disabled {
  cursor: default;
}

.demo-choice.choice-good {
  border-color: #2e9e5b;

  background: #eafbf1;
}

.demo-choice.choice-bad,
.demo-choice.choice-ok {
  border-color: #d99a2b;

  background: #fff7e8;
}

.demo-feedback {
  display: none;

  margin-top: 14px;

  padding: 14px 16px;

  border-radius: 12px;

  font-size: 14px;
}

.demo-feedback.show {
  display: block;
}

.demo-feedback.feedback-good {
  background: #eafbf1;

  color: #1e6b3f;
}

.demo-feedback.feedback-ok {
  background: #fff7e8;

  color: #8a5f10;
}

.demo-score {
  display: inline-block;

  margin-top: 10px;

  font-size: 12px;

  font-weight: 700;

  padding: 4px 10px;

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.7);
}

/* --- generic public section --- */

.section-block {
  padding: 80px 0;
}

.section-title {
  font-family: "Manrope", sans-serif;

  font-weight: 800;

  font-size: 30px;

  margin: 10px 0 12px;
}

.section-sub {
  color: var(--evolyn-muted);

  font-size: 15px;
}

/* --- the 4 step flow cards --- */

.flow-card {
  background: white;

  border: 1px solid var(--evolyn-border);

  border-radius: 16px;

  padding: 26px 22px;

  height: 100%;
}

.flow-number {
  width: 36px;

  height: 36px;

  border-radius: 10px;

  background: var(--evolyn-dark);

  color: white;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: 800;

  margin-bottom: 16px;
}

.flow-card h5 {
  font-weight: 700;

  margin-bottom: 8px;
}

.flow-card p {
  color: var(--evolyn-muted);

  font-size: 14px;

  margin: 0;
}

/* --- trainer / learner audience cards --- */

.audience-card {
  background: white;

  border: 1px solid var(--evolyn-border);

  border-radius: 18px;

  padding: 32px;

  height: 100%;
}

.audience-card.audience-dark {
  background: var(--evolyn-dark);

  border-color: transparent;

  color: white;
}

.audience-tag {
  font-size: 12px;

  font-weight: 800;

  letter-spacing: 1px;

  color: var(--evolyn-purple);
}

.audience-dark .audience-tag {
  color: #c9b8ff;
}

.audience-card h4 {
  font-weight: 700;

  margin: 12px 0 18px;
}

.audience-list {
  list-style: none;

  padding: 0;

  margin: 0;
}

.audience-list li {
  padding: 10px 0;

  border-top: 1px solid var(--evolyn-border);

  font-size: 14px;

  color: var(--evolyn-muted);
}

.audience-dark .audience-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);

  color: rgba(255, 255, 255, 0.65);
}

.audience-list li:first-child {
  border-top: none;
}

.audience-list li b {
  color: var(--evolyn-text);

  display: block;
}

.audience-dark .audience-list li b {
  color: white;
}

/* --- feature boxes --- */

.feature-box {
  background: white;

  border: 1px solid var(--evolyn-border);

  border-radius: 16px;

  padding: 26px;

  height: 100%;
}

.feature-icon {
  font-size: 26px;

  color: var(--evolyn-purple);

  margin-bottom: 14px;

  display: block;
}

.feature-box h5 {
  font-weight: 700;

  margin-bottom: 8px;
}

.feature-box p {
  color: var(--evolyn-muted);

  font-size: 14px;

  margin: 0;
}

/* --- call to action box --- */

.cta-box {
  background: var(--evolyn-dark);

  color: white;

  border-radius: 20px;

  padding: 46px 42px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  flex-wrap: wrap;

  gap: 20px;
}

.cta-box h3 {
  font-weight: 800;

  margin-bottom: 6px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.65);
}

/* --- footer --- */

.landing-footer {
  background: var(--evolyn-dark);

  color: rgba(255, 255, 255, 0.55);

  padding: 26px 0;

  font-size: 13px;
}

.landing-footer a {
  color: rgba(255, 255, 255, 0.8);
}

/* --- responsive --- */

@media (max-width: 991px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-section {
    padding: 50px 0;
  }

  .section-block {
    padding: 50px 0;
  }

  .cta-box {
    flex-direction: column;

    text-align: center;
  }
}

/* =========================================================
   LANDING PAGE NAVIGATION
========================================================= */

.landing-navbar {
  padding: 18px 0;
  background: #17152a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.landing-navbar .navbar-brand {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.landing-navbar .nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 14px;
  margin: 0 7px;
  transition: 0.2s ease;
}

.landing-navbar .nav-link:hover,
.landing-navbar .nav-link.active {
  color: #ffffff;
}

.landing-navbar .nav-link.active {
  position: relative;
}

.landing-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7457e8;
  transform: translateX(-50%);
}

.landing-navbar .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 10px;
}

.landing-navbar .navbar-toggler:focus {
  box-shadow: none;
}

/* =========================================================
   ABOUT SECTION
========================================================= */

.about-section {
  background: #ffffff;
}

.about-panel {
  background: #f7f6fb;
  border: 1px solid #e8e6f0;
  border-radius: 22px;
  padding: 12px;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.about-item:hover {
  background: #ffffff;
  transform: translateX(4px);
}

.about-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: #eae5ff;
  color: #7457e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.about-item h5 {
  margin: 2px 0 7px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  color: #17152a;
}

.about-item p {
  margin: 0;
  color: #747184;
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 991px) {
  .landing-navbar .navbar-collapse {
    margin-top: 18px;
    padding: 18px;
    background: #211e38;
    border-radius: 16px;
  }

  .landing-navbar .nav-link {
    padding: 10px 4px;
    margin: 0;
  }

  .landing-navbar .nav-link.active::after {
    display: none;
  }

  .landing-navbar .d-flex {
    margin-top: 12px;
  }
}

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

.login-page {
  margin: 0;
  min-height: 100vh;
  background: #f7f6fb;
  font-family: "DM Sans", sans-serif;
  color: #17152a;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
}

/* =========================================================
   LEFT SHOWCASE
   ========================================================= */

.login-showcase {
  width: 50%;
  min-height: 100vh;
  background: #17152a;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.login-showcase::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(116, 87, 232, 0.16);
  top: -220px;
  right: -160px;
}

.login-showcase::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(116, 87, 232, 0.1);
  bottom: -180px;
  left: -150px;
}

.login-showcase-content {
  min-height: 100vh;
  padding: 42px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* LOGO */

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  width: fit-content;
}

.login-logo:hover {
  color: #ffffff;
}

.login-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #7457e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 20px;
}

.login-logo span,
.login-logo > span {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}

/* MESSAGE */

.login-message {
  margin: auto 0;
  max-width: 560px;
}

.login-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #a99bff;
  margin-bottom: 20px;
}

.login-message h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 800;
  margin: 0 0 24px;
}

.login-message h1 span {
  color: #9b8bff;
}

.login-message > p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 42px;
}

/* FLOW */

.login-flow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-flow-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-flow-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8acff;
}

.login-flow-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.login-flow-item small {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  margin-top: 2px;
}

.login-flow-line {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* BOTTOM */

.login-bottom {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

/* =========================================================
   RIGHT FORM AREA
   ========================================================= */

.login-form-area {
  width: 50%;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* BACK HOME */

.back-home {
  position: absolute;
  top: 36px;
  right: 50px;
  color: #77738a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.back-home i {
  margin-right: 6px;
}

.back-home:hover {
  color: #7457e8;
}

/* FORM */

.login-form-container {
  width: 100%;
  max-width: 450px;
  margin: auto;
  padding: 50px 30px;
}

.login-heading {
  margin-bottom: 34px;
}

.login-heading .section-label {
  display: inline-block;
  color: #7457e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 13px;
}

.login-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
  color: #17152a;
}

.login-heading p {
  margin: 0;
  color: #858192;
  font-size: 14px;
  line-height: 1.6;
}

/* ERROR */

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #fff4f4;
  border: 1px solid #f4d6d6;
  color: #a94442;
}

.login-error-icon {
  font-size: 17px;
  margin-top: 1px;
}

.login-error strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.login-error p {
  margin: 0;
  font-size: 12px;
}

/* FIELD */

.login-field {
  margin-bottom: 21px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #302d3d;
  margin-bottom: 8px;
}

.login-input {
  position: relative;
}

.login-input > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9b97a8;
  font-size: 16px;
  pointer-events: none;
}

.login-input input {
  width: 100%;
  height: 52px;
  border: 1px solid #e4e1eb;
  border-radius: 13px;
  background: #fcfbfe;
  padding: 0 46px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #17152a;
  outline: none;
  transition: 0.2s ease;
}

.login-input input::placeholder {
  color: #b2aebb;
}

.login-input input:focus {
  border-color: #7457e8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(116, 87, 232, 0.09);
}

/* PASSWORD */

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9692a3;
  font-size: 16px;
  padding: 5px;
}

.password-toggle:hover {
  color: #7457e8;
}

/* OPTIONS */

.login-options {
  margin-top: -3px;
  margin-bottom: 24px;
}

.remember-option {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #77738a !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

.remember-option input {
  width: 15px;
  height: 15px;
  accent-color: #7457e8;
  cursor: pointer;
}

/* SUBMIT */

.login-submit {
  width: 100%;
  height: 53px;
  border: 0;
  border-radius: 13px;
  background: #7457e8;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 8px 20px rgba(116, 87, 232, 0.18);
}

.login-submit:hover {
  background: #5d42ce;
  transform: translateY(-1px);
  box-shadow: 0 11px 25px rgba(116, 87, 232, 0.24);
}

.login-submit i {
  font-size: 16px;
  transition: 0.2s ease;
}

.login-submit:hover i {
  transform: translateX(3px);
}

/* REGISTER */

.login-register {
  text-align: center;
  margin-top: 26px;
  font-size: 13px;
  color: #8a8695;
}

.login-register a {
  color: #7457e8;
  text-decoration: none;
  font-weight: 700;
  margin-left: 5px;
}

.login-register a:hover {
  color: #5d42ce;
}

.login-register i {
  font-size: 10px;
  margin-left: 2px;
}

/* MOBILE FOOTER */

.login-mobile-footer {
  display: none;
}

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

@media (max-width: 1000px) {
  .login-showcase {
    width: 45%;
  }

  .login-form-area {
    width: 55%;
  }

  .login-showcase-content {
    padding: 35px 35px;
  }

  .login-message h1 {
    font-size: 42px;
  }

  .login-flow {
    flex-wrap: wrap;
  }

  .login-flow-line {
    display: none;
  }

  .back-home {
    right: 30px;
  }
}

@media (max-width: 768px) {
  .login-wrapper {
    display: block;
  }

  .login-showcase {
    width: 100%;
    min-height: auto;
    height: auto;
  }

  .login-showcase-content {
    min-height: auto;
    padding: 28px 25px 35px;
  }

  .login-message {
    margin: 55px 0 35px;
  }

  .login-message h1 {
    font-size: 40px;
  }

  .login-message > p {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .login-flow-item {
    flex: 1;
  }

  .login-flow-item small {
    font-size: 9px;
  }

  .login-bottom {
    display: none;
  }

  .login-form-area {
    width: 100%;
    min-height: auto;
  }

  .back-home {
    display: none;
  }

  .login-form-container {
    max-width: 100%;
    padding: 45px 25px 35px;
    margin: 0;
  }

  .login-heading h2 {
    font-size: 30px;
  }

  .login-mobile-footer {
    display: flex;
    justify-content: space-between;
    padding: 0 25px 28px;
    color: #aaa6b4;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .login-showcase-content {
    padding: 24px 20px 30px;
  }

  .login-logo-icon {
    width: 38px;
    height: 38px;
  }

  .login-logo span,
  .login-logo > span {
    font-size: 18px;
  }

  .login-message {
    margin-top: 45px;
  }

  .login-message h1 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }

  .login-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .login-flow-item {
    flex: none;
  }

  .login-form-container {
    padding: 38px 20px 30px;
  }
}

/* =========================================================
   FINAL LOGIN OVERRIDE
   Keep login full-screen and prevent Bootstrap/global rules
   from changing the two-column structure.
========================================================= */

html,
body.login-page {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body.login-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #ffffff;
}

body.login-page .login-wrapper {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  margin: 0;
  padding: 0;
}

body.login-page .login-showcase {
  width: 50%;
  flex: 0 0 50%;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

body.login-page .login-showcase-content {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

body.login-page .login-form-area {
  width: 50%;
  flex: 0 0 50%;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

body.login-page .login-form-container {
  width: min(450px, calc(100% - 80px));
  max-width: 450px;
  margin: 0 auto;
  padding: 30px 0;
}

body.login-page .login-input input {
  display: block;
  width: 100%;
  height: 52px;
}

body.login-page .password-toggle {
  z-index: 5;
}

body.login-page .back-home {
  z-index: 10;
}

@media (max-width: 900px) {
  body.login-page .login-showcase {
    width: 45%;
    flex-basis: 45%;
  }

  body.login-page .login-form-area {
    width: 55%;
    flex-basis: 55%;
  }

  body.login-page .login-showcase-content {
    padding: 35px;
  }

  body.login-page .login-message h1 {
    font-size: 42px;
  }

  body.login-page .login-form-container {
    width: calc(100% - 50px);
  }
}

@media (max-width: 768px) {
  body.login-page .login-wrapper {
    display: block;
    height: auto;
    min-height: 100vh;
  }

  body.login-page .login-showcase,
  body.login-page .login-form-area {
    width: 100%;
    flex-basis: 100%;
    height: auto;
    min-height: auto;
  }

  body.login-page .login-showcase-content {
    height: auto;
    min-height: auto;
    padding: 28px 25px 35px;
  }

  body.login-page .login-form-container {
    width: 100%;
    max-width: 100%;
    padding: 45px 25px 35px;
  }

  body.login-page .back-home {
    display: none;
  }
}

/* =========================================================
   EVOLYN DASHBOARD - FINAL CLEAN LAYOUT
========================================================= */

/* ---------- GLOBAL DASHBOARD BOX SIZING ---------- */

body:not(.login-page),
body:not(.login-page) * {
  box-sizing: border-box;
}

body:not(.login-page) {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================================================
   APP SHELL
========================================================= */

body:not(.login-page) .app-shell {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-height: 100vh !important;
}

/* =========================================================
   SIDEBAR
========================================================= */

body:not(.login-page) .sidebar {
  position: fixed !important;

  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;

  width: 250px !important;
  height: 100vh !important;
  min-height: 100vh !important;

  padding: 24px 16px !important;

  background: linear-gradient(180deg, #1b192d 0%, #151327 100%) !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  z-index: 1000 !important;
}

/* Sidebar scrollbar */

body:not(.login-page) .sidebar::-webkit-scrollbar {
  width: 5px;
}

body:not(.login-page) .sidebar::-webkit-scrollbar-track {
  background: transparent;
}

body:not(.login-page) .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

/* =========================================================
   SIDEBAR BRAND
========================================================= */

body:not(.login-page) .sidebar-brand {
  display: flex !important;
  align-items: center !important;

  gap: 11px !important;

  width: 100% !important;

  padding: 5px 10px 28px !important;
}

body:not(.login-page) .sidebar-brand h4 {
  margin: 0 !important;

  color: #ffffff !important;

  font-size: 17px !important;
  font-weight: 800 !important;

  letter-spacing: 1px !important;
}

body:not(.login-page) .sidebar-brand small {
  display: block !important;

  margin-top: 2px;

  color: #878398 !important;

  font-size: 9px !important;
}

/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

body:not(.login-page) .sidebar-section {
  padding: 17px 12px 9px !important;
}

body:not(.login-page) .sidebar-section span {
  color: #716c82 !important;

  font-size: 9px !important;
  font-weight: 700 !important;

  letter-spacing: 1.5px !important;
}

body:not(.login-page) .sidebar-link {
  display: flex !important;
  align-items: center !important;

  gap: 13px !important;

  width: 100% !important;

  padding: 12px 13px !important;
  margin-bottom: 4px !important;

  border-radius: 10px !important;

  color: #a09bad !important;

  font-size: 12px !important;
}

body:not(.login-page) .sidebar-link i {
  width: 18px !important;

  flex-shrink: 0;

  font-size: 14px !important;

  text-align: center;
}

body:not(.login-page) .sidebar-link:hover {
  color: #ffffff !important;

  background: #29263f !important;
}

body:not(.login-page) .sidebar-link.active {
  color: #ffffff !important;

  background: linear-gradient(90deg, #7657e8, #6748d7) !important;

  box-shadow: 0 8px 20px rgba(116, 87, 232, 0.22) !important;
}

/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

body:not(.login-page) .sidebar-bottom {
  position: absolute !important;

  left: 16px !important;
  right: 16px !important;
  bottom: 20px !important;

  padding-top: 15px !important;

  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;

  color: #716c82 !important;

  font-size: 10px !important;
}

body:not(.login-page) .sidebar-bottom strong {
  display: block !important;

  color: #c9b8ff !important;

  font-size: 11px !important;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

body:not(.login-page) .main-content {
  display: block !important;

  position: relative !important;

  width: calc(100% - 250px) !important;

  min-width: 0 !important;
  min-height: 100vh !important;

  margin-left: 250px !important;
  padding: 0 !important;

  background: #f7f6fb !important;
}

/* =========================================================
   TOPBAR
========================================================= */

body:not(.login-page) .main-content > .topbar {
  width: 100% !important;

  height: 76px !important;
  min-height: 76px !important;

  margin: 0 !important;
  padding: 0 32px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  background: #ffffff !important;

  border-bottom: 1px solid #e9e7f0 !important;
}

/* Topbar left */

body:not(.login-page) .topbar-label {
  display: block;

  margin-bottom: 3px;

  color: #7457e8;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

body:not(.login-page) .main-content .topbar-title {
  margin: 0 !important;

  color: #242235 !important;

  font-family: "Manrope", sans-serif !important;

  font-size: 18px !important;
  font-weight: 800 !important;

  line-height: 1.2 !important;
}

/* Topbar user */

body:not(.login-page) .topbar-user {
  display: flex !important;
  align-items: center !important;

  gap: 10px !important;
}

body:not(.login-page) .topbar-avatar {
  width: 38px !important;
  height: 38px !important;

  flex-shrink: 0;

  border-radius: 50% !important;

  background: linear-gradient(135deg, #7457e8, #9a7cff) !important;

  color: #ffffff !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 13px !important;
  font-weight: 800 !important;
}

body:not(.login-page) .topbar-user-info {
  display: flex !important;

  flex-direction: column !important;

  line-height: 1.2 !important;
}

body:not(.login-page) .topbar-user-info strong {
  color: #242235 !important;

  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not(.login-page) .topbar-user-info span {
  margin-top: 3px;

  color: #777487 !important;

  font-size: 10px !important;
}

/* =========================================================
   PAGE CONTENT
========================================================= */

body:not(.login-page) .main-content > .page-content {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  padding: 28px 32px 40px !important;
}

/* =========================================================
   DASHBOARD WELCOME
========================================================= */

body:not(.login-page) .dashboard-welcome {
  position: relative;

  width: 100% !important;

  min-height: 178px;

  margin: 0 0 22px !important;

  padding: 30px 34px !important;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  overflow: hidden;

  background: linear-gradient(135deg, #17152a 0%, #292248 100%);

  border-radius: 18px;

  color: #ffffff;
}

body:not(.login-page) .dashboard-welcome::after {
  content: "";

  position: absolute;

  width: 230px;
  height: 230px;

  right: -70px;
  top: -100px;

  border-radius: 50%;

  background: rgba(116, 87, 232, 0.14);
}

body:not(.login-page) .dashboard-welcome > div {
  position: relative;

  z-index: 2;

  min-width: 0;
}

body:not(.login-page) .dashboard-welcome h1 {
  margin: 7px 0 8px;

  color: #ffffff;

  font-family: "Manrope", sans-serif;

  font-size: 27px;

  font-weight: 800;

  line-height: 1.25;
}

body:not(.login-page) .dashboard-welcome p {
  max-width: 620px;

  margin: 0;

  color: rgba(255, 255, 255, 0.62);

  font-size: 13px;

  line-height: 1.6;
}

body:not(.login-page) .welcome-label {
  display: block;

  color: #b8adff;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1.5px;
}

/* Create Programme button */

body:not(.login-page) .dashboard-primary-btn {
  position: relative;

  z-index: 3;

  flex-shrink: 0;

  height: 43px;

  padding: 0 17px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  border-radius: 10px;

  background: #ffffff;

  color: #7457e8;

  font-size: 12px;

  font-weight: 700;

  white-space: nowrap;

  text-decoration: none;
}

body:not(.login-page) .dashboard-primary-btn:hover {
  color: #5d42ce;

  transform: translateY(-1px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   DASHBOARD STAT CARDS
========================================================= */

body:not(.login-page) .dashboard-stats {
  width: 100% !important;

  display: grid !important;

  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

  gap: 16px !important;

  margin: 0 0 22px !important;
}

body:not(.login-page) .dashboard-stat-card {
  width: 100% !important;

  min-width: 0 !important;
  min-height: 132px;

  padding: 20px !important;

  display: flex;

  align-items: flex-start;

  gap: 13px;

  background: #ffffff;

  border: 1px solid #e9e7f0;

  border-radius: 15px;

  transition: 0.2s ease;
}

body:not(.login-page) .dashboard-stat-card:hover {
  border-color: #ddd8ef;

  box-shadow: 0 10px 25px rgba(38, 31, 75, 0.06);

  transform: translateY(-2px);
}

/* Stat icon */

body:not(.login-page) .stat-icon {
  width: 43px;
  height: 43px;

  min-width: 43px;

  border-radius: 11px;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 17px;
}

body:not(.login-page) .stat-icon.purple {
  background: #eeeaff;
  color: #7457e8;
}

body:not(.login-page) .stat-icon.green {
  background: #e8f7ef;
  color: #2d9d68;
}

body:not(.login-page) .stat-icon.orange {
  background: #fff2dc;
  color: #cf861c;
}

body:not(.login-page) .stat-icon.dark {
  background: #eceaf1;
  color: #49445c;
}

/* Stat content */

body:not(.login-page) .stat-content {
  min-width: 0;

  flex: 1;
}

body:not(.login-page) .stat-content > span {
  display: block;

  margin-bottom: 5px;

  color: #777487;

  font-size: 11px;

  font-weight: 600;
}

body:not(.login-page) .stat-content > strong {
  display: block;

  margin-bottom: 5px;

  color: #242235;

  font-family: "Manrope", sans-serif;

  font-size: 25px;

  font-weight: 800;

  line-height: 1.1;
}

body:not(.login-page) .stat-content small {
  display: block;

  color: #9b97a8;

  font-size: 10px;

  line-height: 1.4;
}

/* =========================================================
   DASHBOARD LOWER GRID
========================================================= */

body:not(.login-page) .dashboard-grid {
  width: 100% !important;

  display: grid !important;

  grid-template-columns:
    minmax(0, 1.65fr)
    minmax(300px, 1fr) !important;

  gap: 18px !important;

  margin: 0 0 22px !important;
}

/* =========================================================
   DASHBOARD PANELS
========================================================= */

body:not(.login-page) .dashboard-panel,
body:not(.login-page) .dashboard-flow-panel {
  width: 100% !important;

  min-width: 0 !important;

  background: #ffffff;

  border: 1px solid #e9e7f0;

  border-radius: 15px;
}

body:not(.login-page) .dashboard-panel {
  padding: 22px;
}

/* =========================================================
   PANEL HEADER
========================================================= */

body:not(.login-page) .panel-header {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  margin-bottom: 18px;
}

body:not(.login-page) .panel-eyebrow {
  display: block;

  margin-bottom: 5px;

  color: #9b97a8;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1.3px;
}

body:not(.login-page) .panel-header h3 {
  margin: 0;

  color: #242235;

  font-family: "Manrope", sans-serif;

  font-size: 16px;

  font-weight: 800;
}

body:not(.login-page) .panel-link {
  flex-shrink: 0;

  color: #7457e8;

  font-size: 11px;

  font-weight: 700;

  white-space: nowrap;

  text-decoration: none;
}

/* =========================================================
   RECENT PROGRAMMES
========================================================= */

body:not(.login-page) .recent-programme-list {
  width: 100%;
}

body:not(.login-page) .recent-programme-item {
  width: 100% !important;

  min-width: 0;

  padding: 13px 2px;

  display: grid !important;

  grid-template-columns:
    40px
    minmax(0, 1fr)
    auto
    28px !important;

  align-items: center;

  gap: 11px;

  border-top: 1px solid #f0eef5;
}

body:not(.login-page) .recent-programme-item:first-child {
  padding-top: 0;

  border-top: 0;
}

body:not(.login-page) .recent-programme-icon {
  width: 40px;
  height: 40px;

  border-radius: 10px;

  background: #f0edff;

  color: #7457e8;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 15px;
}

body:not(.login-page) .recent-programme-info {
  min-width: 0;
}

body:not(.login-page) .recent-programme-info h4 {
  margin: 0 0 3px;

  color: #292638;

  font-size: 12px;

  font-weight: 700;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

body:not(.login-page) .recent-programme-info span {
  color: #9b97a8;

  font-size: 10px;
}

/* Status */

body:not(.login-page) .programme-status {
  display: inline-flex;

  align-items: center;

  padding: 4px 8px;

  border-radius: 20px;

  font-size: 9px;

  font-weight: 700;
}

body:not(.login-page) .programme-status.active {
  background: #e8f7ef;

  color: #2d9d68;
}

body:not(.login-page) .programme-status.draft {
  background: #fff2dc;

  color: #c27c17;
}

body:not(.login-page) .programme-status.archived {
  background: #efedf2;

  color: #777487;
}

/* Arrow */

body:not(.login-page) .recent-programme-arrow {
  width: 28px;
  height: 28px;

  border-radius: 8px;

  background: #f7f6fb;

  color: #858192;

  display: flex;

  align-items: center;
  justify-content: center;

  text-decoration: none;
}

body:not(.login-page) .recent-programme-arrow:hover {
  background: #eeeaff;

  color: #7457e8;
}

/* =========================================================
   QUICK START
========================================================= */

body:not(.login-page) .quick-start-list {
  width: 100%;

  display: flex;

  flex-direction: column;

  gap: 8px;
}

body:not(.login-page) .quick-start-item {
  width: 100%;

  min-width: 0;

  padding: 11px;

  display: grid;

  grid-template-columns:
    37px
    minmax(0, 1fr)
    16px;

  align-items: center;

  gap: 10px;

  border-radius: 10px;

  background: #f8f7fb;

  color: inherit;

  text-decoration: none;
}

body:not(.login-page) .quick-start-item:hover {
  background: #f0edff;
}

body:not(.login-page) .quick-start-icon {
  width: 37px;
  height: 37px;

  border-radius: 9px;

  background: #eae5ff;

  color: #7457e8;

  display: flex;

  align-items: center;
  justify-content: center;
}

body:not(.login-page) .quick-start-item strong {
  display: block;

  margin-bottom: 3px;

  color: #292638;

  font-size: 11px;
}

body:not(.login-page) .quick-start-item span {
  display: block;

  color: #9995a6;

  font-size: 9px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

/* =========================================================
   LEARNING FLOW
========================================================= */

body:not(.login-page) .dashboard-flow-panel {
  padding: 22px;

  margin-top: 0;
}

body:not(.login-page) .flow-heading {
  width: 100%;

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 25px;

  margin-bottom: 22px;
}

body:not(.login-page) .flow-heading h3 {
  margin: 0;

  color: #242235;

  font-family: "Manrope", sans-serif;

  font-size: 16px;

  font-weight: 800;
}

body:not(.login-page) .flow-heading p {
  max-width: 350px;

  margin: 0;

  color: #9995a6;

  font-size: 10px;

  line-height: 1.5;

  text-align: right;
}

body:not(.login-page) .learning-flow {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content: center;
}

body:not(.login-page) .flow-step {
  flex: 1;

  min-width: 100px;

  text-align: center;
}

body:not(.login-page) .flow-number {
  margin-bottom: 6px;

  color: #aaa6b5;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1px;
}

body:not(.login-page) .flow-icon {
  width: 45px;
  height: 45px;

  margin: 0 auto 8px;

  border-radius: 12px;

  background: #f0edff;

  color: #7457e8;

  display: flex;

  align-items: center;
  justify-content: center;
}

body:not(.login-page) .flow-step strong {
  display: block;

  margin-bottom: 3px;

  color: #292638;

  font-size: 11px;
}

body:not(.login-page) .flow-step span {
  color: #9995a6;

  font-size: 9px;
}

body:not(.login-page) .flow-line {
  width: 55px;

  height: 1px;

  flex-shrink: 0;

  margin-top: 18px;

  background: #dedbe8;
}

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

@media (max-width: 1200px) {
  body:not(.login-page) .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body:not(.login-page) .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 991px) {
  body:not(.login-page) .sidebar {
    display: none !important;
  }

  body:not(.login-page) .main-content {
    width: 100% !important;

    margin-left: 0 !important;
  }
}

@media (max-width: 700px) {
  body:not(.login-page) .main-content > .topbar {
    height: 68px !important;
    min-height: 68px !important;

    padding: 0 18px !important;
  }

  body:not(.login-page) .main-content > .page-content {
    padding: 20px 18px 30px !important;
  }

  body:not(.login-page) .dashboard-welcome {
    flex-direction: column;

    align-items: flex-start;

    padding: 25px !important;
  }

  body:not(.login-page) .dashboard-welcome h1 {
    font-size: 22px;
  }

  body:not(.login-page) .dashboard-primary-btn {
    width: 100%;
  }

  body:not(.login-page) .dashboard-stats {
    grid-template-columns: 1fr !important;
  }

  body:not(.login-page) .flow-heading {
    flex-direction: column;

    align-items: flex-start;
  }

  body:not(.login-page) .flow-heading p {
    max-width: none;

    text-align: left;
  }

  body:not(.login-page) .learning-flow {
    flex-direction: column;

    gap: 8px;
  }

  body:not(.login-page) .flow-step {
    width: 100%;
  }

  body:not(.login-page) .flow-line {
    width: 1px;

    height: 22px;

    margin: 0;
  }
}

@media (max-width: 480px) {
  body:not(.login-page) .main-content > .page-content {
    padding: 18px 15px 28px !important;
  }

  body:not(.login-page) .dashboard-welcome {
    padding: 22px !important;
  }

  body:not(.login-page) .dashboard-stat-card {
    padding: 17px !important;
  }

  body:not(.login-page) .dashboard-panel,
  body:not(.login-page) .dashboard-flow-panel {
    padding: 18px !important;
  }

  body:not(.login-page) .recent-programme-item {
    grid-template-columns:
      40px
      minmax(0, 1fr)
      28px !important;
  }

  body:not(.login-page) .programme-status {
    display: none;
  }
}

/* =========================================================
   EVOLYN MODULE MANAGEMENT
========================================================= */

.module-page,
.module-form-page {
  max-width: 1400px;
}

/* =========================================================
   BACK LINK
========================================================= */

.module-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 22px;

  color: #6f42c1;
  text-decoration: none;

  font-size: 14px;
  font-weight: 700;

  transition: all 0.2s ease;
}

.module-back-link:hover {
  color: #55309c;
  transform: translateX(-2px);
}

/* =========================================================
   EYEBROW
========================================================= */

.module-eyebrow {
  display: block;

  margin-bottom: 7px;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 1.4px;

  color: #8a78a9;
}

/* =========================================================
   PROGRAMME HEADER
========================================================= */

.module-programme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 30px;

  margin-bottom: 22px;

  background: #ffffff;

  border: 1px solid #ebe7f2;

  border-radius: 20px;

  box-shadow: 0 8px 30px rgba(50, 35, 75, 0.05);
}

.module-programme-main {
  display: flex;
  align-items: flex-start;

  gap: 18px;

  min-width: 0;
}

.module-programme-icon {
  flex: 0 0 58px;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: #f0eafa;

  color: #6f42c1;

  font-size: 24px;
}

.module-programme-main h1 {
  margin: 0;

  font-family: "Manrope", sans-serif;

  font-size: 30px;
  font-weight: 800;

  color: #25202d;

  line-height: 1.2;
}

.module-programme-main p {
  max-width: 760px;

  margin: 8px 0 0;

  color: #77717f;

  font-size: 14px;

  line-height: 1.7;
}

.module-programme-meta {
  flex-shrink: 0;
}

/* =========================================================
   STATUS
========================================================= */

.programme-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 8px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.programme-status span {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: currentColor;
}

.programme-status.active {
  background: #edf8f1;
  color: #2c8a52;
}

.programme-status.draft {
  background: #fff7e8;
  color: #b97813;
}

.programme-status.archived {
  background: #f0eef2;
  color: #746d79;
}

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

.module-summary-grid {
  display: grid;

  grid-template-columns:
    minmax(220px, 0.7fr)
    minmax(300px, 1.3fr);

  gap: 18px;

  margin-bottom: 38px;
}

.module-summary-card {
  display: flex;
  align-items: center;

  gap: 15px;

  min-height: 100px;

  padding: 20px 22px;

  background: #ffffff;

  border: 1px solid #ebe7f2;

  border-radius: 17px;

  box-shadow: 0 6px 22px rgba(50, 35, 75, 0.035);
}

.module-summary-icon {
  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #f3eff9;

  color: #6f42c1;

  font-size: 19px;
}

.module-summary-card span {
  display: block;

  margin-bottom: 5px;

  color: #918a98;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1px;
}

.module-summary-card strong {
  display: block;

  color: #292430;

  font-size: 18px;
  font-weight: 800;
}

.module-summary-highlight strong {
  font-size: 15px;
}

/* =========================================================
   SECTION HEADING
========================================================= */

.module-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}

.module-section-heading h2 {
  margin: 0;

  font-family: "Manrope", sans-serif;

  font-size: 24px;
  font-weight: 800;

  color: #292430;
}

.module-section-heading p {
  margin: 6px 0 0;

  color: #817a88;

  font-size: 13px;
}

/* =========================================================
   PRIMARY BUTTON
========================================================= */

.module-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 43px;

  padding: 0 17px;

  border: 0;
  border-radius: 11px;

  background: #6f42c1;
  color: #ffffff;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.module-primary-btn:hover {
  color: #ffffff;

  background: #6036ae;

  transform: translateY(-1px);

  box-shadow: 0 7px 18px rgba(111, 66, 193, 0.22);
}

/* =========================================================
   MODULE LIST
========================================================= */

.module-list {
  display: flex;

  flex-direction: column;

  gap: 14px;
}

/* =========================================================
   MODULE CARD
========================================================= */

.module-card {
  display: grid;

  grid-template-columns: 66px minmax(0, 1fr);

  gap: 18px;

  padding: 22px;

  background: #ffffff;

  border: 1px solid #ebe7f2;

  border-radius: 18px;

  box-shadow: 0 6px 22px rgba(50, 35, 75, 0.035);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.module-card:hover {
  transform: translateY(-2px);

  border-color: #ddd2ed;

  box-shadow: 0 12px 30px rgba(50, 35, 75, 0.07);
}

/* =========================================================
   MODULE NUMBER
========================================================= */

.module-number {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: #f3eff9;

  color: #6f42c1;

  font-family: "Manrope", sans-serif;

  font-size: 16px;
  font-weight: 800;
}

/* =========================================================
   MODULE CARD CONTENT
========================================================= */

.module-card-content {
  min-width: 0;
}

.module-card-title-row {
  display: flex;
  align-items: center;

  gap: 10px;

  flex-wrap: wrap;
}

.module-card-title-row h3 {
  margin: 0;

  color: #292430;

  font-family: "Manrope", sans-serif;

  font-size: 17px;
  font-weight: 800;
}

.module-order-label {
  display: inline-flex;

  align-items: center;

  padding: 5px 9px;

  border-radius: 7px;

  background: #f7f5f9;

  color: #8a8291;

  font-size: 10px;
  font-weight: 700;
}

.module-card-content > p {
  margin: 7px 0 17px;

  max-width: 850px;

  color: #77717f;

  font-size: 13px;

  line-height: 1.65;
}

.module-no-description {
  font-style: italic;

  color: #aaa3ae !important;
}

/* =========================================================
   MODULE FOOTER
========================================================= */

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding-top: 14px;

  border-top: 1px solid #f0edf3;
}

.module-placeholder-info {
  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 14px;
}

.module-placeholder-info span {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  color: #89818f;

  font-size: 11px;
  font-weight: 600;
}

.module-placeholder-info i {
  color: #9b8bb2;
}

/* =========================================================
   MODULE ACTIONS
========================================================= */

.module-actions {
  display: flex;
  align-items: center;

  gap: 7px;

  flex-shrink: 0;
}

.module-edit-btn,
.module-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;

  padding: 0 10px;

  border-radius: 8px;

  font-size: 11px;
  font-weight: 700;

  text-decoration: none;
}

.module-edit-btn {
  gap: 5px;

  background: #f4f0f9;

  color: #6f42c1;
}

.module-edit-btn:hover {
  background: #ebe3f7;
  color: #5b34a3;
}

.module-delete-btn {
  width: 34px;

  background: #fff1f1;

  color: #d35b5b;
}

.module-delete-btn:hover {
  background: #ffe2e2;
  color: #b83f3f;
}

.module-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  min-height: 34px;

  padding: 0 11px;

  border: 0;
  border-radius: 8px;

  background: #f3f1f4;
  color: #aaa3ad;

  font-size: 11px;
  font-weight: 700;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.module-empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;

  padding: 65px 30px;

  text-align: center;

  background: #ffffff;

  border: 1px dashed #dcd5e5;

  border-radius: 20px;
}

.module-empty-icon {
  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 17px;

  border-radius: 20px;

  background: #f4f0f9;

  color: #7650bd;

  font-size: 28px;
}

.module-empty-state h3 {
  margin: 0 0 7px;

  color: #292430;

  font-family: "Manrope", sans-serif;

  font-size: 20px;
  font-weight: 800;
}

.module-empty-state p {
  max-width: 450px;

  margin: 0 0 20px;

  color: #847d8b;

  font-size: 13px;

  line-height: 1.7;
}

/* =========================================================
   EVOLYN FLOW
========================================================= */

.module-flow-section {
  margin-top: 38px;

  padding: 28px;

  background: #faf9fc;

  border: 1px solid #ebe7f2;

  border-radius: 20px;
}

.module-flow-heading {
  margin-bottom: 24px;
}

.module-flow-heading h2 {
  margin: 0;

  color: #292430;

  font-family: "Manrope", sans-serif;

  font-size: 20px;
  font-weight: 800;
}

.module-flow-heading p {
  max-width: 650px;

  margin: 7px 0 0;

  color: #817a88;

  font-size: 13px;

  line-height: 1.6;
}

.module-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.module-flow-item {
  flex: 1;

  min-width: 0;

  display: flex;
  align-items: center;
  flex-direction: column;

  text-align: center;
}

.module-flow-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 9px;

  border-radius: 14px;

  background: #ffffff;

  border: 1px solid #e5deee;

  color: #6f42c1;

  font-size: 18px;
}

.module-flow-item strong {
  color: #4a4052;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.8px;
}

.module-flow-item span {
  margin-top: 3px;

  color: #918a98;

  font-size: 10px;
}

.module-flow-arrow {
  flex-shrink: 0;

  color: #b8aec2;

  font-size: 14px;
}

/* =========================================================
   FORM PAGE
========================================================= */

.module-form-page {
  max-width: 1000px;
}

.module-form-header {
  margin-bottom: 24px;
}

.module-form-header h1 {
  margin: 0;

  color: #292430;

  font-family: "Manrope", sans-serif;

  font-size: 30px;
  font-weight: 800;
}

.module-form-header p {
  margin: 8px 0 0;

  color: #817a88;

  font-size: 14px;

  line-height: 1.7;
}

/* =========================================================
   FORM ERROR
========================================================= */

.module-form-error {
  display: flex;

  gap: 13px;

  margin-bottom: 20px;

  padding: 15px 17px;

  background: #fff5f5;

  border: 1px solid #f0d7d7;

  border-radius: 13px;

  color: #9f4141;
}

.module-error-icon {
  font-size: 18px;
}

.module-form-error strong {
  font-size: 13px;
}

.module-form-error ul {
  margin: 5px 0 0;

  padding-left: 17px;

  font-size: 12px;

  line-height: 1.6;
}

/* =========================================================
   FORM CARD
========================================================= */

.module-form-card {
  overflow: hidden;

  background: #ffffff;

  border: 1px solid #ebe7f2;

  border-radius: 20px;

  box-shadow: 0 8px 30px rgba(50, 35, 75, 0.05);
}

.module-form-section {
  padding: 30px;
}

.module-form-section-heading {
  display: flex;
  align-items: flex-start;

  gap: 13px;

  margin-bottom: 28px;

  padding-bottom: 20px;

  border-bottom: 1px solid #f0edf3;
}

.module-form-section-icon {
  width: 43px;
  height: 43px;

  flex: 0 0 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #f3eff9;

  color: #6f42c1;

  font-size: 17px;
}

.module-form-section-heading h2 {
  margin: 0;

  color: #292430;

  font-family: "Manrope", sans-serif;

  font-size: 17px;
  font-weight: 800;
}

.module-form-section-heading p {
  margin: 4px 0 0;

  color: #89818f;

  font-size: 12px;
}

/* =========================================================
   FORM FIELDS
========================================================= */

.module-form-field {
  margin-bottom: 23px;
}

.module-form-field:last-child {
  margin-bottom: 0;
}

.module-form-field label {
  display: block;

  margin-bottom: 8px;

  color: #413946;

  font-size: 13px;
  font-weight: 700;
}

.module-form-field label span {
  color: #c24c4c;
}

.module-form-field input,
.module-form-field textarea {
  width: 100%;

  padding: 12px 14px;

  border: 1px solid #ddd7e3;

  border-radius: 10px;

  outline: none;

  background: #ffffff;

  color: #322c37;

  font-family: "DM Sans", sans-serif;

  font-size: 13px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.module-form-field input {
  height: 46px;
}

.module-form-field textarea {
  min-height: 140px;

  resize: vertical;
}

.module-form-field input:focus,
.module-form-field textarea:focus {
  border-color: #8a68c2;

  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.09);
}

.module-form-field input::placeholder,
.module-form-field textarea::placeholder {
  color: #aaa3ad;
}

.module-form-field small {
  display: block;

  margin-top: 7px;

  color: #958d99;

  font-size: 11px;
}

.module-order-field {
  max-width: 230px;
}

/* =========================================================
   FORM FLOW
========================================================= */

.module-form-flow {
  margin: 0 30px 25px;

  padding: 18px 20px;

  background: #f8f6fb;

  border: 1px solid #e9e2f1;

  border-radius: 13px;
}

.module-form-flow span {
  display: block;

  margin-bottom: 5px;

  color: #93889e;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.2px;
}

.module-form-flow strong {
  display: block;

  color: #6f42c1;

  font-size: 13px;
}

.module-form-flow p {
  margin: 5px 0 0;

  color: #8a8291;

  font-size: 11px;
}

/* =========================================================
   FORM ACTIONS
========================================================= */

.module-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 10px;

  padding: 18px 30px;

  background: #faf9fc;

  border-top: 1px solid #eeeaf2;
}

.module-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 43px;

  padding: 0 17px;

  border-radius: 10px;

  color: #766e7c;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;
}

.module-cancel-btn:hover {
  background: #f0edf3;

  color: #514957;
}

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

@media (max-width: 900px) {
  .module-summary-grid {
    grid-template-columns: 1fr;
  }

  .module-programme-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-programme-meta {
    align-self: flex-start;
  }

  .module-flow {
    flex-wrap: wrap;
  }

  .module-flow-item {
    min-width: 130px;
  }
}

@media (max-width: 700px) {
  .module-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-primary-btn {
    width: 100%;
  }

  .module-card {
    grid-template-columns: 1fr;
  }

  .module-number {
    width: 46px;
    height: 46px;
  }

  .module-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-actions {
    width: 100%;
  }

  .module-edit-btn {
    flex: 1;
  }

  .module-open-btn {
    flex: 1;
  }

  .module-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .module-flow-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .module-flow-item {
    min-width: 0;
  }
}

@media (max-width: 500px) {
  .module-programme-header {
    padding: 21px;
  }

  .module-programme-main {
    gap: 12px;
  }

  .module-programme-icon {
    width: 46px;
    height: 46px;

    flex-basis: 46px;

    font-size: 19px;
  }

  .module-programme-main h1 {
    font-size: 22px;
  }

  .module-summary-card {
    padding: 16px;
  }

  .module-section-heading h2 {
    font-size: 21px;
  }

  .module-card {
    padding: 17px;
  }

  .module-placeholder-info {
    flex-direction: column;
    align-items: flex-start;

    gap: 7px;
  }

  .module-actions {
    flex-wrap: wrap;
  }

  .module-open-btn {
    width: 100%;
  }

  .module-form-section {
    padding: 21px;
  }

  .module-form-flow {
    margin-right: 21px;
    margin-left: 21px;
  }

  .module-form-actions {
    padding: 16px 21px;
  }

  .module-form-actions .module-primary-btn,
  .module-form-actions .module-cancel-btn {
    width: auto;
  }
}

/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.module-success-message {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 18px;

  padding: 13px 16px;

  background: #eff9f3;

  border: 1px solid #d7eddf;

  border-radius: 11px;

  color: #347b4d;

  font-size: 12px;
  font-weight: 600;
}

.module-success-message i {
  font-size: 15px;
}

/* =========================================================
   TRAINING PROGRAMME MANAGEMENT
========================================================= */

.programme-page {
  max-width: 1500px;
  margin: 0 auto;
}

.programme-success-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 16px;
  background: #eff9f3;
  border: 1px solid #d7eddf;
  border-radius: 11px;
  color: #347b4d;
  font-size: 12px;
  font-weight: 600;
}

.programme-success-message i {
  font-size: 15px;
}

/* PAGE HEADER */

.programme-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.programme-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #8a83a7;
}

.programme-page-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #29243d;
}

.programme-page-header p {
  margin: 0;
  color: #858096;
  font-size: 13px;
}

/* BUTTON */

.programme-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 10px;
  background: #5d4c8d;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: none;
  transition: 0.2s ease;
}

.programme-primary-btn:hover {
  background: #493875;
  color: #ffffff;
  transform: translateY(-1px);
}

/* SUMMARY */

.programme-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.programme-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #ece9f3;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(43, 34, 72, 0.04);
}

.programme-summary-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: #f0ebfa;
  color: #5d4c8d;
  font-size: 17px;
}

.programme-summary-icon.active {
  background: #edf8f1;
  color: #4c9566;
}

.programme-summary-icon.draft {
  background: #f8f3e8;
  color: #a57c3d;
}

.programme-summary-icon.archived {
  background: #f1f1f3;
  color: #777582;
}

.programme-summary-card span {
  display: block;
  margin-bottom: 3px;
  color: #8b8798;
  font-size: 11px;
  font-weight: 600;
}

.programme-summary-card strong {
  display: block;
  color: #302b42;
  font-size: 22px;
  font-weight: 800;
}

/* SECTION HEADING */

.programme-section-heading {
  margin-bottom: 16px;
}

.programme-section-heading h3 {
  margin: 0 0 4px;
  color: #302b42;
  font-size: 17px;
  font-weight: 800;
}

.programme-section-heading p {
  margin: 0;
  color: #8b8798;
  font-size: 12px;
}

/* PROGRAMME LIST */

.programme-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.programme-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #ece9f3;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(43, 34, 72, 0.04);
  transition: 0.2s ease;
}

.programme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 25px rgba(43, 34, 72, 0.07);
}

.programme-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.programme-card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #f0ebfa;
  color: #5d4c8d;
  font-size: 18px;
}

.programme-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.programme-status.active {
  background: #edf8f1;
  color: #47845c;
}

.programme-status.draft {
  background: #f8f3e8;
  color: #9a753d;
}

.programme-status.archived {
  background: #f0f0f2;
  color: #74727c;
}

.programme-card-content {
  flex: 1;
}

.programme-card-content h3 {
  margin: 0 0 8px;
  color: #302b42;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.programme-card-content p {
  margin: 0;
  color: #898597;
  font-size: 11px;
  line-height: 1.7;
}

.programme-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #f0edf5;
  color: #9994a5;
  font-size: 9px;
}

.programme-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.programme-card-meta i {
  font-size: 10px;
}

/* ACTIONS */

.programme-card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
}

.programme-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid #e7e3ef;
  border-radius: 8px;
  background: #ffffff;
  color: #706b7d;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  transition: 0.2s ease;
}

.programme-action-btn:hover {
  border-color: #cfc7df;
  background: #f8f6fc;
  color: #4f4373;
}

.programme-action-btn.primary {
  flex: 1;
  border-color: #5d4c8d;
  background: #5d4c8d;
  color: #ffffff;
}

.programme-action-btn.primary:hover {
  background: #493875;
  color: #ffffff;
}

.programme-action-btn.danger {
  color: #b85d68;
}

.programme-action-btn.danger:hover {
  background: #fff3f4;
  border-color: #f0d8dc;
  color: #a84855;
}

/* EMPTY STATE */

.programme-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 35px;
  background: #ffffff;
  border: 1px dashed #dcd7e8;
  border-radius: 15px;
  text-align: center;
}

.programme-empty-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 15px;
  background: #f1edfa;
  color: #5d4c8d;
  font-size: 23px;
}

.programme-empty-state h3 {
  margin: 0 0 7px;
  color: #302b42;
  font-size: 16px;
}

.programme-empty-state p {
  max-width: 420px;
  margin: 0 0 18px;
  color: #8c8798;
  font-size: 11px;
  line-height: 1.7;
}

/* EVOLYN FLOW */

.programme-flow-section {
  margin-top: 35px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #ece9f3;
  border-radius: 15px;
}

.programme-flow-heading {
  margin-bottom: 23px;
}

.programme-flow-heading span {
  display: block;
  margin-bottom: 6px;
  color: #8a83a7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.programme-flow-heading h3 {
  margin: 0;
  color: #302b42;
  font-size: 15px;
  font-weight: 800;
}

.programme-flow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.programme-flow-item {
  min-width: 105px;
  text-align: center;
}

.programme-flow-number {
  margin-bottom: 5px;
  color: #aaa4b8;
  font-size: 8px;
  font-weight: 800;
}

.programme-flow-item i {
  display: block;
  margin-bottom: 7px;
  color: #5d4c8d;
  font-size: 18px;
}

.programme-flow-item strong {
  display: block;
  color: #3a354b;
  font-size: 10px;
}

.programme-flow-item small {
  display: block;
  margin-top: 3px;
  color: #9691a0;
  font-size: 8px;
}

.programme-flow-line {
  width: 55px;
  height: 1px;
  margin: 0 8px;
  background: #ded9e8;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .programme-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programme-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .programme-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .programme-list {
    grid-template-columns: 1fr;
  }

  .programme-flow {
    flex-wrap: wrap;
    gap: 20px;
  }

  .programme-flow-line {
    display: none;
  }
}

@media (max-width: 500px) {
  .programme-summary-grid {
    grid-template-columns: 1fr;
  }

  .programme-card-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .programme-flow-section {
    padding: 18px;
  }
}

/* =========================================================
   ADD TRAINING PROGRAMME FORM
========================================================= */

.programme-form-page {
  max-width: 950px;
  margin: 0 auto;
}

.programme-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  color: #777187;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.programme-back-link:hover {
  color: #5d4c8d;
}

.programme-form-heading {
  margin-bottom: 25px;
}

.programme-form-heading-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  border-radius: 14px;
  background: #f0ebfa;
  color: #5d4c8d;
  font-size: 23px;
}

.programme-form-heading h1 {
  margin: 0 0 8px;
  color: #302b42;
  font-size: 27px;
  font-weight: 800;
}

.programme-form-heading p {
  max-width: 600px;
  margin: 0;
  color: #898597;
  font-size: 12px;
  line-height: 1.8;
}

.programme-form-card {
  padding: 27px;
  background: #ffffff;
  border: 1px solid #ece9f3;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(43, 34, 72, 0.04);
}

.programme-form-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 27px;
  padding-bottom: 19px;
  border-bottom: 1px solid #f0edf5;
}

.programme-form-card-heading h3 {
  margin: 0 0 6px;
  color: #302b42;
  font-size: 16px;
  font-weight: 800;
}

.programme-form-card-heading p {
  margin: 0;
  color: #898597;
  font-size: 11px;
}

.programme-required-note {
  color: #9a94a7;
  font-size: 10px;
  white-space: nowrap;
}

.programme-form-field {
  margin-bottom: 23px;
}

.programme-form-field:last-child {
  margin-bottom: 0;
}

.programme-form-field label {
  display: block;
  margin-bottom: 9px;
  color: #403a52;
  font-size: 12px;
  font-weight: 700;
}

.programme-form-field label span {
  color: #d05b6b;
}

.programme-form-field input,
.programme-form-field textarea,
.programme-form-field select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #e4e0ec;
  border-radius: 9px;
  outline: none;
  background: #ffffff;
  color: #393349;
  font-family: inherit;
  font-size: 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.programme-form-field input {
  min-height: 45px;
}

.programme-form-field textarea {
  min-height: 125px;
  resize: vertical;
  line-height: 1.7;
}

.programme-form-field input::placeholder,
.programme-form-field textarea::placeholder {
  color: #b0abba;
}

.programme-form-field input:focus,
.programme-form-field textarea:focus,
.programme-form-field select:focus {
  border-color: #8b78c6;
  box-shadow: 0 0 0 3px rgba(139, 120, 198, 0.12);
}

.programme-form-field small {
  display: block;
  margin-top: 7px;
  color: #9994a5;
  font-size: 10px;
  line-height: 1.6;
}

.programme-form-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #f1d5d9;
  border-radius: 10px;
  background: #fff4f5;
  color: #a84958;
  font-size: 12px;
  line-height: 1.6;
}

.programme-form-error i {
  margin-top: 1px;
  font-size: 15px;
}

.programme-form-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 17px;
  padding: 17px;
  border: 1px solid #e9e2f7;
  border-radius: 11px;
  background: #f8f5fd;
  color: #5d4c8d;
}

.programme-form-tip > i {
  margin-top: 2px;
  font-size: 17px;
}

.programme-form-tip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
}

.programme-form-tip p {
  margin: 0;
  color: #817795;
  font-size: 11px;
  line-height: 1.7;
}

.programme-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}

.programme-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #e5e1ed;
  border-radius: 9px;
  background: #ffffff;
  color: #716b7e;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.programme-cancel-btn:hover {
  background: #f8f6fc;
  color: #51446f;
}

.programme-form-actions .programme-primary-btn {
  min-height: 42px;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 600px) {
  .programme-form-card {
    padding: 19px;
  }

  .programme-form-card-heading {
    flex-direction: column;
  }

  .programme-form-heading h1 {
    font-size: 23px;
  }

  .programme-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .programme-form-actions .programme-primary-btn,
  .programme-cancel-btn {
    width: 100%;
    box-sizing: border-box;
  }
}

/* =========================================================
   EVOLYN CUSTOM DELETE CONFIRMATION MODAL
========================================================= */

.evolyn-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 24, 48, 0.48);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.evolyn-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.evolyn-modal {
  width: 100%;
  max-width: 430px;
  padding: 30px;
  border: 1px solid #eee9f5;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(29, 22, 48, 0.22);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.evolyn-modal-overlay.show .evolyn-modal {
  transform: translateY(0) scale(1);
}

.evolyn-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 17px;
  border-radius: 17px;
  background: #fff0f1;
  color: #c45464;
  font-size: 23px;
}

.evolyn-modal-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #a29bad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.evolyn-modal h2 {
  margin: 0 0 10px;
  color: #302b42;
  font-size: 23px;
  font-weight: 800;
}

.evolyn-modal-description {
  margin: 0 auto 19px;
  color: #858092;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.evolyn-modal-description strong {
  color: #49415e;
  font-weight: 800;
}

.evolyn-modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #f3e2c5;
  border-radius: 11px;
  background: #fff9ef;
  color: #916b32;
  text-align: left;
  font-size: 10px;
  line-height: 1.7;
}

.evolyn-modal-warning i {
  margin-top: 2px;
  font-size: 14px;
}

.evolyn-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.evolyn-modal-actions > button,
.evolyn-modal-actions form {
  flex: 1;
  min-width: 0;
}

.evolyn-modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.evolyn-modal-cancel {
  border: 1px solid #e5e0ed;
  background: #ffffff;
  color: #716b7e;
}

.evolyn-modal-cancel:hover {
  background: #f7f5fa;
}

.evolyn-modal-delete {
  border: 1px solid #bf495a;
  background: #bf495a;
  color: #ffffff;
}

.evolyn-modal-delete:hover {
  background: #a93648;
}

.evolyn-modal-actions button:focus-visible {
  outline: 3px solid #b9a8e5;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .evolyn-modal {
    padding: 23px 19px;
  }

  .evolyn-modal-actions {
    flex-direction: column-reverse;
  }
}


/* =========================================================
   FINAL POLISH (consistency fixes)
========================================================= */

/* Quick action link on dashboard (was default browser blue) */
body:not(.login-page) .dashboard-action-card .stat-content a {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: #6f42c1;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;

  transition: color 0.2s ease, gap 0.2s ease;
}

body:not(.login-page) .dashboard-action-card .stat-content a:hover {
  gap: 11px;
  color: #5b34a3;
}

/* Arrow / lock icons in Quick Start list (were plain black) */
body:not(.login-page) .quick-start-item > i {
  color: #a59bc0;
  transition: color 0.2s ease, transform 0.2s ease;
}

body:not(.login-page) a.quick-start-item:hover > i {
  color: #6f42c1;
  transform: translateX(3px);
}

/* One purple for every primary button */
.programme-primary-btn {
  background: #6f42c1;
}

.programme-primary-btn:hover {
  background: #5b34a3;
}


/* =========================================================
   EVOLYN PAGES: materials, learners, learner side (ev-*)
========================================================= */

.ev-page { max-width: 1100px; }

.ev-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  color: #6f42c1; font-size: 13px; font-weight: 700; text-decoration: none;
}

.ev-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 22px;
}

.ev-eyebrow {
  display: block; margin-bottom: 6px;
  color: #8d86a0; font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
}

.ev-head h1 { margin: 0 0 6px; color: #242235; font-size: 28px; font-weight: 800; }
.ev-head p  { margin: 0; color: #777487; font-size: 13px; line-height: 1.7; }

.ev-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 10px;
  font-size: 12px; font-weight: 700; text-decoration: none; transition: 0.2s ease;
}
.ev-btn.light { background: #f4f0f9; color: #6f42c1; }
.ev-btn.light:hover { background: #ebe3f7; color: #5b34a3; }

.ev-section-title { margin: 6px 0 14px; color: #242235; font-size: 16px; font-weight: 800; }

.ev-card {
  padding: 22px; margin-bottom: 16px;
  border: 1px solid #ece9f3; border-radius: 16px; background: #ffffff;
}

.ev-two-col { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }

.ev-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; margin-bottom: 12px;
  border: 1px solid #ece9f3; border-radius: 14px; background: #ffffff;
  color: inherit; text-decoration: none; transition: 0.2s ease;
}
a.ev-link:hover { border-color: #cfc2ee; box-shadow: 0 8px 22px rgba(111, 66, 193, 0.08); transform: translateY(-1px); }
.ev-link > .bi-chevron-right { color: #a59bc0; }

.ev-item-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: #f1edfb; color: #6f42c1; font-size: 18px; font-weight: 800;
}
.ev-item-icon.round { border-radius: 50%; background: linear-gradient(135deg, #7457e8, #9a7cff); color: #fff; font-size: 14px; }
.ev-item-icon.done  { background: #e6f6ed; color: #27935a; }

.ev-item-body { flex: 1; min-width: 0; }
.ev-item-body strong { display: block; color: #242235; font-size: 14px; }
.ev-item-body small  { display: block; margin-top: 2px; color: #8d86a0; font-size: 11px; }
.ev-item-body p {
  margin: 6px 0 0; color: #777487; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere;
}
.ev-item-body p:empty { display: none; }

.ev-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 9px; text-decoration: none; transition: 0.2s ease;
}
.ev-icon-btn.danger { background: #fff1f1; color: #d35b5b; }
.ev-icon-btn.danger:hover { background: #ffe2e2; color: #b83f3f; }

.ev-badge {
  flex-shrink: 0; padding: 6px 12px; border-radius: 20px;
  background: #f1edfb; color: #6f42c1; font-size: 11px; font-weight: 700;
}
.ev-badge.done { background: #e6f6ed; color: #27935a; }
.ev-badge.big { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; font-size: 12px; }

.ev-progress-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ev-progress { flex: 1; max-width: 320px; height: 8px; border-radius: 10px; background: #eeeaf6; overflow: hidden; }
.ev-progress div { height: 100%; border-radius: 10px; background: linear-gradient(90deg, #7457e8, #9a7cff); }
.ev-progress-row span { color: #777487; font-size: 11px; font-weight: 600; white-space: nowrap; }

.ev-summary strong { color: #242235; font-size: 14px; }
.ev-summary .ev-progress { max-width: none; }

.ev-empty {
  padding: 40px 20px; border: 1px dashed #d9d3e8; border-radius: 16px;
  background: #ffffff; text-align: center;
}
.ev-empty > i { display: block; margin-bottom: 10px; color: #a59bc0; font-size: 34px; }
.ev-empty h3 { margin: 0 0 6px; color: #242235; font-size: 16px; font-weight: 800; }
.ev-empty p  { margin: 0 0 16px; color: #8d86a0; font-size: 12px; }
.ev-empty p:last-child { margin-bottom: 0; }

.ev-alert {
  display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 18px;
  border: 1px solid #f3d2d2; border-radius: 12px; background: #fff5f5; color: #b83f3f; font-size: 12px;
}
.ev-alert ul { margin: 0; padding-left: 16px; }

.ev-form label { display: block; margin: 14px 0 6px; color: #3b3650; font-size: 12px; font-weight: 700; }
.ev-form label span { color: #d35b5b; }
.ev-form small { display: block; margin-top: 6px; color: #8d86a0; font-size: 11px; }

.ev-form input, .ev-form select, .ev-form textarea,
.ev-inline-form select {
  width: 100%; padding: 12px 14px;
  border: 1px solid #e3deee; border-radius: 10px; background: #ffffff;
  color: #242235; font-family: inherit; font-size: 13px;
}
.ev-form input:focus, .ev-form select:focus, .ev-form textarea:focus,
.ev-inline-form select:focus { outline: 3px solid #e1d7f7; border-color: #a58be0; }
.ev-form textarea { resize: vertical; }

.ev-full { width: 100%; margin-top: 20px; cursor: pointer; }
.ev-inline-form { display: flex; gap: 12px; align-items: center; }
.ev-inline-form select { flex: 1; }
.ev-inline-form button { cursor: pointer; white-space: nowrap; }
.ev-inline-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.ev-material-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ev-material-title i { color: #6f42c1; font-size: 18px; }
.ev-material-title strong { color: #242235; font-size: 15px; }
.ev-note { color: #4a4660; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }

.ev-complete { margin-top: 24px; }
.ev-complete button { cursor: pointer; min-height: 46px; padding: 0 24px; }

/* Open Module button on modules.php (was disabled) */
a.module-open-btn { background: #6f42c1; color: #ffffff; text-decoration: none; transition: 0.2s ease; }
a.module-open-btn:hover { background: #5b34a3; color: #ffffff; }

@media (max-width: 900px) {
  .ev-two-col { grid-template-columns: 1fr; }
  .ev-head { flex-direction: column; }
  .ev-inline-form { flex-direction: column; align-items: stretch; }
}


/* =========================================================
   PRACTICAL SCENARIOS
========================================================= */

.ev-req, .ev-opt {
  margin-left: 8px; padding: 3px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 700; vertical-align: middle;
}
.ev-req { background: #f1edfb; color: #6f42c1; }
.ev-opt { background: #f3f1f4; color: #8d86a0; }

.ev-score-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.ev-save { margin-top: 6px; min-height: 46px; padding: 0 26px; cursor: pointer; }

.ev-situation { border-left: 4px solid #8d6bdc; }
.ev-situation .ev-eyebrow { margin-bottom: 10px; }

.ev-choice {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-bottom: 12px;
  border: 1.5px solid #ece9f3; border-radius: 14px; background: #ffffff;
  color: #242235; font-size: 14px; line-height: 1.6; cursor: pointer; transition: 0.2s ease;
}
.ev-choice:hover { border-color: #cfc2ee; }
.ev-choice:has(input:checked) { border-color: #6f42c1; background: #f7f4fd; box-shadow: 0 0 0 3px #e9e0fa; }
.ev-choice input { width: 18px; height: 18px; accent-color: #6f42c1; flex-shrink: 0; }

.ev-result { display: flex; align-items: center; gap: 24px; }
.ev-result h3 { margin: 0 0 8px; color: #242235; font-size: 20px; font-weight: 800; }
.ev-muted { margin: 0; color: #8d86a0; font-size: 12px; }
.ev-chosen { margin: 4px 0 0; color: #242235; font-size: 14px; font-weight: 700; }

.ev-score-circle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  width: 108px; height: 108px; border-radius: 50%; border: 6px solid;
}
.ev-score-circle strong { font-size: 32px; line-height: 1; }
.ev-score-circle span { margin-top: 4px; font-size: 10px; font-weight: 700; color: #8d86a0; }
.ev-score-circle.good { border-color: #6fcf97; color: #27935a; background: #f2fbf6; }
.ev-score-circle.low  { border-color: #f2b8b8; color: #c04b4b; background: #fff6f6; }

.ev-feedback p { margin: 8px 0 0; color: #4a4660; font-size: 14px; line-height: 1.8; }
.ev-feedback .ev-eyebrow { margin-bottom: 0; }
.ev-feedback.best { border-color: #cfeadb; background: #f6fcf9; }
.ev-feedback.best strong { display: block; margin-top: 8px; color: #1e7a4a; font-size: 14px; }

@media (max-width: 700px) {
  .ev-score-row { grid-template-columns: 1fr; }
  .ev-result { flex-direction: column; text-align: center; }
}


/* =========================================================
   EDIT LEARNING MATERIAL — MATCH MODULE FORM STRUCTURE
========================================================= */
.edit-material-page {
  max-width: 1000px;
}

.edit-material-page .module-form-header {
  margin-bottom: 24px;
}

.edit-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.edit-material-page .module-form-field select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 40px 11px 14px;
  border: 1px solid #ddd7e3;
  border-radius: 10px;
  outline: none;
  background-color: #fff;
  color: #322c37;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.edit-material-page .module-form-field select:focus {
  border-color: #8a68c2;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, .09);
}

.edit-material-page .module-form-field textarea {
  min-height: 110px;
}

.edit-material-page .edit-material-dynamic-field[hidden] {
  display: none !important;
}

.edit-material-current-file {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  margin-bottom: 12px;
  border: 1px solid #e9e2f1;
  border-radius: 12px;
  background: #f8f6fb;
  color: #6f42c1;
}

.edit-material-current-file > i {
  font-size: 22px;
  line-height: 1.2;
}

.edit-material-current-file strong,
.edit-material-current-file small {
  display: block;
}

.edit-material-current-file strong {
  margin-bottom: 4px;
  color: #39313f;
  font-size: 13px;
}

.edit-material-current-file small {
  color: #89818f;
  font-size: 11px;
  line-height: 1.6;
}

.edit-material-page .edit-material-file-input {
  height: auto;
  padding: 10px;
  background: #fff;
}

.edit-material-required-field {
  max-width: 420px;
}

.edit-material-page .module-form-actions {
  padding-top: 0;
}

@media (max-width: 700px) {
  .edit-material-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .edit-material-page .module-form-section {
    padding: 22px;
  }

  .edit-material-page .module-form-flow {
    margin: 0 22px 22px;
  }

  .edit-material-page .module-form-actions {
    padding: 0 22px 22px;
  }
}

/* =========================================================
   EVOLYN LEARNING MATERIALS MANAGEMENT
   Uses the shared app shell, page-content, typography and buttons.
========================================================= */
.learning-materials-page {
  max-width: 1400px;
}
.learning-materials-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 2px 0 28px;
}
.learning-materials-heading h1 {
  margin: 0 0 8px;
  color: #292430;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.learning-materials-heading > p {
  margin: 0 0 16px;
  color: #847d8b;
  font-size: 14px;
  line-height: 1.7;
}
.learning-materials-context {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.learning-materials-context span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: #66518c;
  background: #f5f1fb;
  border: 1px solid #ebe3f6;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}
.learning-materials-add-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.learning-materials-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.learning-materials-alert.success { color: #216c43; background: #edf8f0; border-color: #d2edda; }
.learning-materials-alert.error { color: #a3333d; background: #fff1f1; border-color: #f5d5d7; }
.learning-materials-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.learning-materials-summary-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  padding: 21px 22px;
  background: #fff;
  border: 1px solid #eee9f4;
  border-radius: 17px;
  box-shadow: 0 4px 16px rgba(45, 30, 70, .025);
}
.learning-materials-summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  font-size: 20px;
}
.learning-materials-summary-icon.purple { color: #7450bd; background: #f1eafb; }
.learning-materials-summary-icon.orange { color: #b8752a; background: #fff2e1; }
.learning-materials-summary-icon.blue { color: #3d70b7; background: #eaf2ff; }
.learning-materials-summary-card span {
  display: block;
  margin-bottom: 5px;
  color: #817a8b;
  font-size: 12px;
  font-weight: 600;
}
.learning-materials-summary-card strong {
  display: block;
  color: #292430;
  font-family: "Manrope", sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
}
.learning-materials-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.learning-materials-section-heading h2 {
  margin: 0 0 5px;
  color: #302a3a;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
}
.learning-materials-section-heading p {
  margin: 0;
  color: #898291;
  font-size: 12px;
}
.learning-materials-count {
  padding: 7px 11px;
  color: #6f50ac;
  background: #f3eefb;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.learning-materials-list { display: grid; gap: 14px; }
.learning-material-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #eee9f4;
  border-radius: 17px;
  box-shadow: 0 4px 16px rgba(45, 30, 70, .025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.learning-material-item:hover {
  border-color: #d9c9f0;
  box-shadow: 0 8px 24px rgba(65, 40, 100, .06);
  transform: translateY(-1px);
}
.learning-material-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: #7450bd;
  background: #f2ecfb;
  border-radius: 14px;
  font-size: 21px;
}
.learning-material-item-body { flex: 1; min-width: 0; }
.learning-material-item-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.learning-material-type-tag,
.learning-material-required-tag,
.learning-material-optional-tag,
.learning-material-order-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.learning-material-type-tag { color: #6c4ba9; background: #f2ecfb; }
.learning-material-required-tag { color: #9a641e; background: #fff3df; }
.learning-material-required-tag i { font-size: 7px; }
.learning-material-optional-tag { color: #777181; background: #f3f2f5; }
.learning-material-order-tag { color: #5879a6; background: #edf4ff; }
.learning-material-item-body h3 {
  margin: 0 0 7px;
  color: #302a3a;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.learning-material-item-body > p {
  margin: 0;
  color: #827b8b;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.learning-material-item-body > p.learning-material-no-description { color: #aaa4b0; font-style: italic; }
.learning-material-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.learning-material-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  color: #625274;
  background: #fff;
  border: 1px solid #e7e0ee;
  border-radius: 9px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.learning-material-action:hover { color: #5e3e9c; background: #f8f4fd; border-color: #d8c9ef; }
.learning-material-action.primary { color: #fff; background: #7450bd; border-color: #7450bd; }
.learning-material-action.primary:hover { color: #fff; background: #5e3ca5; border-color: #5e3ca5; }
.learning-material-action.danger { color: #b4444c; background: #fff; border-color: #f0d7d9; }
.learning-material-action.danger:hover { color: #a32e37; background: #fff1f1; border-color: #eebdc1; }
.learning-material-item-number {
  flex: 0 0 auto;
  padding-top: 2px;
  color: #e0d8eb;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
}
.learning-materials-empty { margin-top: 8px; }
.learning-materials-empty .module-empty-icon i { font-size: 27px; }
.learning-materials-empty .programme-primary-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.learning-materials-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 22, 43, .52);
  backdrop-filter: blur(3px);
}
.learning-materials-modal-overlay.is-open { display: flex; }
.learning-materials-modal {
  width: 100%;
  max-width: 440px;
  padding: 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #eee7f5;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(25, 16, 40, .2);
}
.learning-materials-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  color: #b4444c;
  background: #fff0f1;
  border-radius: 16px;
  font-size: 22px;
}
.learning-materials-modal h2 { margin: 0 0 10px; color: #302a3a; font-family: "Manrope", sans-serif; font-size: 20px; font-weight: 800; }
.learning-materials-modal p { margin: 0; color: #827b8b; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.learning-materials-modal-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.learning-materials-modal-cancel,
.learning-materials-modal-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.learning-materials-modal-cancel { color: #665b73; background: #f7f5f9; border: 1px solid #e9e3ef; }
.learning-materials-modal-delete { color: #fff; background: #b4444c; border: 1px solid #b4444c; }
.learning-materials-modal-delete:hover { background: #9f3039; }
@media (max-width: 900px) {
  .learning-materials-summary-grid { gap: 12px; }
  .learning-materials-summary-card { padding: 17px; }
}
@media (max-width: 700px) {
  .learning-materials-header { flex-direction: column; align-items: stretch; }
  .learning-materials-add-btn { align-self: flex-start; }
  .learning-materials-heading h1 { font-size: 25px; }
  .learning-materials-summary-grid { grid-template-columns: 1fr; }
  .learning-materials-summary-card { min-height: 88px; }
  .learning-material-item { gap: 12px; padding: 17px; }
  .learning-material-item-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .learning-material-item-number { display: none; }
  .learning-materials-section-heading { align-items: flex-start; }
  .learning-materials-modal { padding: 24px 19px; }
}


/* =========================================================
   EVOLYN VIEW LEARNING MATERIAL
   Shared app shell + common programme buttons and typography.
========================================================= */
.view-material-page {
  max-width: 1400px;
}
.view-material-page .module-back-link {
  margin-bottom: 24px;
}
.view-material-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 26px;
}
.view-material-heading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 18px;
  color: #7450bd;
  background: #f1eafb;
  font-size: 27px;
}
.view-material-heading-copy { min-width: 0; flex: 1; }
.view-material-eyebrow {
  margin-bottom: 6px;
  color: #7450bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.view-material-heading-copy h1 {
  margin: 0 0 7px;
  color: #292430;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.6px;
  overflow-wrap: anywhere;
}
.view-material-heading-copy p {
  margin: 0;
  color: #847d8b;
  font-size: 14px;
  line-height: 1.65;
}
.view-material-heading-actions { flex: 0 0 auto; }
.view-material-heading-actions .programme-primary-btn,
.view-material-resource-box .programme-primary-btn,
.view-material-footer-actions .programme-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.view-material-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.view-material-meta-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 100px;
  padding: 18px;
  border: 1px solid #ebe7f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(44, 31, 69, .025);
}
.view-material-meta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  color: #7450bd;
  background: #f4effb;
  font-size: 17px;
}
.view-material-meta-card > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.view-material-meta-card > div > span {
  color: #898291;
  font-size: 12px;
  font-weight: 600;
}
.view-material-meta-card strong {
  color: #332d3b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.view-material-panel {
  margin-bottom: 20px;
  padding: 25px 27px;
  border: 1px solid #ebe7f1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(44, 31, 69, .025);
}
.view-material-panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 19px;
  border-bottom: 1px solid #f0edf4;
  margin-bottom: 20px;
}
.view-material-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: #7450bd;
  background: #f4effb;
  font-size: 18px;
}
.view-material-panel-heading h2 {
  margin: 0 0 4px;
  color: #302a3a;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
}
.view-material-panel-heading p {
  margin: 0;
  color: #898291;
  font-size: 12px;
  line-height: 1.5;
}
.view-material-description,
.view-material-text-content {
  color: #514a5b;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: normal;
}
.view-material-text-content {
  white-space: pre-wrap;
  padding: 3px 1px;
}
.view-material-resource-box {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px;
  border: 1px solid #eae3f4;
  border-radius: 13px;
  background: #fbf9fe;
}
.view-material-resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  color: #7450bd;
  background: #f0e8fb;
  font-size: 21px;
}
.view-material-resource-copy { min-width: 0; flex: 1; }
.view-material-resource-copy strong {
  display: block;
  margin-bottom: 5px;
  color: #332d3b;
  font-size: 14px;
  font-weight: 750;
}
.view-material-resource-copy p {
  margin: 0;
  color: #847d8b;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.view-material-empty-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 17px;
  border: 1px solid #e9e4f1;
  border-radius: 12px;
  color: #6d6379;
  background: #faf8fd;
  font-size: 13px;
  line-height: 1.7;
}
.view-material-empty-notice i { margin-top: 2px; color: #7450bd; }
.view-material-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}
.view-material-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #e4ddec;
  border-radius: 10px;
  color: #665879;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}
.view-material-secondary-btn:hover { color: #5e3e9c; border-color: #d8c9ef; background: #f8f4fd; }
@media (max-width: 1100px) {
  .view-material-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .view-material-heading { align-items: flex-start; flex-wrap: wrap; }
  .view-material-heading-icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 14px; font-size: 22px; }
  .view-material-heading-copy { flex-basis: calc(100% - 70px); }
  .view-material-heading-copy h1 { font-size: 24px; }
  .view-material-heading-actions { width: 100%; }
  .view-material-meta-grid { grid-template-columns: 1fr; gap: 10px; }
  .view-material-meta-card { min-height: 0; padding: 15px; }
  .view-material-panel { padding: 20px 17px; }
  .view-material-resource-box { align-items: flex-start; flex-wrap: wrap; padding: 15px; }
  .view-material-resource-copy { flex-basis: calc(100% - 62px); }
  .view-material-resource-box .programme-primary-btn { width: 100%; }
  .view-material-footer-actions { align-items: stretch; flex-direction: column-reverse; }
  .view-material-footer-actions > a { width: 100%; }
}

/* Shared profile photos */
.ev-profile-hero{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:24px;padding:28px!important}.ev-profile-portrait{height:108px;width:108px;flex:none;border-radius:24px;background:#eee7fc;color:#6745b7;display:grid;place-items:center;font-size:42px;font-weight:800;overflow:hidden}.ev-profile-portrait img,.ev-avatar-img,.ev-sidebar-person-img img{width:100%;height:100%;object-fit:cover}.ev-profile-identity{flex:1;min-width:180px}.ev-profile-identity h2{font-size:27px;margin:6px 0}.ev-profile-identity p{font-size:15px;overflow-wrap:anywhere}.ev-profile-upload{display:grid;gap:8px;min-width:220px;max-width:320px}.ev-profile-upload label{font-weight:650;font-size:14px}.ev-profile-upload input{max-width:100%;font-size:14px}.ev-profile-upload button{justify-self:start}.topbar-avatar{overflow:hidden}.ev-sidebar-person{display:flex;gap:12px;align-items:center;padding:13px;margin:14px 8px 0;border:1px solid #e7ddf6;border-radius:14px;color:inherit;text-decoration:none;min-width:0}.ev-sidebar-person-img{display:grid;place-items:center;flex:none;width:42px;height:42px;overflow:hidden;border-radius:50%;background:#eee6fc;color:#6446b1;font-weight:800}.ev-sidebar-person strong,.ev-sidebar-person small{display:block;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ev-sidebar-person small{font-size:12px;opacity:.7;margin-top:3px}@media(max-width:700px){.ev-profile-hero{padding:18px!important}.ev-profile-upload{width:100%;max-width:none}}
