/* =========================================================
   SOS Admin — shared stylesheet
   -------------------------------------------------------
   Section 1: taken as-is from admin-dashboard.html
   Section 2: extended tokens/components for pages not built yet
   Section 3: responsive rules (phone / tablet / desktop)
   ========================================================= */

/* ---------------------------------------------------------
   1. BASE — from the original dashboard
--------------------------------------------------------- */
:root{
  --ink:        #12161D;
  --ink-2:      #1B2430;
  --gold:       #C9A24B;
  --gold-soft:  #E7D9B2;
  --bg:         #FAF8F4;
  --card:       #FFFFFF;
  --line:       #E7E2D6;
  --text:       #22262E;
  --muted:      #6B7280;
  --green:      #3F8F5F;
  --green-bg:   #E7F3EC;
  --amber:      #B4841F;
  --amber-bg:   #FBF1DC;
  --red:        #B5533C;
  --red-bg:     #FBEAE5;

  --fs-base: 17px;
  --fs-sm:   14px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-xxl:  29px;

  /* ---- 2. added tokens, used across future pages ---- */
  --fs-xs:    12px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --sidebar-w: 248px;
  --shadow-sm: 0 1px 2px rgba(18,22,29,0.06);
  --shadow-md: 0 6px 20px rgba(18,22,29,0.10);
  --transition: 150ms ease;
}

*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  background:var(--bg);
  color:var(--text);
  font-family: Verdana, Geneva, sans-serif;
  font-size: var(--fs-base);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; font-size:inherit; cursor:pointer; }
img{ max-width:100%; display:block; }

.app{
  display:grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height:100vh;
}

/* ---------------- SIDEBAR ---------------- */
.sidebar{
  background: var(--ink);
  color: #E9E2D2;
  padding: 24px 18px;
  display:flex;
  flex-direction:column;
  gap: 28px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 4px 6px 18px 6px;
  border-bottom: 1px solid rgba(233,226,210,0.12);
}
.brand-mark{
  width:34px; height:34px;
  border-radius:50%;
  border:1px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  flex-shrink:0;
}
.brand-mark::after{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:var(--gold);
}
.brand-text{
  font-size: var(--fs-sm);
  letter-spacing:0.14em;
  line-height:1.3;
}
.brand-text b{ display:block; font-size: var(--fs-base); letter-spacing:0.06em; color:#fff; }

nav{ display:flex; flex-direction:column; gap:4px; }
.nav-item{
  display:flex; align-items:center; gap:12px;
  padding:11px 12px;
  border-radius:8px;
  font-size: var(--fs-base);
  color:#C9C2B0;
  cursor:pointer;
  border:none;
  background:none;
  width:100%;
  text-align:left;
}
.nav-item:hover{ background:rgba(233,226,210,0.06); color:#fff; }
.nav-item.active{ background:rgba(201,162,75,0.14); color:#fff; border-left:3px solid var(--gold); padding-left:9px; }
.nav-dot{ width:6px; height:6px; border-radius:50%; background:currentColor; opacity:0.55; flex-shrink:0; }

.sidebar-foot{
  margin-top:auto;
  font-size: var(--fs-sm);
  color:#8B8676;
  padding-top:16px;
  border-top:1px solid rgba(233,226,210,0.12);
}

/* mobile sidebar toggle (new — sidebar is hidden <980px otherwise) */
.sidebar-toggle{
  display:none;
  background:var(--ink);
  color:#fff;
  border:none;
  border-radius:8px;
  padding:10px 12px;
  font-size:var(--fs-lg);
}

/* ---------------- MAIN ---------------- */
main{ padding: 28px 40px 60px; max-width:1180px; }

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 30px;
  gap:16px;
  flex-wrap:wrap;
}
.topbar h1{ font-size: var(--fs-xxl); margin:0 0 4px; font-weight:normal; color:var(--ink-2); }
.topbar p{ margin:0; color:var(--muted); font-size:var(--fs-base); }
.who{ display:flex; align-items:center; gap:12px; }
.avatar{
  width:42px; height:42px; border-radius:50%;
  background:var(--ink); color:var(--gold-soft);
  display:flex; align-items:center; justify-content:center;
  font-size: var(--fs-sm); letter-spacing:0.05em;
}
.who .name{ font-size:var(--fs-base); }
.who .role{ font-size:var(--fs-sm); color:var(--muted); }

/* stat cards */
.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
  margin-bottom: 30px;
}
.stat-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px 22px;
}
.stat-card .label{ font-size:var(--fs-sm); color:var(--muted); letter-spacing:0.04em; }
.stat-card .value{ font-size:var(--fs-xxl); color:var(--ink-2); margin-top:6px; }
.stat-card .value.gold{ color:var(--amber); }

/* quick actions */
.section-title{
  font-size: var(--fs-lg);
  color:var(--ink-2);
  margin: 6px 0 14px;
  font-weight:normal;
}
.actions{ display:flex; gap:14px; margin-bottom:34px; flex-wrap:wrap; }
.btn{
  border:none; border-radius:9px;
  padding:13px 20px;
  font-size:var(--fs-base);
  display:flex; align-items:center; gap:8px;
}
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ background:var(--ink-2); }
.btn-primary:disabled{ opacity:0.6; cursor:not-allowed; }
.btn-outline{ background:#fff; color:var(--ink-2); border:1px solid var(--line); }
.btn-outline:hover{ border-color:var(--gold); }
.btn .plus{ color:var(--gold); font-size:var(--fs-lg); line-height:0; }
.btn-sm{ padding:8px 14px; font-size:var(--fs-sm); border-radius:7px; }
/* Solid danger button (e.g. <button class="btn btn-danger">) - white text on red, always readable */
.btn-danger{ background:var(--red); color:#fff; }
.btn-danger:hover{ opacity:0.9; }
/* Outline danger variant (e.g. <button class="btn btn-outline btn-danger">) - red text/border on white.
   Kept as a separate compound selector so it can never collide with the solid version above. */
.btn-outline.btn-danger{ background:#fff; color:var(--red); border-color:var(--red); }
.btn-outline.btn-danger:hover{ background:var(--red-bg); }
.btn-block{ width:100%; justify-content:center; }

/* panels layout */
.layout{ display:grid; grid-template-columns: 1fr 300px; gap:26px; align-items:start; }

.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px 24px;
  margin-bottom:24px;
}
.panel-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.panel-head h2{ font-size:var(--fs-lg); font-weight:normal; margin:0; color:var(--ink-2); }
.link-btn{ color:var(--amber); font-size:var(--fs-sm); background:none; border:none; cursor:pointer; }

table{ width:100%; border-collapse:collapse; }
th{
  text-align:left;
  font-size:var(--fs-sm);
  color:var(--muted);
  letter-spacing:0.04em;
  font-weight:normal;
  padding:8px 10px;
  border-bottom:1px solid var(--line);
}
td{
  padding:14px 10px;
  border-bottom:1px solid var(--line);
  font-size:var(--fs-base);
  vertical-align:middle;
}
tr:last-child td{ border-bottom:none; }
.cell-sub{ color:var(--muted); font-size:var(--fs-sm); margin-top:2px; }

/* wraps a table for horizontal scroll on small screens (new) */
.table-scroll{ width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }

.badge{
  display:inline-block;
  padding:4px 11px;
  border-radius:20px;
  font-size:var(--fs-sm);
  letter-spacing:0.02em;
}
.badge-green{ background:var(--green-bg); color:var(--green); }
.badge-amber{ background:var(--amber-bg); color:var(--amber); }
.badge-muted{ background:#EFEDE6; color:var(--muted); }
.badge-red{ background:var(--red-bg); color:var(--red); }

/* right column */
.side-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px 22px;
  margin-bottom:22px;
}
.side-card h3{ font-size:var(--fs-base); font-weight:normal; color:var(--ink-2); margin:0 0 10px; }
.cohort-note{ font-size:var(--fs-sm); color:var(--muted); }
.cohort-day{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--amber-bg); color:var(--amber);
  padding:8px 12px; border-radius:8px; font-size:var(--fs-sm);
  margin-top:10px;
}

.announcement{ padding:10px 0; border-bottom:1px solid var(--line); }
.announcement:last-child{ border-bottom:none; }
.announcement .a-title{ font-size:var(--fs-base); color:var(--ink-2); }
.announcement .a-meta{ font-size:var(--fs-sm); color:var(--muted); margin-top:2px; }

/* ---------------- MODAL ---------------- */
.overlay{
  display:none;
  position:fixed; inset:0;
  background:rgba(18,22,29,0.55);
  align-items:center; justify-content:center;
  z-index:50;
  padding:16px;
}
.overlay.open{ display:flex; }
.modal{
  background:#fff;
  border-radius:14px;
  width:min(480px, 92vw);
  padding:28px 28px 24px;
  max-height:90vh;
  overflow-y:auto;
}
.modal h2{ font-size:var(--fs-xl); font-weight:normal; margin:0 0 4px; color:var(--ink-2); }
.modal p.hint{ margin:0 0 20px; color:var(--muted); font-size:var(--fs-sm); }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:var(--fs-sm); color:var(--muted); margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%;
  font-family:inherit; font-size:var(--fs-base);
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#FCFBF8;
}
.field textarea{ resize:vertical; min-height:90px; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--gold); border-color:var(--gold); }
.field-error{ color:var(--red); font-size:var(--fs-xs); margin-top:4px; }
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }

/* ---------------------------------------------------------
   2. EXTENDED — reusable pieces for pages not built yet
--------------------------------------------------------- */

/* generic page header (Courses / Teachers / Students / Payments pages) */
.page-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin-bottom:22px;
}
.search-box{
  display:flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--line); border-radius:9px;
  padding:9px 13px; min-width:220px;
}
.search-box input{ border:none; outline:none; background:none; font-size:var(--fs-base); width:100%; font-family:inherit; }

/* filter pills */
.filters{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-pill{
  border:1px solid var(--line); background:#fff; color:var(--muted);
  border-radius:20px; padding:6px 14px; font-size:var(--fs-sm);
}
.filter-pill.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

/* empty / loading states, used by dashboard.js while fetching */
.empty-state, .loading-state{
  padding:40px 20px; text-align:center; color:var(--muted); font-size:var(--fs-sm);
}
.spinner{
  width:22px; height:22px; margin:0 auto 10px;
  border:3px solid var(--line); border-top-color:var(--gold);
  border-radius:50%; animation:spin 0.8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* toast notifications (success/error after form submit) */
.toast-wrap{
  position:fixed; top:20px; right:20px; z-index:100;
  display:flex; flex-direction:column; gap:10px;
}
.toast{
  background:var(--ink-2); color:#fff; padding:13px 18px;
  border-radius:9px; font-size:var(--fs-sm); box-shadow:var(--shadow-md);
  max-width:320px; animation:toast-in 0.2s ease;
}
.toast.success{ background:var(--green); }
.toast.error{ background:var(--red); }
@keyframes toast-in{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:none; } }

/* pagination, for list pages later */
.pagination{ display:flex; gap:6px; justify-content:flex-end; margin-top:16px; }
.pagination button{
  border:1px solid var(--line); background:#fff; border-radius:7px;
  padding:6px 12px; font-size:var(--fs-sm); color:var(--ink-2);
}
.pagination button.active{ background:var(--ink); color:#fff; border-color:var(--ink); }
.pagination button:disabled{ opacity:0.4; cursor:not-allowed; }

/* login page */
.auth-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:var(--bg); padding:20px;
  position:relative; overflow:hidden;
}

.auth-card{
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:36px 32px; width:min(400px, 100%);
  position:relative; z-index:1;
}
.auth-card h1{ font-size:var(--fs-xl); font-weight:normal; color:var(--ink-2); margin:0 0 6px; text-align:center; }
.auth-card p{ text-align:center; color:var(--muted); font-size:var(--fs-sm); margin:0 0 24px; }

/*---------------------*/
.rosary{
  /* position:absolute; top:-30px; left:50%; */
  width:6px; height:300px;
  transform-origin: top center;
  animation: rosary-swing 6s ease-in-out infinite;
  /* z-index:0; pointer-events:none; */
    position: absolute;  top:-30px; left:50%;   /* or fixed, whatever it already is */
  z-index: 10;           /* raise above the form's z-index */
  pointer-events: none;  /* clicks fall through to the form */
}
.rosary::before{ /* the beaded string */
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:6px; height:250px; border-radius:3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold) 0px, var(--gold) 8px,
    transparent 8px, transparent 18px
  );
  box-shadow: 0 0 10px rgba(201,162,75,.45);
}
.rosary::after{ /* the cross, drawn with clip-path — no image needed */
  content:''; position:absolute; top:250px; left:50%; transform:translateX(-50%);
  width:22px; height:30px;
  background: linear-gradient(var(--gold-soft), var(--gold));
  clip-path: polygon(40% 0,60% 0,60% 35%,100% 35%,100% 55%,60% 55%,60% 100%,40% 100%,40% 55%,0 55%,0 35%,40% 35%);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.35));
}
@keyframes rosary-swing{
  0%,100%{ transform: rotate(-9deg); }
  50%{ transform: rotate(9deg); }
}
@keyframes fade-in-tag{ to{ opacity:1; } }
.auth-wrap{
  background:
    linear-gradient(rgba(18,22,29,.55), rgba(18,22,29,.65)),
    url('https://images.pexels.com/photos/30394906/pexels-photo-30394906.jpeg?auto=compress&cs=tinysrgb&w=1920')
    center/cover no-repeat fixed;
  background-size: 200% 200%;
  animation: glow-drift 12s ease-in-out infinite;
}
@keyframes glow-drift{
  0%,100%{ background-position: 0% 0%; }
  50%{ background-position: 100% 100%; }
}
.auth-card{
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  animation: card-rise .6s ease both;
}
@keyframes card-rise{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:translateY(0); }
}
.field input{ transition: box-shadow .25s ease, border-color .25s ease; }
.field input:focus{
  outline:none; border-color:var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,75,.18);
}
.btn-primary{ position:relative; overflow:hidden; }
.btn-primary::after{
  content:''; position:absolute; top:0; left:-75%;
  width:50%; height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  transform:skewX(-20deg);
}
.btn-primary:hover::after{ animation: shimmer .9s ease; }
@keyframes shimmer{ to{ left:125%; } }

/*motes--------------------*/
.motes span{
  position:absolute; bottom:-10px; width:5px; height:5px; border-radius:50%;
  background:var(--gold-soft); opacity:.6;
  animation: float-up 9s linear infinite;
}
.motes span:nth-child(1){ left:12%; animation-delay:0s; }
.motes span:nth-child(2){ left:30%; animation-delay:1.5s; }
.motes span:nth-child(3){ left:55%; animation-delay:3s; }
.motes span:nth-child(4){ left:75%; animation-delay:4.5s; }
.motes span:nth-child(5){ left:90%; animation-delay:6s; }
@keyframes float-up{
  from{ transform:translateY(0); opacity:0; }
  10%{ opacity:.7; }
  100%{ transform:translateY(-110vh); opacity:0; }
}
.motes{
  position:absolute; inset:0;
  z-index:0; pointer-events:none;
  overflow:hidden;
}

/* utility classes */
.text-muted{ color:var(--muted); }
.text-center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.hidden{ display:none !important; }
.flex{ display:flex; } .flex-col{ flex-direction:column; }
.gap-2{ gap:var(--space-2); } .gap-3{ gap:var(--space-3); }

/* ---------------------------------------------------------
   3. RESPONSIVE
--------------------------------------------------------- */

/* tablet */
@media (max-width: 980px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{
    position:fixed; inset:0 auto 0 0; width:var(--sidebar-w);
    transform:translateX(-100%);
    transition:transform var(--transition);
    z-index:60;
  }
  .sidebar.open{ transform:translateX(0); box-shadow:var(--shadow-md); }
  .sidebar-toggle{ display:inline-flex; align-items:center; gap:8px; }
  .stats{ grid-template-columns: repeat(2,1fr); }
  .layout{ grid-template-columns: 1fr; }
  main{ padding: 20px 24px 50px; }
}

/* phones */
@media (max-width: 640px){
  :root{ --fs-base:16px; --fs-xxl:24px; --fs-xl:20px; --fs-lg:18px; }
  main{ padding: 16px 14px 40px; }
  .topbar{ flex-direction:column; align-items:flex-start; }
  .who{ align-self:stretch; justify-content:space-between; }
  .stats{ grid-template-columns: 1fr 1fr; gap:12px; }
  .stat-card{ padding:16px; }
  .actions{ flex-direction:column; }
  .actions .btn{ width:100%; justify-content:center; }
  .panel{ padding:16px; }
  .modal{ padding:20px; }
  .table-scroll table{ min-width:480px; } /* tables scroll horizontally instead of losing columns */
  .page-toolbar{ flex-direction:column; align-items:stretch; }
}

/* very small phones */
@media (max-width: 380px){
  .stats{ grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Teachers page — course chips, permission checkboxes, small buttons
--------------------------------------------------------- */
.page-toolbar{ display:flex; justify-content:flex-end; margin-bottom:20px; }

.btn-sm{ padding:6px 12px; font-size:var(--fs-sm); }
/* btn-danger styling lives with the other .btn variants near the top of this file */

.course-chip{ margin-bottom:8px; }
.course-chip:last-child{ margin-bottom:0; }
.chip-perms{ display:block; font-size:var(--fs-sm); color:var(--muted); margin-top:2px; }

.perm-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:10px 16px;
  margin-top:6px;
}
.perm-check{
  display:flex; align-items:center; gap:8px;
  font-size:var(--fs-sm); font-weight:normal; cursor:pointer;
}
.perm-check input{ width:16px; height:16px; }

@media (max-width: 640px){
  .perm-grid{ grid-template-columns:1fr; }
  .page-toolbar{ justify-content:stretch; }
  .page-toolbar .btn{ width:100%; justify-content:center; }
}

/* ---------------------------------------------------------
   Sidebar "Our calendar" widget
--------------------------------------------------------- */
.side-calendar{
  margin-top:18px; padding-top:16px;
  border-top:1px solid rgba(233,226,210,0.12);
}
.side-calendar-head{
  display:flex; justify-content:space-between; align-items:baseline;
  font-size:var(--fs-sm); color:#C9C2B0; margin-bottom:8px;
}
.side-calendar-month{ color:#8B8676; font-size:var(--fs-xs); }
.side-calendar-dow, .side-calendar-grid{
  display:grid; grid-template-columns:repeat(7, 1fr);
  gap:2px; text-align:center;
}
.side-calendar-dow span{ font-size:10px; color:#6f6a5c; padding-bottom:4px; }
.side-calendar-grid span{
  font-size:11px; color:#C9C2B0; padding:4px 0; border-radius:4px;
  position:relative; cursor:default;
}
.side-calendar-grid .cal-blank{ visibility:hidden; }
.side-calendar-grid .is-today{ background:rgba(255,255,255,0.08); font-weight:bold; }
.side-calendar-grid .has-event{ color:var(--gold); font-weight:bold; }
.side-calendar-grid .has-event::after{
  content:""; position:absolute; bottom:1px; left:50%; transform:translateX(-50%);
  width:4px; height:4px; border-radius:50%; background:var(--gold);
}

/* ---------------------------------------------------------
   Synchronous class card — cohort row + zoom copy button
--------------------------------------------------------- */
.cohort-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.zoom-link-btn{
  background:none; border:1px solid var(--line); border-radius:8px;
  padding:8px 12px; font-size:var(--fs-sm); color:var(--ink-2); cursor:pointer;
  margin-top:10px;
}
.zoom-link-btn:hover{ background:var(--bg); }

/* ---------------------------------------------------------
   Course detail — session cards + content rows
--------------------------------------------------------- */
.session-card{
  background:var(--card); border:1px solid var(--line); border-radius:12px;
  margin-bottom:14px; overflow:hidden;
}
.session-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 20px; cursor:pointer; gap:12px; flex-wrap:wrap;
}
.session-head:hover{ background:var(--bg); }
.session-body{ padding:0 20px 18px; border-top:1px solid var(--line); }
.content-list{ margin:12px 0; }
.content-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 0; border-bottom:1px solid var(--line); flex-wrap:wrap;
}
.content-row:last-child{ border-bottom:none; }

@media (max-width: 640px){
  .session-head{ flex-direction:column; align-items:flex-start; }
  .content-row{ flex-direction:column; align-items:flex-start; }
}

/* ---------------------------------------------------------
   Content preview (admin + teacher) - inline expand of text/
   assignment body, or a plain link-out for pdf/link items
--------------------------------------------------------- */
.content-row{ align-items:flex-start; }
.content-main{ flex:1; min-width:200px; }
.content-preview{
  margin-top:8px; padding:12px 14px; background:var(--bg);
  border:1px solid var(--line); border-radius:8px;
  font-size:var(--fs-sm); color:var(--text); white-space:pre-wrap;
}
.content-actions{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.view-link{ color:var(--amber); font-size:var(--fs-sm); background:none; border:none; cursor:pointer; text-decoration:underline; }

/* Read-only banner for a teacher viewing a course without edit permission */
.readonly-banner{
  background:var(--amber-bg); color:var(--amber); border-radius:8px;
  padding:10px 14px; font-size:var(--fs-sm); margin-bottom:16px;
}

/* ---------------------------------------------------------
   Teacher profile page - photo + bio
--------------------------------------------------------- */
.profile-photo-row{ display:flex; align-items:center; gap:18px; margin-bottom:22px; flex-wrap:wrap; }
.profile-photo{
  width:84px; height:84px; border-radius:50%; object-fit:cover;
  background:var(--ink); border:1px solid var(--line);
}
.profile-photo-placeholder{
  width:84px; height:84px; border-radius:50%;
  background:var(--ink); color:var(--gold-soft);
  display:flex; align-items:center; justify-content:center;
  font-size:var(--fs-xl);
}
.profile-photo-actions .hint{ margin:6px 0 0; }

/* Course cards on the teacher dashboard / "My courses" */
.course-cards{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:16px; }
.course-card{
  background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:18px 20px;
}
.course-card h3{ font-size:var(--fs-base); font-weight:normal; margin:0 0 6px; color:var(--ink-2); }
.course-card .chip-perms{ margin-bottom:10px; }
.course-card-perms .badge{ margin:2px 4px 0 0; display:inline-block; }

.announcement-item{ padding:10px 0; border-bottom:1px solid var(--line); }
.announcement-item:last-child{ border-bottom:none; }

/* First-login "please reset your password" prompt */
.reset-modal .modal-actions{ justify-content:space-between; }
