
/* ===========================
   LOGIN + OTP (Glass Style)
   =========================== */

/* ---------- Base background like admin ---------- */
.auth-body{
  margin: 0;
  min-height: 100vh;
  background-color: #F6F6F6;

  background-image: url("images/both.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: fixed;
  background-size: cover;

  font-family: "Lyon Arabic Display", serif;
  color: #0f172a;
}

/* ---------- Glass base (same as admin cards) ---------- */
.glass{
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

/* ---------- Layout ---------- */
.auth-wrap{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 18px;
}

/* ---------- Card ---------- */
.auth-card{
  width: min(860px, 92vw);
  padding: 56px 64px;
  border-radius: 30px;
}

/* ---------- Brand ---------- */
.brand{
  text-align: center;
  margin-bottom: 22px;
}

.logo-img{
  width: 90px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 10px 18px rgba(27,78,216,0.25));
}

.auth-title{
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  color: #0b2a7a;
  letter-spacing: 0.2px;
}

.auth-subtitle{
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(71,85,105,0.95);
}

/* ---------- Form ---------- */
.form{
  width: min(620px, 100%);
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label{
  font-size: 14px;
  font-weight: 800;
  color: #0b2a7a;
}

.input-wrap{
  height: 54px;
  padding: 0 14px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  gap: 10px;

  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.45);

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.input-icon{
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;

  background: rgba(42,124,240,0.10);
  border: 1px solid rgba(42,124,240,0.18);
  font-size: 14px;
}

.input{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}

.input::placeholder{
  color: rgba(71,85,105,0.55);
  font-weight: 600;
}

.input-wrap:focus-within{
  border-color: rgba(42,124,240,0.55);
  box-shadow: 0 0 0 4px rgba(42,124,240,0.12), 0 10px 22px rgba(15, 23, 42, 0.08);
}

.hint{
  font-size: 12px;
  color: rgba(71,85,105,0.85);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn{
  border: none;
  outline: none;
  cursor: pointer;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  width: 200px;
  margin: 6px auto 0;
  color: #fff;
  background: radial-gradient(circle at 0% 0%, #2a7cf0, #2f6ec4, #1836a4);
  box-shadow: 0 14px 30px rgba(24, 54, 164, 0.25);
}

.btn-primary:hover{
  transform: translateY(-1px);
}

.btn-ghost{
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.40);
  color: #0b2a7a;
}

.btn-ghost:hover{
  background: rgba(255,255,255,0.28);
}

/* ---------- OTP FRAME POPUP ---------- */
.modal{
  position: fixed;
  inset: 0;
  display: none; /* shown with .is-open */
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.modal.is-open{
  display: flex;
}

/* Backdrop */
.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(161, 211, 252, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Frame popup panel */
.modal__panel{
  position: relative;
  width: min(620px, 95vw);
  border-radius: 26px;
  padding: 20px 20px 18px;
    background: rgba(255, 255, 255, 0.28);               /* lighter glass */
  border: 1px solid rgba(255, 255, 255, 0.55);         /* brighter border */
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14); 
    z-index: 2;

  /* pop animation */
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  animation: otpPop .28s ease forwards;
}

@keyframes otpPop{
  to{
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 12px;
}

.modal__header h2{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
   text-align: center;
  color: #0b2a7a;
}

/* Close icon button */
.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(42,124,240,0.28);
  background: rgba(255,255,255,0.20);
  color: #0b2a7a;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.icon-btn:hover{
  background: rgba(255,255,255,0.30);
  transform: translateY(-1px);
}

.modal__text{
  margin: 10px 0 16px;
  color: rgba(71,85,105,0.95);
  font-size: 13px;
  font-weight: 600;
}

/* OTP boxes */
.otp{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.otp__boxes{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
#otpTitle{
     text-align: center;
}
.otp__box{
  width: 54px;
  height: 58px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.20);

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  outline: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  font-family: inherit;
  color: #0b2a7a;
}

.otp__box:focus{
  border-color: rgba(42,124,240,0.55);
  box-shadow: 0 0 0 4px rgba(42,124,240,0.12), 0 10px 22px rgba(15, 23, 42, 0.08);
}

.otp__row{
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.otp__footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.muted{
  color: rgba(71,85,105,0.95);
  font-size: 12px;
  font-weight: 700;
}

.link-btn{
  border: none;
  background: transparent;
  color: #2a7cf0;
  font-weight: 900;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
}

.link-btn:hover{
  background: rgba(42,124,240,0.10);
}

/* ===========================
   Alerts
=========================== */

.alert{
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  
}

/* 🔴 Error state */
.alert.error{
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}


/* Responsive */
@media (max-width: 720px){
  .auth-card{ padding: 34px 18px; }
  .auth-title{ font-size: 32px; }
  .otp__box{ width: 48px; height: 54px; }
}


/*=======================================================================*/
/* ===========================
   Thakaa Beyond - Admin UI
   Overview (Frontend)
   Font sizes: 10px → 18px ONLY
   =========================== */
/* ===========================
   Beyond AI - Admin (Layout)
   - logo: logo.png
   - top bg: top.png (fixed)
   - page bg: #F6F6F6
   =========================== */
/* ===========================
   FONT: Lyon Arabic Display
   =========================== */


@font-face {
  font-family: "Lyon Arabic Display";
  src: url("Fonts/") format("otf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lyon Arabic Display";
  src: url("Fonts/COMM - Lyon Arabic Slanted Display Bold.otf") format("otf");
 
  font-weight: 700;
  font-style: normal;
}

/* ===========================
   1) CSS Variables
   =========================== */
.brand-logo{
  width: 150px;
  height: 150px;
  object-fit: contain;
}

:root{
  --page-bg: #F6F6F6;
  --line: rgba(15, 23, 42, 0.25);
  --blue: #1b4ed8;
  --blue-soft: rgba(27, 78, 216, 0.10);
  --text: #0f172a;
  --muted: #475569;

  --radius: 14px;
  --sidebar-w: 220px;
  --topbar-h: 96px;
}

/* ===========================
   2) Base / Background
   =========================== */
*{ box-sizing: border-box; }

html, body{
  height: 100%;
}
.brand-title,
.nav-text,
.user-name,
.bottom-text {
  font-family: "Lyon Arabic Display", serif;
}

body{
  margin: 0;
  color: var(--text);
  background: var(--page-bg);

  /* Fixed top background image */
  background-image: url("images/both.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: fixed;
  background-size: cover;
  background-size: cover;   

  font-family: "Lyon Arabic Display", serif;
}
/* Allow background to pass through */
.app,
.layout,
.content {
  background: transparent;
}


/* ===========================
   3) App Wrapper
   =========================== */
.app{
  min-height: 100vh;
}

/* ===========================
   4) Top Header (Topbar)
   =========================== */
.topbar{
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 24px;

  /* Border line like screenshot */
  border-bottom: 1px solid var(--line);

  
  backdrop-filter: blur(6px);
}

.topbar-left{
  display: flex;
  align-items: center;
 
  gap: 14px;
}


.brand-title{
 text-align: left;
  margin: 0;
  font-size: 32px; /* requested */
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0b2a7a; /* similar deep blue */
}

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

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;

  border: 1px solid rgba(27, 78, 216, 0.35);
  background: rgba(255,255,255,0.75);
  cursor: pointer;

  display: grid;
  place-items: center;

  color: #0b2a7a;
  font-size: 18px; /* within 16-10 range? icons are fine slightly bigger */
}

.icon-btn:hover{
  background: rgba(255,255,255,0.95);
  border-color: rgba(27, 78, 216, 0.55);
}

/* ===========================
   5) Main Layout (Sidebar + Content)
   =========================== */
.layout{
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--topbar-h));
}

/* ===========================
   6) Sidebar
   =========================== */
.sidebar{
  border-right: 1px solid var(--line);

  backdrop-filter: blur(6px);

  display: flex;
  flex-direction: column;
}

/* Nav list */
.nav{
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 999px;

  text-decoration: none;
  color: #0b2a7a;

  font-size: 16px; /* between 16-10 */
  font-weight: 600;
}



.nav-icon{
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;

  color: #0b2a7a;
  font-size: 14px;
}

/* ===========================
   ACTIVE SIDEBAR ITEM (Gradient)
   =========================== */
.nav-item.active{
  background: radial-gradient(
    circle at 0% 0%,
    #2a7cf0,
    #2f6ec4,
    #1836a4
  );

  color: #ffffff;
  box-shadow: 0 10px 22px rgba(24, 54, 164, 0.35);
}

.nav-item.active .nav-icon{
  color: #ffffff;
}

/* ===========================
   7) Sidebar Bottom Area
   =========================== */
.sidebar-bottom{
  margin-top: auto;
  padding: 18px 16px 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.18);
}

.user-block{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 6px 14px;
}

.user-icon{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;

  color: #0b2a7a;
  font-size: 18px;
}

.user-name{
  font-size: 16px; /* requested range */
  font-weight: 800;
  color: #0b2a7a;
}

.bottom-link{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 6px;
  text-decoration: none;

  color: #0b2a7a;
  font-size: 14px; /* requested range */
  font-weight: 650;
}

/* Hover state – same as sidebar */
.nav-item:not(.active):hover,
.bottom-link:hover{
  background: rgba(42, 124, 240, 0.10);
  box-shadow: 0 8px 18px rgba(27, 78, 216, 0.10);
  transform: translateY(-1px);
}

/* ===========================
   SIDEBAR HOVER (icon + text together)
   =========================== */

/* Smooth transitions for the whole item + icon/text */
.nav-item,
.nav-icon,
.nav-text{
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Default (already in your code, but keep consistent) */
.nav-item{
  position: relative;
}

/* Hover state for NON-active items */
.nav-item:not(.active):hover{
  border-radius: 999px;
  background: rgba(42, 124, 240, 0.10);  /* soft blue highlight */
  box-shadow: 0 8px 18px rgba(27, 78, 216, 0.10);
}

/* Hover state – same as sidebar */
.nav-item:not(.active):hover,
.bottom-link:hover{
    border-radius: 999px;
  background: rgba(42, 124, 240, 0.10);
  box-shadow: 0 8px 18px rgba(27, 78, 216, 0.10);
  transform: translateY(-1px);
}

/* ===========================
   ACTIVE STATE — Bottom Links (Settings)
   =========================== */

.bottom-link.active{
  background: radial-gradient(
    circle at 0% 0%,
    #2a7cf0,
    #2f6ec4,
    #1836a4
  );

  color: #ffffff;
  box-shadow: 0 10px 22px rgba(24, 54, 164, 0.35);
  border-radius: 999px;
}

.bottom-link.active .bottom-icon,
.bottom-link.active .bottom-text{
  color: #ffffff;
}

/* ===========================
   8) Content Area
   =========================== */
.content{
  /* Keep it light/empty like screenshot */
  background: transparent;
  min-height: 100%;

  /* This gives breathing room so it doesn't feel stuck */
  padding: 24px;
}

/* ===========================
   9) Responsive (Optional)
   =========================== */
@media (max-width: 860px){
  :root{ --sidebar-w: 200px; }

  .brand-title{ font-size: 26px; }
}

@media (max-width: 680px){
  .layout{
    grid-template-columns: 1fr;
  }

  .sidebar{
    position: sticky;
    top: 0;
    z-index: 5;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* ===========================
   DASHBOARD BODY (Glass UI)
   =========================== */

/* Content width like a dashboard canvas */
.dashboard{
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Your glass effect as a reusable class ---- */
.glass{
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

/* Panels spacing */
.panel{
  padding: 18px;
}

/* ---- KPI Cards ---- */
.kpi-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.kpi-card{
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.kpi-top{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.kpi-icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(42, 124, 240, 0.10);
  border: 1px solid rgba(42, 124, 240, 0.18);
  color: #1836a4;
  font-size: 14px;
}

.kpi-label{
  font-size: 14px;
  font-weight: 800;
  color: #0b2a7a;
}

.kpi-value{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #0b2a7a;
}

.kpi-sub{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(71, 85, 105, 0.95);
}

/* ---- Main Grid ---- */
.dash-grid{
  display: grid;
  grid-template-columns: 1.6fr 0.75fr; /* table wider, quick actions narrower */
  gap: 14px;
  align-items: start;
}

/* ---- Panel Header ---- */
.panel-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title{
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: #0b2a7a;
}

.panel-hint{
  font-size: 12px;
  color: rgba(71, 85, 105, 0.95);
}

/* ---- Table ---- */
.table-wrap{
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.30);
}

.courses-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.courses-table thead th{
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: rgba(11, 42, 122, 0.95);
  background: rgba(255,255,255,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.30);
  padding: 12px 12px;
}

.courses-table tbody td{
  padding: 12px 12px;
  font-size: 14px;
  color: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

.courses-table tbody tr:hover{
  background: rgba(42, 124, 240, 0.06);
}

.course-name{
  font-weight: 800;
  color: #0b2a7a;
}

.mono{
  font-variant-numeric: tabular-nums;
}

/* Align action column */
.col-actions{
  text-align: right;
  width: 170px;
}

/* ---- Status badges ---- */
.status-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.35);
}

.status-badge.open{
  background: rgba(42, 124, 240, 0.10);
  color: #1836a4;
}

.status-badge.closing{
  background: rgba(255, 193, 7, 0.12);
  color: #8a5a00;
}

.status-badge.full{
  background: rgba(244, 63, 94, 0.10);
  color: #9f1239;
}

/* ---- Buttons (Glass) ---- */
.btn-glass{
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 12px;
  color: #0b2a7a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn-glass:hover{
  background: rgba(42, 124, 240, 0.12);
  box-shadow: 0 10px 22px rgba(27,78,216,0.12);
  transform: translateY(-1px);
}

.btn-small{
  padding: 9px 12px;
}

/* ---- Quick Actions ---- */
.quick-actions{
  padding: 18px;
}

.qa-buttons{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.btn-primary-glass{
  width: 100%;
  border: 1px solid rgba(255,255,255,0.40);
  background: radial-gradient(circle at 0% 0%, #2a7cf0, #2f6ec4, #1836a4);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-primary-glass:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(24, 54, 164, 0.25);
  filter: brightness(1.02);
}

/* ---- Responsive ---- */
@media (max-width: 980px){
  .kpi-row{ grid-template-columns: 1fr; }
  .dash-grid{ grid-template-columns: 1fr; }
  .courses-table{ min-width: 0; }
  .col-actions{ width: auto; }
}
/* ===========================
   REGISTRATION FUNNEL (Matches KPI Cards)
   =========================== */

.funnel{
  margin-top: 14px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.funnel-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

/* Same grid feel as KPI row */
.funnel-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.funnel-card{
  padding: 18px;           /* same as KPI */
  position: relative;
  overflow: hidden;
  border-radius: 22px;     /* same as .glass */
}

/* Same label style as KPI label */
.funnel-label{
  font-size: 14px;
  font-weight: 800;
  color: #0b2a7a;
}

/* Same number style as KPI value */
.funnel-value{
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #0b2a7a;
  font-variant-numeric: tabular-nums;
}

/* Same sub-text vibe */
.funnel-sub{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(71, 85, 105, 0.95);
}

/* Responsive */
@media (max-width: 980px){
  .funnel-row{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px){
  .funnel-row{ grid-template-columns: 1fr; }
}
/* ===========================
   SYSTEM HEALTH (Matches Cards)
   =========================== */

.health{
  margin-top: 14px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.health-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.health-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.health-card{
  padding: 18px;        /* same as KPI */
  border-radius: 22px;  /* matches glass */
}

.health-label{
  font-size: 14px;
  font-weight: 800;
  color: #0b2a7a;
}

.health-status{
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.health-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.50);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.health-text{
  font-size: 14px;
  font-weight: 900;
  color: rgba(11, 42, 122, 0.95);
}

/* Status colors (for later JS) */
.health-dot.unknown{ background: rgba(100,116,139,0.45); }
.health-dot.ok{ background: rgba(34,197,94,0.55); }
.health-dot.warn{ background: rgba(245,158,11,0.55); }
.health-dot.bad{ background: rgba(244,63,94,0.55); }

/* Responsive */
@media (max-width: 980px){
  .health-row{ grid-template-columns: 1fr; }
}
/* ======================================================================= */
/* ===========================
   COURSES PAGE (CLEAN + FIXED)
   - No duplicates
   - Matches dashboard glass style
=========================== */

.courses-page{
  margin-bottom: 18px;
}

/* Header area inside the panel */
.courses-head{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
/* ===========================
   COURSES – FORCE TITLE + BUTTON SIDE-BY-SIDE
   (Paste at END of admin.css)
=========================== */

.courses-title-row{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

/* IMPORTANT: stop the button from stretching */
.btn-add-course{
  width: auto !important;
  flex: 0 0 auto !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 44px;
  border-radius: 999px;
}

/* If your .btn-primary-glass has width:100%, this overrides it ONLY here */
.courses-title-row .btn-primary-glass{
  width: auto !important;
  flex: 0 0 auto !important;
}

/* Title row: Courses + Add button */
.courses-title-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.courses-title-row .panel-title{
  margin: 0;
}

/* Add button beside title */
.btn-add-course{
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
}

/* Subtitle line */
.courses-sub{
  font-size: 12px;
  color: var(--muted);
}

/* Controls row */
.courses-controls{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 12px;
  align-items:center;
}

/* Search uses same input-wrap style */
.courses-search{
  height: 54px;
}

/* ===========================
   Dropdown (Select) - THEME
   Matches your input style
=========================== */

.select-wrap{
  position: relative;
  height: 54px;
  display:flex;
  align-items:center;
  gap: 10px;

  background: rgba(255,255,255,.70);
  border: 1px solid rgba(229,234,242,.95);
  border-radius: 999px;

  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 0 14px;
}

.select-icon{
  width: 26px;
  opacity: .55;
  font-size: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #0b2a7a;
}

/* Custom chevron (same look) */
.select-chevron{
  margin-left: auto;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(11, 42, 122, 0.55);
  font-size: 12px;
  pointer-events: none;
}

/* remove browser default select style */
.select{
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 30px; /* space for chevron */
}

/* Hover + Focus like inputs */
.select-wrap:hover{
  border-color: rgba(27, 78, 216, 0.35);
}

.select-wrap:focus-within{
  border-color: rgba(27, 78, 216, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 78, 216, 0.10), var(--shadow-soft);
}

/* ===========================
   Courses list + empty state
=========================== */

.courses-list{
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.courses-empty{
  margin-top: 14px;
  text-align:center;
  padding: 26px 16px;
}

.empty-title{
  font-size: 18px;
  font-weight: 900;
  color: #0b2a7a;
}

.empty-sub{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px){
  .courses-controls{
    grid-template-columns: 1fr;
  }
  .courses-title-row{
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}


/* ===========================
   COURSE PAGE (ONLY)
=========================== */

.course-page{ padding:22px; }

/* ---------- Header ---------- */
.course-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.course-title{
  margin:0;
  font-size:34px;
  font-weight:900;
  color:#0b2a7a;
}
.course-updated{
  margin-top:6px;
  font-size:12px;
  color:#64748b;
}

.course-actions-top{
  display:flex;
  gap:10px;
}
.action-icon{
  width:44px;height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(229,234,242,.9);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.action-icon.danger{ color:#b91c1c; }

/* ---------- Summary Cards ---------- */
.course-summary{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(5,1fr);
  gap:12px;
}
.course-mini{
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.6);
  box-shadow:0 12px 30px rgba(15,23,42,.08);
}
.mini-label{
  font-size:12px;
  font-weight:800;
  color:#64748b;
}
.mini-value{
  margin-top:8px;
  font-size:18px;
  font-weight:900;
  color:#0b2a7a;
}

/* Accept card */
.accept-mini{
  cursor:pointer;
  background: linear-gradient(135deg,#1b4ed8,#0b2a7a);
  color:#fff;
}
.accept-mini .mini-label{ color:rgba(255,255,255,.75); }
.accept-mini-row{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:900;
}

/* ---------- Tabs ---------- */
.course-tabs{
  margin:16px 0;
  display:flex;
  gap:10px;
}
.tab-btn{
  height:42px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid rgba(229,234,242,.9);
  background:#fff;
  font-weight:900;
  cursor:pointer;
}
.tab-btn.is-active{
  background:#e8f0ff;
  border-color:#1b4ed8;
  color:#0b2a7a;
}

/* ---------- Controls ---------- */
.course-controls{
  display:grid;
  grid-template-columns: 1.4fr .8fr .6fr;
  gap:12px;
  margin-bottom:14px;
}

/* ---------- Table ---------- */
.table-wrap{ overflow-x:auto; }
.courses-table{
  width:100%;
  border-collapse:collapse;
}
.courses-table th{
  text-align:left;
  font-size:12px;
  color:#0b2a7a;
  padding:12px;
}
.courses-table td{
  padding:14px;
  border-top:1px solid rgba(229,234,242,.9);
}
.empty-state{
  text-align:center;
  padding:22px;
  color:#64748b;
}

/* ===========================
   ACCEPT REGISTRATIONS – FULL SECTION (Modal UI)
   + FIXES PATCH INCLUDED
   Fixes:
   - Bigger frame + proper height
   - No overlap / no clipping when select opens
   - Criteria area scrolls (rules can grow)
   - Select field is glass (no white background)
   - Buttons same size + correct classes
=========================== */

/* ---------- Modal layering ---------- */
.modal{ z-index: 9999; }

/* ---------- Modal panel sizing + layout ---------- */
.accept-modal{
  width: min(1100px, calc(100% - 28px));
  max-height: min(78vh, 760px);
  overflow: visible;

  border-radius: 30px;
  padding: 22px;

  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 40px 110px rgba(15,23,42,.25);

  display:flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.modal__header{
  position: relative;
  flex: 0 0 auto;

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

  padding: 4px 6px 10px;
}

.modal__title-center{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #0b2a7a;
  letter-spacing: .2px;
}

/* Close button */
.modal__close{
  position:absolute;
  right: 6px;
  top: 2px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(11,42,122,0.95);
}
.modal__close:hover{ border-color: rgba(27,78,216,0.35); }
.modal__close:active{ transform: translateY(1px); }

/* ===========================
   Capacity row (ONE LEVEL)
=========================== */
.capacity-card{
  flex: 0 0 auto;

  display:grid;
  grid-template-columns: 150px 1fr 140px;
  gap: 14px;
  align-items:center;

  margin-top: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);

  overflow: visible;
}

/* label */
.cap-label{
  font-size: 18px;
  font-weight: 900;
  color:#0b2a7a;
}

.cap-mid{
  display:flex;
  align-items:center;
}

/* slider */
.cap-range{
  width: 100%;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(11,42,122,.16);
  border-radius: 999px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.cap-range::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b4ed8, #0b2a7a);
  border: 3px solid rgba(255,255,255,.95);
  box-shadow: 0 12px 28px rgba(27,78,216,.28);
  cursor: pointer;
}
.cap-range::-moz-range-thumb{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b4ed8, #0b2a7a);
  border: 3px solid rgba(255,255,255,.95);
  box-shadow: 0 12px 28px rgba(27,78,216,.28);
  cursor: pointer;
}

/* number input */
.cap-input{
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

  padding: 0 16px;
  font-weight: 900;
  font-size: 15px;
  color: rgba(11,42,122,0.95);
  outline: none;
}
.cap-input:focus{
  border-color: rgba(27,78,216,.55);
  box-shadow: 0 0 0 4px rgba(27,78,216,.10), 0 14px 34px rgba(15, 23, 42, 0.08);
}

/* hide spinner (optional) */
.cap-input::-webkit-outer-spin-button,
.cap-input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.cap-input{ -moz-appearance: textfield; }

/* ===========================
   Criteria block (scroll area)
=========================== */
.accept-block{
  flex: 1 1 auto;
  min-height: 0;             /* IMPORTANT for flex scrolling */

  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);

  display:flex;
  flex-direction: column;

  overflow: visible;         /* DON'T CLIP SELECT */
}

/* Criteria header + buttons same line */
.criteria-head{
  flex: 0 0 auto;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.accept-label{
  font-size: 18px;
  font-weight: 900;
  color: #0b2a7a;
}

.criteria-actions{
  display:flex;
  gap: 10px;
}

/* ghost buttons */
.btn-ghost-glass{
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  color: rgba(11,42,122,0.95);
  font-weight: 900;
  cursor:pointer;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: border-color .2s ease, transform .08s ease, background .2s ease;
}
.btn-ghost-glass:hover{
  border-color: rgba(27,78,216,0.40);
  background: rgba(255,255,255,0.22);
}
.btn-ghost-glass:active{ transform: translateY(1px); }

/* Rules list becomes scrollable */
.rules-list{
  flex: 1 1 auto;
  min-height: 0;            /* IMPORTANT */
  margin-top: 12px;

  display:flex;
  flex-direction: column;
  gap: 12px;

  overflow: auto;
  padding-right: 6px;
}

/* scrollbar (optional) */
.rules-list::-webkit-scrollbar{ width: 10px; }
.rules-list::-webkit-scrollbar-thumb{
  background: rgba(11,42,122,.22);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
}

/* each rule row = select + value + delete */
.rule-item{
  position: relative;
  z-index: 1;
  overflow: visible;        /* IMPORTANT */

  display:grid;
  grid-template-columns: 260px 1fr 56px;
  gap: 12px;
  align-items:center;

  padding: 12px;
  border-radius: 18px;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

/* raise focused rule row */
.rule-item:focus-within{ z-index: 80; }
.rule-item.is-active{ z-index: 90; }

/* ✅ Custom select wrapper (glass, NOT white) */
.rule-select-wrap{
  position: relative;
  height: 52px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

  display:flex;
  align-items:center;
  padding: 0 44px 0 14px;

  overflow: visible;
}

/* select itself */
.rule-select-wrap select{
  width: 100%;
  height: 100%;
  border: none;
  outline: none;

  background: transparent !important;  /* IMPORTANT */
  color: rgba(11,42,122,0.95);

  font-size: 14px;
  font-weight: 900;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rule-select-wrap::after{
  content: "▾";
  position:absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(11,42,122,0.65);
  pointer-events: none;
}

/* options (browser dependent) */
.rule-select-wrap select option{
  background: #f7fbff;
  color: #0b2a7a;
  font-weight: 700;
}

/* rule value input */
.rule-item input{
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(11,42,122,0.95);
  outline: none;
}
.rule-item input:focus{
  border-color: rgba(27,78,216,.55);
  box-shadow: 0 0 0 4px rgba(27,78,216,.10), 0 14px 34px rgba(15, 23, 42, 0.08);
}

/* delete button */
.rule-del{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(239,68,68,0.22);
  background: rgba(239,68,68,0.12);
  color: #b91c1c;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  transition: transform .08s ease, background .2s ease;
}
.rule-del:hover{ background: rgba(239,68,68,0.16); }
.rule-del:active{ transform: translateY(1px); }

/* ===========================
   Footer buttons (match your HTML)
=========================== */
.modal__footer-center{
  flex: 0 0 auto;

  display:flex;
  justify-content:center;
  align-items:center;
  gap: 14px;
  margin-top: 18px;
}


.modal__footer{
  display:flex;
  justify-content:center;
  gap:12px;
}
#prevStepBtn, #nextStepBtn{
  flex:0 0 auto;
  width:160px;
}


/* your HTML uses .btn-white.modal-btn */
.btn-white.modal-btn{
  height: 56px;
  width: 260px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.88);
  color: #0b2a7a;
  font-weight: 900;
  font-size: 15px;
  cursor:pointer;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn-white.modal-btn:hover{
  background: rgba(255,255,255,0.95);
  border-color: rgba(27,78,216,0.25);
}
.btn-white.modal-btn:active{ transform: translateY(1px); }

.btn-white.modal-btn.modal-btn-strong{
  background: rgba(255,255,255,0.92);
  border-color: rgba(27,78,216,0.20);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 820px){
  .accept-modal{
    width: calc(100% - 18px);
    max-height: 82vh;
    padding: 18px;
  }
  .capacity-card{ grid-template-columns: 1fr; }
  .criteria-head{ flex-direction: column; align-items:flex-start; }
  .criteria-actions{ width:100%; }
  .btn-ghost-glass{ width:100%; }
  .rule-item{ grid-template-columns: 1fr; }
  .rule-del{ width:100%; }
  .modal__footer-center{ flex-direction: column; align-items: stretch; }
  .btn-white.modal-btn{ width:100%; }
}





/* ===========================
   COURSE CARDS (Courses.html)
=========================== */
/* ===========================
   Courses grid (2 per row)
=========================== */
#coursesList{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px){
  #coursesList{ grid-template-columns: 1fr; }
}

/* ===========================
   Course Card — Glass (small + clean)
=========================== */
.course-card{
  position:relative;
  border-radius: 22px;
  padding: 18px 18px 16px;

  /* glass */
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.38);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 50px rgba(15,23,42,.10);
}

.course-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.course-card__title{
  font-size: 18px;          /* ✅ smaller */
  font-weight: 900;
  color:#0b2a7a;
  line-height:1.1;
}

.course-card__status{
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;          /* ✅ smaller */
  color:#fff;
  background:#2f6f3a;
  white-space: wrap;
}

.course-card__mid{
  display:grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
  align-items:center;
}

.course-card__reg{
  display:flex;
  align-items:center;
  gap: 10px;
}
.course-card__reg .num{
  font-weight: 900;
  color:#2f7be8;
  font-size: 10px;
}
.course-card__reg strong{
  display:block;
  font-weight: 900;
  color:#0b2a7a;
  font-size: 18px;
}

.course-card__label{
  font-weight: 900;
  color:#0b2a7a;
  font-size: 14px;
}
.course-card__date{
  margin-top: 6px;
  font-weight: 900;
  color: rgba(15,23,42,.90);
  font-size: 13px;
}

/* bottom action */
.course-card__bottom{
  margin-top: 14px;
  display:flex;
  justify-content:flex-end;
}

.course-card__cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  height: 42px;             /* ✅ smaller */
  min-width: 220px;
  padding: 0 14px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.30);
  background: linear-gradient(135deg, rgba(80,140,255,.92), rgba(45,90,200,.92));
  color:#fff;
  font-weight: 900;
  cursor: pointer;
}

.course-card__cta i{ font-size: 16px; }

@media (max-width: 1100px){
  .course-card__mid{ grid-template-columns: 1fr; }
  .course-card__bottom{ justify-content: flex-start; }
  .course-card__cta{ width:100%; min-width:0; }
}

.course-card{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
}

.course-media{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
}

.course-media img{
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

.course-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 6px 6px 2px;
}

.course-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}

.course-title{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #0b2a7a;
}

.course-meta{
  display: grid;
  gap: 8px;
  color: rgba(71,85,105,0.95);
  font-size: 12px;
  font-weight: 700;
}

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

.course-actions{
  margin-top: auto;
  display:flex;
  gap: 10px;
  justify-content: flex-start;
}

/* small button helper */
.btn-sm{
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}
@media (max-width: 860px){
  .course-card{ grid-template-columns: 1fr; }
  .course-media img{ min-height: 180px; }
}



/* =========================================================
   COURSES CARDS + WIZARD (4 FRAMES) — GLASS THEME
   Paste at END of admin.css
========================================================= */
/* ===========================
   Thakaa Beyond - Admin UI
   Shared Layout + Glass System
   =========================== */

/* ===========================
   Modal (Wizard Base)
=========================== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
   z-index: 1;
  background: rgba(183, 222, 254, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#courseWizard .modal__panel{
  position: relative;
  width: min(1050px, calc(100% - 24px));
  
  overflow: hidden;
  border-radius: 30px;
 
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.40);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 40px 110px rgba(15,23,42,.22);
  display:flex;
  flex-direction: column;
   max-height: min(92vh, 980px) !important;
  padding: 14px 16px 14px !important;
}

#courseWizard .modal__header{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 4px 6px 6px !important;
  flex: 0 0 auto;
}
#courseWizard .wizard-steps{
  padding: 0 6px 4px !important;
}
/* Backdrop should NEVER capture clicks above panel */
#courseWizard .modal__backdrop {
  z-index: 1;
  pointer-events: none; /* 🔥 THIS IS THE KEY */
}
.modal__title-center{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #0b2a7a;
  text-align:center;
}
.modal__close{
  position:absolute;
  right: 6px;
  top: 4px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

/* Wizard header row */
.wizard-steps{
  display:flex;
  align-items:center;
  justify-content: space-between;
 
  padding: 0 6px 6px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(71,85,105,0.95);
  flex: 0 0 auto;
}

.w-stepper{ display:flex; gap: 5px; align-items:center; }
.w-step-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(100,116,139,0.35);
  border: 1px solid rgba(255,255,255,0.55);
}
.w-step-dot.is-active{
  background: radial-gradient(circle at 0% 0%, #2a7cf0, #2f6ec4, #1836a4);
  box-shadow: 0 10px 18px rgba(24,54,164,0.25);
}

.muted{
  color: rgba(71,85,105,0.95);
  font-size: 12px;
  font-weight: 700;
}

/* Steps area scroll */
.wizard-step{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 6px 6px;
}
.wizard-step h3{
  margin: 6px 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: #0b2a7a;
}

/* Wizard layout helpers */
.wizard-field{ margin-bottom: 14px; }
.wizard-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){ .wizard-grid2{ grid-template-columns: 1fr; } }

.wizard-row{ display:flex; gap: 10px; align-items:center; flex-wrap:wrap; }

.wizard-preview-title{
  font-size: 14px;
  font-weight: 900;
  color: #0b2a7a;
  margin-bottom: 10px;
}
.wizard-preview{
  padding: 14px;
  border-radius: 22px;
  min-height: 220px;
  max-height: 58vh;
  overflow: auto;
}

/* Wizard inputs (Frame fields) */
.w-label{
  display:block;
  padding:10px 0px;
  margin: 10px 0 5px;
  font-size: 18px;
  font-weight: 900;
  color: #0b2a7a;
}
.w-help{
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(15,23,42,.65);
  line-height: 1.5;
}

.w-input, .w-textarea, .w-select{
  width: 100%;
  border: 1px solid rgba(27,78,216,0.22);
  background: rgba(250, 252, 255, 0.1);
  color: #0f172a;
  border-radius: 16px;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  outline: none;
}
.w-textarea{
  min-height: 110px;
  resize: vertical;
}
.w-input:focus, .w-textarea:focus, .w-select:focus{
  border-color: rgba(4, 69, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(27,78,216,0.10), 0 10px 22px rgba(15, 23, 42, 0.08);
}
.w-input::placeholder, .w-textarea::placeholder{
  color: rgba(71,85,105,0.55);
  font-weight: 700;
}
.w-select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
}
.w-select-wrap{ position: relative; }
.w-select-wrap::after{
  content: "▾";
  position:absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(11,42,122,0.65);
  font-weight: 900;
  pointer-events:none;
}
.w-file{
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(27,78,216,0.22);
  background: rgba(255,255,255,0.22);
  font-weight: 800;
}
.w-check{
  display:flex;
  align-items:center;
  padding: 6px 3px;
  gap: 0px;
  font-weight: 900;
  color: #0b2a7a;
}

/* Template cards (Frame 1) */
.template-picks{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){ .template-picks{ grid-template-columns: 1fr; } }

.template-card{
  border-radius: 22px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 50px rgba(15,23,42,0.10);
  cursor: pointer;
  user-select: none;
}
.template-card input{ display:none; }

.template-img{
  width: 100%;
  height: 120px;
  
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.22);
}
.template-label{
  margin-top: 10px;
  font-size: 14px;
  font-weight: 900;
  color: #0b2a7a;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.details-preview__img{
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.40);
  background: rgba(255,255,255,.22);
}

.template-card.is-selected{
  outline: 4px solid rgba(27,78,216,0.18);
  border-color: rgba(27,78,216,0.35);
}

/* Wizard footer */
#courseWizard .modal__footer{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  padding: 12px 6px 2px;
  flex: 0 0 auto;
}
#prevStepBtn{ height: 46px; width: 160px; border-radius: 999px; }
#nextStepBtn{ height: 46px; width: 160px; border-radius: 999px; margin-left:auto; }

@media (max-width: 720px){
  #courseWizard .modal__panel{ padding: 14px; }
  #courseWizard .modal__footer{ flex-direction: column; align-items: stretch; }
  #prevStepBtn, #nextStepBtn{ width: 100%; }
}

/* ===========================
   Toast (center popup)
=========================== */
.toast{ position: fixed; inset: 0; display: none; place-items: center; z-index: 10050; }
.toast.is-open{ display: grid; }
.toast__backdrop{
  position:absolute; inset:0;
  background: rgba(161, 211, 252, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.toast__panel{
  position: relative;
  width: min(640px, calc(100% - 1px));
  border-radius: 24px;
  padding: 16px 16px 14px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  animation: toastPop .22s ease forwards;
}
@keyframes toastPop{ to{ transform: translateY(0) scale(1); opacity: 1; } }
.toast__title{
  margin: 0 0 6px;
  text-align:center;
  font-size: 16px;
  font-weight: 900;
  color: #0b2a7a;
}
.toast__msg{
  margin: 0;
  text-align:center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(71,85,105,0.95);
}
.toast__ok{
  margin-top: 12px;
  width: 100%;
  height: 46px;
  border-radius: 999px;
}

/* =========================================
   TOAST ( #toast ) — OK button center + small
   Put this at END of admin.css
========================================= */

/* center the whole toast content */
#toast .toast__panel,
#toast .toast__content,
#toast .toast__body,
#toast .toast__inner {
  text-align: center !important;
}

/* the OK button itself */
#toast #toastOkBtn{
  width: auto !important;
  min-width: 120px !important;
  max-width: 180px !important;
  height: 38px !important;

  padding: 0 18px !important;

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

  margin: 14px auto 0 auto !important; /* center */
  border-radius: 999px !important;

  text-align: center !important;
  line-height: 1 !important;
}

/* IMPORTANT: if parent is flex, force centering */
#toast .toast__actions,
#toast .toast__footer,
#toast .toast__buttons{
  display: flex !important;
  justify-content: center !important;
}

/* IMPORTANT: if some CSS forces full-width button */
#toast #toastOkBtn.btn-primary-glass,
#toast #toastOkBtn.btn-glass{
  width: auto !important;
}


/* =========================================================
   WIZARD FIXES (Prev hide + Draft placement + Next validation)
   Paste at END of admin.css
========================================================= */

/* Always hard-hide when [hidden] exists (no space kept) */
#courseWizard [hidden]{
  display: none !important;
}

/* ===== Header layout: center title+step, right draft, right close ===== */
#courseWizard .wizard-head{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center; /* true center */
  padding: 10px 12px 12px;
}

#courseWizard .wizard-head-center{
  display:flex;
  flex-direction: column;
  align-items:center;
  text-align:center;
  gap: 4px;
}

#courseWizard .wizard-title{
  margin:0;
  font-size:22px;
  font-weight:900;
  color:#0b2a7a;
  letter-spacing:.2px;
}

#courseWizard .wizard-step-center{
  font-size:12px;
  font-weight:800;
  color: rgba(71,85,105,0.95);
}

/* Close button (always top-right) */
#courseWizard #wizardCloseBtn{
  position:absolute;
  right: 12px;
  top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

/* Draft status (top-right but NOT overlapping X) */
#courseWizard #saveState{
  position:absolute;
  right: 68px;  /* leaves room for X */
  top: 22px;
  font-size:12px;
  font-weight:800;
  color: rgba(71,85,105,0.95);
  white-space: nowrap;
}

/* ===== Next button: inactive vs ready ===== */
#nextStepBtn{
  height: 46px;
  width: 160px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.22);
  color: rgba(11,42,122,0.95);

  font-weight: 900;
  cursor: pointer;
 

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease, background .2s ease;
}
/* Arrow */
#nextStepBtn::after{
  content: "→";
  font-size: 14px;
  font-weight: 900;
  transition: transform .2s ease;
}

#nextStepBtn.is-ready{
  border-color: rgba(255,255,255,0.40);
  background: radial-gradient(circle at 0% 0%, #2a7cf0, #2f6ec4, #1836a4);
  color: #fff;
  box-shadow: 0 14px 30px rgba(24, 54, 164, 0.25);
}

#nextStepBtn:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

/* Prev style can stay white, but make it match sizing */
#prevStepBtn{
  height: 46px;
  width: 160px;
  border-radius: 999px;
}


/* =========================================================
   Wizard – Soft inline actions (Frame 2)
   Human-eye friendly
========================================================= */

.wizard-inline-actions{
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* Primary soft action (Add block) */
.btn-soft-primary{
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;

  background: rgba(42, 124, 240, 0.12);
  color: #0b2a7a;

  border: 1px solid rgba(42, 124, 240, 0.25);

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

  display: inline-flex;
  align-items: center;
  gap: 8px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: all .18s ease;
}

.btn-soft-primary:hover{
  background: rgba(42, 124, 240, 0.18);
  transform: translateY(-1px);
}

/* Secondary soft action (Clear) */
.btn-soft-secondary{
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;

  background: rgba(255,255,255,0.35);
  color: rgba(71,85,105,0.95);

  border: 1px solid rgba(255,255,255,0.45);

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

  display: inline-flex;
  align-items: center;
  gap: 8px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: all .18s ease;
}

.btn-soft-secondary:hover{
  background: rgba(255,255,255,0.55);
}



/* =========================================================
   WIZARD UI OVERRIDES (paste at END of admin.css)
========================================================= */

/* Make sure hidden prev is REALLY hidden */
#courseWizard [hidden]{ display:none !important; }

/* ---------- Frame 2: inline actions row (lighter, eye-friendly) ---------- */
#courseWizard .wizard-inline-actions{
  display:flex;
  gap: 12px;
  align-items:center;
  margin-top: 14px;
}

#courseWizard .wizard-inline-actions > button{
  flex: 1 1 0;
  height: 44px;
  border-radius: 999px;
}

/* FORCE these styles to win (your old .btn-primary-glass / .btn-white may override) */
#courseWizard .btn-soft-primary{
  background: rgba(42,124,240,0.12) !important;
  color: #0b2a7a !important;
  border: 1px solid rgba(42,124,240,0.22) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,0.06) !important;
}

#courseWizard .btn-soft-primary:hover{
  background: rgba(42,124,240,0.18) !important;
  transform: translateY(-1px);
}

#courseWizard .btn-soft-secondary{
  background: rgba(255,255,255,0.45) !important;
  color: rgba(71,85,105,0.92) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,0.06) !important;
}

#courseWizard .btn-soft-secondary:hover{
  background: rgba(255,255,255,0.62) !important;
  transform: translateY(-1px);
}

/* ---------- Light button (Frame 3 add field / add branch) ---------- */
#courseWizard .btn-light{
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.40);
  color: #0b2a7a;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 22px rgba(15,23,42,0.06);
  transition: transform .12s ease, background .18s ease;
}

#courseWizard .btn-light:hover{
  background: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}

#courseWizard .btn-light:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Frame 3 field cards + delete X ---------- */
#courseWizard .field-card{
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
  display:flex;
  justify-content: space-between;
  gap: 12px;
}

#courseWizard .field-card__meta{
  display:flex;
  flex-direction: column;
  gap: 3px;
}

#courseWizard .field-card__title{
  font-weight: 900;
  color:#0b2a7a;
}

#courseWizard .field-card__sub{
  font-size: 12px;
  font-weight: 800;
  color: rgba(71,85,105,0.9);
}

/* red X */
#courseWizard .btn-del-x{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,0.28);
  background: rgba(239,68,68,0.10);
  color: rgba(185,28,28,0.95);
  font-weight: 1000;
  display:grid;
  place-items:center;
  cursor:pointer;
  flex: 0 0 auto;
}

#courseWizard .btn-del-x:hover{
  background: rgba(239,68,68,0.16);
}

#courseWizard .btn-del-x[disabled]{
  opacity:.35;
  cursor:not-allowed;
}

/* ---------- Branch invalid flag ---------- */
#courseWizard .branch-item.is-invalid{
  border-color: rgba(239,68,68,0.35) !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.08);
}

#courseWizard .branch-warn{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(185,28,28,0.95);
}


.req{
  color: rgba(185,28,28,.95); /* red */
  font-weight: 900;
  margin-left: 6px;
}

#nextStepBtn.is-disabled{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:auto; /* IMPORTANT so click still works and shows toast */
}

#formPreview{
  width: 100%;
  max-height: none;     /* ✅ allow growth */
  overflow: visible;   /* ✅ no forced scroll */
  padding-right: 4px;
}






/*=================================*/
/* =========================================================
   COURSE CARD — pin CTA bottom-right (mid bottom-left)
   Paste at VERY END of admin.css
========================================================= */

.courses-list .course-card{
  display:grid !important;
  grid-template-columns: 1fr auto !important; /* left content | right button */
  grid-template-rows: auto 1fr auto !important;
  gap: 12px !important;
}

/* TOP: full width */
.courses-list .course-card__top{
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
}

/* MID: bottom-left */
.courses-list .course-card__mid{
  grid-column: 1 !important;
  grid-row: 3 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap: 26px !important;

  flex-wrap: nowrap !important;
  text-align:left !important;

  justify-self: start !important;
  align-self: end !important;
}

/* BOTTOM: bottom-right ONLY (no spanning) */
.courses-list .course-card__bottom{
  grid-column: 2 !important;
  grid-row: 3 !important;

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

  margin: 0 !important;
  justify-self: end !important;
  align-self: end !important;
}

/* CTA small + clean */
.courses-list .course-card__cta{
  height: 36px !important;
  min-width: 0 !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  gap: 8px !important;
}

/* keep from squishing on smaller widths */
@media (max-width: 900px){
  .courses-list .course-card__mid{
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
}

/* Mobile: stack, button stays last */
@media (max-width: 700px){
  .courses-list .course-card{
    grid-template-columns: 1fr !important;
  }

  .courses-list .course-card__mid{
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .courses-list .course-card__bottom{
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  .courses-list .course-card__cta{
    width: 100% !important;
    justify-content: center !important;
  }
}


/* Align number + label vertically nicer */
.courses-list .course-card__reg{
  align-items: center !important;
  gap: 8px !important;
}
/* =========================================================
   COURSE CARD — Start & End labels + values smaller
========================================================= */

/* Start / End LABELS */
.courses-list .course-card__label{
  font-size: 11px !important;        /* smaller label */
  font-weight: 700 !important;
  color: rgba(11,42,122,0.75) !important;
  line-height: 1.2;
}

/* Start / End DATE VALUES */
.courses-list .course-card__date{
  font-size: 10px !important;        /* smallest text */
  font-weight: 600 !important;
  color: rgba(15,23,42,0.60) !important;
  margin-top: 3px !important;
  line-height: 1.2;
}
/* User icon (Font Awesome) */
.courses-list .course-card__reg i{
  font-size: 16px !important;   /* bigger icon */
  color: #0b2a7a !important;
}

/* Registration number (0) */
.courses-list .course-card__reg .num{
  font-size: 18px !important;   /* slightly smaller than before */
  font-weight: 900 !important;
  color: #1b4ed8 !important;
  line-height: 1 !important;
}

/* =========================================================
   COURSE CARD — Center 0 relative to "Registrations"
   (true horizontal centering)
========================================================= */

/* Registration block */
.courses-list .course-card__reg{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Stack number + label AND center them */
.courses-list .course-card__reg > div{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;   /* ✅ THIS is the key */
  justify-content: center !important;
  text-align: center !important;     /* ✅ center text */
}

/* Number (0) */
.courses-list .course-card__reg .num{
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* Label */
.courses-list .course-card__reg strong{
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}


.muted{
  font-size:16px;
  font-style:bold;
}

/* Minimal: targets dynamic ids editSave_xxxx / editCancel_xxxx */
#fieldsList .field-card button[id^="editSave_"],
#fieldsList .field-card button[id^="editCancel_"]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;

  height: 34px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
}
/* Optional: make Edit button smaller too */
#fieldsList .btn-edit-field{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 999px;
}
/* Make Edit-mode Save same size as Cancel */
#fieldsList .field-card button[id^="editSave_"]{
  width: auto !important;
  min-width: unset !important;
  padding: 0 14px !important;
}
/* Force center Save + Cancel in edit field card */
#fieldsList .field-card > div:last-child {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px;
}
/* Step 4: Make Publish button normal size */
#wizard .wizard-step[data-step="4"] .btn-primary-glass {
  width: auto !important;
  min-width: 160px;
  padding: 10px 20px;
}
/* Step 4 button row alignment */
#wizard .wizard-step[data-step="4"] {
  display: flex;
  flex-direction: column;
}

#wizard .wizard-step[data-step="4"] .btn-primary-glass {
  align-self: flex-start;
}


/* =========================================
   STEP 4 — FORCE buttons to be same + row
   (put this at the VERY END of admin.css)
========================================= */

.wizard-step[data-step="4"] #saveDraftBtn,
.wizard-step[data-step="4"] #publishBtn{
  width: 190px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  margin: 0 !important;
  text-align: center !important;
}

/* kill full width forcing */
.wizard-step[data-step="4"] #publishBtn{
  max-width: 190px !important;
}

/* the row wrapper we will create in JS */
.step4-actions-row{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top: 14px;
}


/* =========================================
   STEP 4 — Summary: clean rows + dividers
========================================= */

.summary-clean{
  border:1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.18);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.summary-clean__title{
  font-weight: 1000;
  color:#0b2a7a;
  font-size: 16px;
  margin-bottom: 10px;
}

.summary-clean__row{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15,23,42,.10);
}

.summary-clean__row:last-child{
  border-bottom: none;
}

.summary-clean__label{
  font-weight: 1000;
  color: rgba(0, 0, 0, 1);
  font-size: 12px;
  letter-spacing: .2px;
}

.summary-clean__value{
  font-weight: 900;
  color: rgba(21, 58, 144, 0.95);
  font-size: 13px;
  text-align: right;
  max-width: 65%;
  word-break: break-word;
}

.summary-clean__two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15,23,42,.10);
}

.summary-clean__cell{
  display:flex;
  justify-content: space-between;
  gap: 10px;
}

/* ================================
   Step 4 — Save Draft theme fix
   (put at END of admin.css)
================================ */

.wizard-step[data-step="4"] #saveDraftBtn{
  /* same pill sizing as Publish */
  height: 44px !important;
  min-width: 190px !important;
  padding: 0 18px !important;

  /* make it match theme (glass) */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 999px !important;
  border: 1px solid rgba(27, 78, 216, .28) !important;
  background: rgba(255,255,255,.22) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;

  color: #0b2a7a !important;
  font-weight: 900 !important;
  letter-spacing: .2px !important;

  box-shadow: 0 14px 34px rgba(15, 23, 42, .10) !important;

  /* kill any default button look */
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
}

/* Hover/active to feel premium */
.wizard-step[data-step="4"] #saveDraftBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.28) !important;
  border-color: rgba(27, 78, 216, .38) !important;
}

.wizard-step[data-step="4"] #saveDraftBtn:active{
  transform: translateY(0);
  filter: saturate(1.05);
}

/* Optional: if disabled state happens */
.wizard-step[data-step="4"] #saveDraftBtn[disabled],
.wizard-step[data-step="4"] #saveDraftBtn.is-disabled{
  opacity: .55 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ... your existing courses.css ... */


/* =========================================================
   Frame 3 — Branch "Add field to branch" button (smaller + centered)
========================================================= */
#branchesList button[data-action="add-branch-field"]{
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 900;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;

  min-width: 170px;
  width: fit-content;
}

/* Step 4 left column becomes a container */
.wizard-step[data-step="4"] .wizard-grid2 > div:first-child{
  position: relative;
  min-height: 420px; /* adjust if you want */
  padding-bottom: 70px; /* space for the button */
}

/* the action row sticks bottom-right */
.step4-actions-row{
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* keep button clean */
.step4-actions-row #saveDraftBtn{
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}


/* ===========================
   Course Status Badges
=========================== */

.course-card__status{
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Published = Green */
.course-card__status.status-published{
  background: rgba(22, 163, 74, 0.15);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.35);
}

/* Draft = Yellow */
.course-card__status.status-draft{
  background: rgba(234, 179, 8, 0.18);
  color: #92400e;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

/* Closed = Red */
.course-card__status.status-closed{
  background: rgba(220, 38, 38, 0.15);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.4);
}
/* FORCE status colors (override any old rules) */
.course-card .course-card__status{
  background: rgba(15,23,42,.06) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  color: #0f172a !important;
}

/* Published */
.course-card .course-card__status.status-published{
  background: rgba(22, 163, 74, 0.15) !important;
  color: #166534 !important;
  border-color: rgba(22, 163, 74, 0.35) !important;
}

/* Draft */
.course-card .course-card__status.status-draft{
  background: rgba(234, 179, 8, 0.18) !important;
  color: #92400e !important;
  border-color: rgba(234, 179, 8, 0.40) !important;
}

/* Closed */
.course-card .course-card__status.status-closed{
  background: rgba(220, 38, 38, 0.15) !important;
  color: #991b1b !important;
  border-color: rgba(220, 38, 38, 0.40) !important;
}

.icon-btn--danger{
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.icon-btn--danger i{
  font-size: 16px;
  color: #dc2626; /* red */
}
/* Confirm modal visibility */
#confirmModal[aria-hidden="true"] { display: none; }
#confirmModal.is-open { display: block; }
/* ===========================
   DELETE (Danger) Icon Button
=========================== */

.icon-btn--danger{
  border: 1px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.10);
  color: #b91c1c;
}

.icon-btn--danger:hover{
  background: rgba(239,68,68,0.18);
  box-shadow: 0 10px 22px rgba(239,68,68,0.25);
}

.icon-btn--danger:active{
  transform: translateY(1px);
}




/* ===========================
   CONFIRM MODAL (Delete Course)
=========================== */
/* ===========================
   CONFIRM MODAL – BIGGER + TRUE GLASS
   Paste at END of admin.css
=========================== */
/* =========================================
   CONFIRM MODAL — BASE LAYER (FIX CLICKING)
   Put this at the END of admin.css
========================================= */



/* the full-screen modal wrapper */
#confirmModal.confirm{
  position: fixed;
  inset: 0;
  display: none;              /* becomes grid with .is-open */
  place-items: center;
  padding: 18px;
  z-index: 10050;             /* higher than your page */
}

/* backdrop MUST be behind the panel */
#confirmModal .confirm__backdrop{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;       /* clickable to close */
}

/* panel MUST be above the backdrop */
#confirmModal .confirm__panel{
  position: relative;
  z-index: 1;
  pointer-events: auto;       /* clickable buttons */
}


/* =========================================
   YOUR GLASS STYLE (SAFE)
========================================= */

/* backdrop: stronger blur + soft tint */
#confirmModal .confirm__backdrop{
  background: rgba(185, 210, 245, 0.28);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* panel: bigger + glassy */
#confirmModal .confirm__panel{
  width: min(720px, calc(100% - 44px));
  padding: 28px 28px 22px;
  border-radius: 28px;

  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  
  border: 1px solid rgba(255,255,255,0.40);
  box-shadow:
    0 40px 120px rgba(15, 23, 42, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.55);
}
/* center title + text */
#confirmModal .confirm__header {
  justify-content: center;
  text-align: center;
}

#confirmModal .confirm__title {
  width: 100%;
  text-align: center;
}

#confirmModal .confirm__msg {
  text-align: center;
  margin-top: 12px;
}
#confirmModal .confirm__panel {
  text-align: center;
}

/* title + message */
#confirmModal .confirm__title{
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: .2px;
}

#confirmModal .confirm__msg{
  font-size: 15px;
  font-weight: 750;
  line-height: 1.6;
  opacity: .92;
}

/* close button */
#confirmModal #confirmCloseBtn{
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

/* footer: center buttons */
#confirmModal .confirm__footer{
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

/* buttons */
#confirmModal .confirm__footer button{
  height: 46px;
  min-width: 140px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

/* cancel */
#confirmCancelBtn{
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.38);
  color: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
#confirmCancelBtn:hover{ background: rgba(59,130,246,0.22); }

/* delete */
#confirmOkBtn{
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.42);
  color: #b91c1c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
#confirmOkBtn:hover{ background: rgba(239,68,68,0.22); }
/* allow interaction inside confirm modal */
#confirmModal .confirm__panel,
#confirmModal .confirm__panel * {
  pointer-events: auto !important;
}
/* enable interaction inside confirm modal */
#confirmModal,
#confirmModal * {
  pointer-events: auto !important;
}
#confirmModal.is-open { display: grid; }

/* hide X button in confirm modal */
#confirmModal #confirmCloseBtn {
  display: none;
}

/* =========================================================
   ACCEPT MODAL — RULE ROW (match your glass style)
   Paste at END of admin.css
========================================================= */

.accept-modal .rules-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.accept-modal .rule-row{
  position: relative;
  z-index: 1;
  overflow: visible;

  display: grid;
  grid-template-columns: 260px 1fr 86px 220px 56px; /* type | field | op | value | x */
  gap: 12px;
  align-items: center;

  padding: 12px;
  border-radius: 18px;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.accept-modal .rule-row:focus-within{ z-index: 80; }

/* ---- Select wrapper (glass) ---- */
.accept-modal .rule-select-wrap{
  position: relative;
  height: 52px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

  display: flex;
  align-items: center;
  padding: 0 44px 0 14px;
  overflow: visible;
}

.accept-modal .rule-select-wrap select{
  width: 100%;
  height: 100%;
  border: none;
  outline: none;

  background: transparent !important;
  color: rgba(11,42,122,0.95);

  font-size: 14px;
  font-weight: 900;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accept-modal .rule-select-wrap::after{
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(11,42,122,0.65);
  pointer-events: none;
}

.accept-modal .rule-select-wrap select option{
  background: #f7fbff;
  color: #0b2a7a;
  font-weight: 700;
}

/* ---- Operator pill (≤) ---- */
.accept-modal .rule-operator{
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

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

  font-size: 16px;
  font-weight: 1000;
  color: rgba(11,42,122,0.85);
}

/* ---- Value input (pill) ---- */
.accept-modal .rule-row input.rule-value{
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(11,42,122,0.95);
  outline: none;
}

.accept-modal .rule-row input.rule-value:focus{
  border-color: rgba(27,78,216,.55);
  box-shadow: 0 0 0 4px rgba(27,78,216,.10), 0 14px 34px rgba(15, 23, 42, 0.08);
}

/* ---- Remove button (match your red delete style) ---- */
.accept-modal .rule-remove{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(239,68,68,0.22);
  background: rgba(239,68,68,0.12);
  color: #b91c1c;

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

  font-size: 18px;
  transition: transform .08s ease, background .2s ease;
}

.accept-modal .rule-remove:hover{ background: rgba(239,68,68,0.16); }
.accept-modal .rule-remove:active{ transform: translateY(1px); }

/* ---- Responsive: stack nicely ---- */
@media (max-width: 980px){
  .accept-modal .rule-row{
    grid-template-columns: 1fr;
  }
  .accept-modal .rule-remove{
    width: 100%;
    height: 52px;
    border-radius: 999px;
  }
}
/* =========================================================
   ACCEPT MODAL — finish matching the rest (Capacity + Buttons + Alert)
   Paste at END of admin.css
========================================================= */

/* Modal shell polish */
.accept-modal .modal-card{
  border-radius: 28px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
}

/* Close button (top right circle) */
.accept-modal .modal-close{
  width: 72px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15,23,42,0.10);
  color: rgba(11,42,122,0.90);
}
.accept-modal .modal-close:hover{ background: rgba(255,255,255,0.24); }

/* Section cards (Capacity + Criteria blocks) */
.accept-modal .accept-block{
  border-radius: 22px;
  padding: 16px 18px;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 18px 42px rgba(15,23,42,0.08);
}

/* Section titles (Capacity, Criteria) */
.accept-modal .accept-block h3,
.accept-modal .accept-block .block-title{
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 1000;
  color: rgba(11,42,122,0.95);
}

/* Capacity row */
.accept-modal .capacity-row{
  display: grid;
  grid-template-columns: 110px 1fr 170px;
  gap: 14px;
  align-items: center;
}

/* Capacity pill (input on the right) */
.accept-modal #capacityInput{
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  padding: 0 16px;

  font-size: 14px;
  font-weight: 1000;
  color: rgba(11,42,122,0.95);
  outline: none;
}
.accept-modal #capacityInput:focus{
  border-color: rgba(27,78,216,.55);
  box-shadow: 0 0 0 4px rgba(27,78,216,.10), 0 14px 34px rgba(15, 23, 42, 0.08);
}

/* Range styling */
.accept-modal #capacityRange{
  width: 100%;
  accent-color: rgba(11,42,122,0.85);
}
.accept-modal #capacityRange::-webkit-slider-runnable-track{
  height: 10px;
  border-radius: 999px;
  background: rgba(11,42,122,0.15);
}
.accept-modal #capacityRange::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(11,42,122,0.90);
  border: 3px solid rgba(255,255,255,0.85);
  margin-top: -5px;
  box-shadow: 0 12px 26px rgba(15,23,42,0.18);
}

/* Criteria header buttons (Add Rule / Clear) */
.accept-modal .criteria-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

/* Make them match your pill buttons */
.accept-modal #addRuleBtn,
.accept-modal #clearRulesBtn{
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;

  border: 1px solid rgba(11,42,122,0.22);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);

  font-weight: 1000;
  color: rgba(11,42,122,0.95);
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}

.accept-modal #addRuleBtn:hover,
.accept-modal #clearRulesBtn:hover{
  background: rgba(255,255,255,0.20);
  border-color: rgba(11,42,122,0.30);
}
.accept-modal #addRuleBtn:active,
.accept-modal #clearRulesBtn:active{
  transform: translateY(1px);
}

/* Confirm / Cancel bottom buttons (make consistent) */
.accept-modal .modal-actions{
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

.accept-modal #acceptCancelBtn,
.accept-modal #acceptConfirmBtn{
  height: 56px;
  min-width: 280px;
  padding: 0 26px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  box-shadow: 0 18px 44px rgba(15,23,42,0.10);

  font-size: 16px;
  font-weight: 1000;
  color: rgba(11,42,122,0.95);
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}

.accept-modal #acceptConfirmBtn{
  border-color: rgba(11,42,122,0.18);
}

.accept-modal #acceptCancelBtn:hover,
.accept-modal #acceptConfirmBtn:hover{
  background: rgba(255,255,255,0.24);
}
.accept-modal #acceptCancelBtn:active,
.accept-modal #acceptConfirmBtn:active{
  transform: translateY(1px);
}

/* Alert style inside modal */
.accept-modal #acceptAlert{
  margin: 12px 4px 0;
  padding: 12px 14px;
  border-radius: 16px;

  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.18);
  color: rgba(153,27,27,0.95);

  font-weight: 900;
}

/* Responsive */
@media (max-width: 980px){
  .accept-modal .capacity-row{
    grid-template-columns: 1fr;
  }
  .accept-modal #acceptCancelBtn,
  .accept-modal #acceptConfirmBtn{
    min-width: 0;
    width: 100%;
  }
  .accept-modal .modal-actions{
    flex-direction: column;
  }
}
/* ===== Force glass select style inside rule rows (Safari-friendly) ===== */
.rule-row select,
.rule-row .select{
  height: 44px;
  border-radius: 999px;
  padding: 0 44px 0 14px; /* space for chevron */
  font-weight: 900;
  color: rgba(11,42,122,.95);

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.38);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);

  outline: none;

  /* IMPORTANT: remove native select UI */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* focus */
.rule-row select:focus{
  border-color: rgba(27,78,216,.55);
  box-shadow: 0 0 0 4px rgba(27,78,216,.10), 0 14px 34px rgba(15,23,42,0.08);
}

/* custom chevron (works even without wrapper) */
.rule-row{
  position: relative;
}
.rule-row select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(11,42,122,.75) 50%),
    linear-gradient(135deg, rgba(11,42,122,.75) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 18px,
    calc(100% - 14px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* number input in rule row (match style) */
.rule-row input.rule-value{
  height: 44px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 900;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.38);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);

  outline: none;
}

/* remove Safari number spinners if you want */
.rule-row input[type="number"]::-webkit-outer-spin-button,
.rule-row input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

/* ===== Rule row inputs/selects (fix "Registration Number" left box) ===== */
.rule-row{
  display: grid;
  grid-template-columns: 240px 1fr 90px 220px 56px;
  gap: 14px;
  align-items: center;
}

.rule-row .rule-field,
.rule-row .rule-value,
.rule-row select{
  height: 44px;
  width: 100%;
  border-radius: 14px;
  padding: 0 14px;
  font-weight: 800;
  color: rgba(11,42,122,.95);

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.38);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
  outline: none;
}

/* Disabled "Registration Number" should still look glass */
.rule-row .rule-field:disabled{
  opacity: 1;                 /* Safari dims disabled inputs */
  color: rgba(11,42,122,1);
  background: rgba(255,255,255,0.10);
}

/* Keep select from showing native Safari UI */
.rule-row select{
  padding-right: 44px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(11,42,122,1) 50%),
    linear-gradient(135deg, rgba(11,42,122,1) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 18px,
    calc(100% - 14px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* optional: focus */
.rule-row .rule-field:focus,
.rule-row .rule-value:focus,
.rule-row select:focus{
  border-color: rgba(27,78,216,1);
  box-shadow: 0 0 0 4px rgba(27,78,216,.10), 0 14px 34px rgba(15,23,42,0.08);
}





/* =========================
   EMAIL PAGE LAYOUT FIXES (CLEAN)
   ========================= */

/* Helpers */
.hidden { display: none !important; }

/* 1) Full width content */
.content,
.dashboard,
.dash-grid {
  width: 100%;
  max-width: none;
}

/* 2) Panel with clear edge */
.glass.panel {
  position: relative;
  border: 1px solid rgba(20, 40, 90, 0.18);
  box-shadow: 0 16px 40px rgba(10, 20, 60, 0.08);
}

.glass.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* 3) Email wrap */
.email-wrap {
  width: 100%;
}

/* =========================
   QUILL TOOLBAR + EDITOR
   ========================= */
#emailToolbar.ql-toolbar.ql-snow {
  border: 1px solid rgba(20, 40, 90, 0.15) !important;
  border-bottom: 0 !important;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.35);
}

#emailEditor {
  border: 1px solid rgba(20, 40, 90, 0.15);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.18);
}

/* =========================
   EMAIL FORM LAYOUT
   ========================= */
.email-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}

.email-row:first-of-type {
  margin-bottom: 22px;
}

.email-field {
  flex: 1;
  min-width: 220px;
}

/* Subject row full width */
.email-row-full {
  width: 75%;
}
.email-row-full .email-field {
  width: 100%;
}

/* =========================
   TOP FIELDS BASE STYLE
   ========================= */
#emailAudience,
#emailProgram,
#registeredFilter,
#emailSubject {
  border: 1px solid rgba(20, 40, 90, 0.28);
  background: rgba(255, 255, 255, 0.22);
  outline: none;
  color: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 10px rgba(10, 20, 60, 0.06);
}

#emailAudience:focus,
#emailProgram:focus,
#registeredFilter:focus,
#emailSubject:focus {
  border-color: rgba(70, 130, 255, 0.65);
  box-shadow:
    0 0 0 4px rgba(70, 130, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* =========================
   SLIM DROPDOWNS + ARROW INSIDE
   ========================= */
#emailAudience,
#emailProgram,
#registeredFilter {
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 22px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(20,40,90,0.6) 50%),
    linear-gradient(135deg, rgba(20,40,90,0.6) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* =========================
   SUBJECT FIELD (FULL WIDTH)
   ========================= */
#emailSubject {
  height: 35px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 12px;
  width: 100%;
}

/* =========================
   SCHEDULE INPUTS
   ========================= */
.email-date {
  height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 170px;
}

/* =========================
   FOOTER & SEND BUTTON
   ========================= */
.email-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

#btnSendEmail {
  width: auto !important;
  min-width: 160px;
  height: 42px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
}

#btnSendEmail i {
  margin-right: 8px;
  font-size: 14px;
}

/* =========================
   2-column layout on email page
   ========================= */
.email-two-col{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}

.email-main{ min-width: 0; }

.email-side{
  padding: 14px;
  border-radius: 18px;
}

.recipients-select{
  width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(50, 90, 160, 0.25);
  background: rgba(255,255,255,0.55);
  outline: none;
}

.side-actions{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.btn-danger-glass{
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(200, 60, 60, 0.35);
  background: rgba(255,255,255,0.55);
  cursor: pointer;
}

.btn-danger-glass:hover{
  background: rgba(255,255,255,0.7);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .email-two-col{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .email-row {
    flex-direction: column;
  }

  .email-field {
    min-width: 100%;
  }

  .email-date {
    max-width: 100%;
    width: 100%;
  }

  #btnSendEmail {
    min-width: 180px;
  }
}

/* ✅ NEW GRID: two separate panels */
.email-page-grid{
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items: start;
}

/* right panel spacing */
#recipientsPanel{
  padding: 14px;
  border-radius: 18px;
}

/* make right panel inputs look aligned */
#recipientsPanel .email-input{
  width: 100%;
}

/* Responsive */
@media (max-width: 1100px){
  .email-page-grid{
    grid-template-columns: 1fr;
  }
}
/* --- Quill toolbar fixes --- */
#emailToolbar {
  width: 100%;
}

#emailToolbar .ql-formats {
  margin-right: 8px;
}

#emailToolbar button,
#emailToolbar select {
  height: auto !important;
  min-height: 32px;
  border-radius: 6px !important;
}

#emailEditor .ql-editor {
  min-height: 280px;
}

/* =========================
   EMAIL PAGE LAYOUT FIXES (CLEAN)
   ========================= */

/* Full width content */
.content,
.dashboard,
.dash-grid {
  width: 100%;
  max-width: none;
}

/* Panel with clear edge */
.glass.panel {
  position: relative;
  border: 1px solid rgba(20, 40, 90, 0.18);
  box-shadow: 0 16px 40px rgba(10, 20, 60, 0.08);
}

.glass.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* =========================
   TWO COLUMN WRAP
   ========================= */
.email-two-col{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 16px;
  align-items: start;
  width: 100%;
}

.email-main{ min-width: 0; }

.email-side{
  padding: 14px;
  border-radius: 18px;
}

/* =========================
   QUILL TOOLBAR + EDITOR
   ========================= */
#emailToolbar.ql-toolbar.ql-snow {
  border: 1px solid rgba(20, 40, 90, 0.15) !important;
  border-bottom: 0 !important;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.35);
}

#emailEditor {
  border: 1px solid rgba(20, 40, 90, 0.15);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.18);
}

/* =========================
   EMAIL FORM LAYOUT
   ========================= */
.email-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 14px;
}

.email-field {
  flex: 1;
  min-width: 220px;
}

/* Subject row full width */
.email-row-full {
  width: 75%;
}
.email-row-full .email-field {
  width: 100%;
}

/* =========================
   TOP FIELDS BASE STYLE
   ========================= */
#emailAudience,
#emailProgram,
#emailSubject,
#registeredFilter,
#recipientsSearch,
#addCustomEmailInput {
  border: 1px solid rgba(20, 40, 90, 0.28);
  background: rgba(255, 255, 255, 0.22);
  outline: none;
  color: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 10px rgba(10, 20, 60, 0.06);
}

#emailAudience:focus,
#emailProgram:focus,
#emailSubject:focus,
#registeredFilter:focus,
#recipientsSearch:focus,
#addCustomEmailInput:focus {
  border-color: rgba(70, 130, 255, 0.65);
  box-shadow:
    0 0 0 4px rgba(70, 130, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Slim dropdowns */
#emailAudience,
#emailProgram,
#registeredFilter {
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 22px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(20,40,90,0.6) 50%),
    linear-gradient(135deg, rgba(20,40,90,0.6) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Subject field */
#emailSubject {
  height: 35px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 12px;
  width: 100%;
}

/* Schedule inputs */
.email-date {
  height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 170px;
}

/* Footer row */
.email-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

#btnSendEmail {
  width: auto !important;
  min-width: 160px;
  height: 42px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
}

/* Recipients list */
.recipients-select{
  width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(50, 90, 160, 0.25);
  background: rgba(255,255,255,0.55);
  outline: none;
}

/* side actions */
.side-actions{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.btn-danger-glass{
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(200, 60, 60, 0.35);
  background: rgba(255,255,255,0.55);
  cursor: pointer;
}

.btn-danger-glass:hover{
  background: rgba(255,255,255,0.7);
}

.hidden { display: none !important; }

/* Responsive stack */
@media (max-width: 980px){
  .email-two-col{
    grid-template-columns: 1fr;
  }

  .email-row {
    flex-direction: column;
  }

  .email-field {
    min-width: 100%;
  }

  .email-date {
    max-width: 100%;
    width: 100%;
  }
}
/* 2-column layout */
.email-two-col{
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items: start;
}

.email-main{ min-width: 0; }

.email-side{
  padding: 16px;
  border-radius: 18px;
}

.recipients-select{
  width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(50, 90, 160, 0.25);
  background: rgba(255,255,255,0.55);
  outline: none;
}

.side-actions{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.btn-danger-glass{
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(200, 60, 60, 0.35);
  background: rgba(255,255,255,0.55);
  cursor: pointer;
}

@media (max-width: 980px){
  .email-two-col{ grid-template-columns: 1fr; }
}
.email-page-grid{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  align-items: start;
  width: 100%;
}

@media (max-width: 1100px){
  .email-page-grid{ grid-template-columns: 1fr; }
}





/* =========================
   EMAIL HISTORY STATUS BADGES
   ========================= */
.hist-status {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(20,40,90,0.18);
}

.hist-status.pending { background: rgba(83, 85, 95, 0.18); }
.hist-status.scheduled { background: rgba(70, 130, 255, 0.18); }
.hist-status.sent { background: rgba(0, 180, 90, 0.18); }
.hist-status.failed { background: rgba(220, 0, 60, 0.18); }

/* ===== History Email Modal ===== */
.modal { 
  position: fixed; inset: 0; display: none; z-index: 9999; display: grid;
  place-items: center;
}
.modal[aria-hidden="false"] { display: block; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
}

.modal-card{
  position: relative;
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow: auto;
  margin: 30px auto;
  border: 1px solid rgba(20, 40, 90, 0.18);
  border-radius: 18px;
}

.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(20, 40, 90, 0.12);
}

.modal-title{ margin:0; font-size: 18px; }

.modal-body{ padding: 16px 18px; }
.modal-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  font-size: 14px;
}
.meta-label{ font-weight: 700; opacity: 0.85; margin-right: 6px; }

.modal-sep{
  border: 0;
  border-top: 1px solid rgba(20, 40, 90, 0.12);
  margin: 14px 0;
}

.modal-message{
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(20, 40, 90, 0.12);
}

.modal-foot{
  display:flex; gap: 10px;
  justify-content: flex-end;
  padding: 14px 18px;
  border-top: 1px solid rgba(20, 40, 90, 0.12);
}

.btn-primary-glass.danger{
  border-color: rgba(200, 40, 40, 0.35);
}

@media (max-width: 720px){
  .modal-grid{ grid-template-columns: 1fr; }
}

/* ===== MODAL FOOTER ===== */
.modal-foot {
  display: flex;
  justify-content: flex-end; /* right side */
  align-items: center;
  padding-top: 16px;
}

/* Container for future buttons */
.modal-actions {
  display: flex;
  gap: 12px;
}

/* ===== BLUE DELETE BUTTON (CLEAN & SMALL) ===== */
.btn-delete {
  width: auto !important;      /* prevent full width */
  min-width: 140px;
  height: 42px;

  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;

  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(20, 40, 90, 0.18);
}

/* Slight hover emphasis */
.btn-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(20, 40, 90, 0.25);
}

/* Click feedback */
.btn-delete:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(20, 40, 90, 0.2);
}

/* Icon spacing */
.btn-delete i {
  margin-right: 8px;
  font-size: 14px;
}

/* Mobile: still neat */
@media (max-width: 700px) {
  .modal-foot {
    justify-content: center;
  }
}
/* =========================
   CONFIRM DELETE MODAL
   ========================= */

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* Cancel = secondary / quiet */
.btn-cancel {
  background: transparent;
  border: 1px solid rgba(20, 40, 90, 0.25);
  color: #1f2f4f;
  padding: 12px 20px;
  min-width: 140px;
  height: 48px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: rgba(20, 40, 90, 0.06);
  border-color: rgba(20, 40, 90, 0.45);
}

/* Delete = primary destructive */
.btn-delete {
  background: linear-gradient(135deg, #3b7cff, #1f4fd8);
  border: none;
  color: #fff;
  padding: 12px 22px;
  min-width: 160px;
  height: 48px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(59, 124, 255, 0.35);
  transition: all 0.2s ease;
}

.btn-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(59, 124, 255, 0.45);
}

/* =========================
   SMALL CONFIRM POPUP
   ========================= */

.modal-confirm {
  max-width: 420px;
  width: 90%;
  padding: 0;
}

.modal-confirm .modal-head {
  padding: 18px 22px;
}

.modal-confirm .modal-title {
  font-size: 20px;
}

.modal-confirm .modal-body {
  padding: 16px 22px;
}

.modal-confirm .confirm-text {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.modal-confirm .modal-foot {
  padding: 16px 22px 20px;
}

.modal-confirm .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Cancel – quiet */
.modal-confirm .btn-cancel {
  height: 42px;
  min-width: 110px;
  border-radius: 12px;
}

/* Delete – primary */
.modal-confirm .btn-delete {
  height: 42px;
  min-width: 130px;
  border-radius: 12px;
}

/* Custom emails field */
.custom-emails {
  margin-top: 12px;
}

.input-glass {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 40, 90, 0.25);
  background: rgba(240, 6, 6, 0.25);
  font-size: 14px;
  outline: none;
}

.input-glass::placeholder {
  color: rgba(20, 40, 90, 0.45);
}

.input-glass:focus {
  border-color: rgba(70, 130, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(70, 130, 255, 0.15);
}

/* Label + hint */
.field-label {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-hint {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.6;
}

/* Hidden by default */
.hidden {
  display: none;
}
.custom-emails {
  padding-top: 12px;
  border-top: 1px dashed rgba(20, 40, 90, 0.15);
}



/* ============================
   SETTINGS PAGE (CLEAN FINAL)
============================ */

/* Sidebar user meta */
.user-meta { display: grid; gap: 2px; }
.user-email,
.user-role { font-size: 12px; opacity: .75; }

/* =========================
   PAGE TITLE (blue system)
========================= */
.page-title { padding: 6px 4px 0; }

.page-title-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.page-title-text{
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  color: #0b2f74;
}

.page-title-hint{
  font-size: 13px;
  opacity: .7;
  font-weight: 600;
}

/* =========================
   HEADER CONTROLS (Logs)
========================= */
.logs-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-mini{
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(20,40,90,.18);
  background: rgba(255,255,255,.14);
}

/* =========================
   ADMINS HEADER (like Logs)
========================= */
.admins-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admins-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Add Admin button (pill + no black edge) */
#btnOpenAdminModal{
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;

  width: auto !important;
  min-width: unset !important;

  border: none !important;
  outline: none !important;

  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;

  box-shadow: 0 10px 26px rgba(10,20,60,.18) !important;
  -webkit-tap-highlight-color: transparent;
  background-clip: padding-box;
}

#btnOpenAdminModal:focus,
#btnOpenAdminModal:focus-visible,
#btnOpenAdminModal:active{
  outline: none !important;
  border: none !important;
  box-shadow: 0 10px 26px rgba(10,20,60,.18) !important;
}

/* Compact helper (used in HTML classes) */
.btn-compact{
  font-size: 13px;
  line-height: 1;
}

/* =========================
   TABLES
========================= */
.table-wrap.compact{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(20,40,90,.14);
  background: rgba(255,255,255,.06);
  position: relative;
}

.data-table.compact{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13.5px;
}

.data-table.compact thead th{
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: left;
  border-bottom: 1px solid rgba(20,40,90,.12);
  background: rgba(255,255,255,.06);
  white-space: nowrap;
}

.data-table.compact tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20,40,90,.10);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table.compact tbody tr:hover td{
  background: rgba(255,255,255,.06);
}

.data-table.compact tbody tr:last-child td{
  border-bottom: 0;
}

/* Actions column */
.col-actions{
  width: 220px;
  text-align: right;
}

.row-actions{
  display: inline-flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-link{
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  opacity: .92;
}

.btn-link:hover{ text-decoration: underline; }
.btn-link.danger{ opacity: .9; }

/* Empty state */
.empty-state{
  text-align: center !important;
  padding: 18px 14px;
  opacity: .75;
  white-space: normal;
}

.muted{ opacity: .6; }

/* =========================
   MODAL
========================= */
.modal-backdrop[hidden]{ display: none; }

/* Settings page modal (different names) */
.smodal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 20px;
}

.smodal{
  width: min(520px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(20,40,90,.18);
  background: rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  overflow: hidden;
}



.modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(20,40,90,.12);
}

.modal-title{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.modal-body{
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.modal-foot{
  padding: 14px 16px;
  border-top: 1px solid rgba(20,40,90,.12);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.field label{
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.input{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(20,40,90,.18);
  background: rgba(255,255,255,.12);
  outline: none;
}

.input:focus{ border-color: rgba(20,40,90,.28); }

.hint{
  margin-top: 6px;
  font-size: 12px;
  opacity: .7;
}

.modal-error{
  border: 1px solid rgba(180,40,40,.25);
  background: rgba(180,40,40,.10);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 720px){
  .col-actions{ width: 170px; }
}

/* ===== Custom Alert ===== */
.ui-pop[aria-hidden="true"] { display: none; }

.ui-pop{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ui-pop-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ui-pop-card{
  position: relative;
  width: min(450px, 55vw);
  border-radius: 25px;
  border: 1px solid rgba(20,40,90,.18);
  background: rgba(255,255,255,.22);
  box-shadow: 0 20px 60px rgba(0,0,0,.16);
  overflow: hidden;
}

.ui-pop-head{
  padding: 18px 22px;

}

.ui-pop-title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #0b2f74;
   text-align: center;
}

.ui-pop-body{
   text-align: center;
  padding-top: 24px;
  padding-bottom: 8px;
}

.ui-pop-msg{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(10,18,35,.86);
}

.ui-pop-foot{
  padding: 16px 22px 20px;
  display: flex;
  justify-content: center;
}

.ui-pop-ok{
  height: 40px;
  min-width: 140px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #3d7dff, #2456df);
  box-shadow: 0 10px 26px rgba(10,20,60,.18);
}


/* ===========================
   OTP MODAL – FIX CENTERING
   Paste at END of admin.css
=========================== */

/* Ensure modal is truly centered */
#otpModal.modal {
  display: none;
}
#otpModal.modal.is-open {
  display: grid;
  place-items: center;
}

/* Center alert message inside OTP modal */
#otpModal #otpAlert {
  text-align: center;
  margin-top: 14px;
}

/* Optional: center the resend/footer text too */
#otpModal .otp__footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ✅ Modal should be hidden by default */
.modal[aria-hidden="true"]{
  display: none !important;
}

/* ✅ Modal shows only when opened */
.modal[aria-hidden="false"]{
  display: block !important;
}
