/*
 * ============================================================
 *  PTC Sign-Up System — Shared Stylesheet
 *  style.css
 *
 *  TO REBRAND FOR A NEW SCHOOL:
 *  Edit the variables in the :root block below.
 *  That's all you need to change for colors.
 * ============================================================
 */

/* ── SCHOOL BRAND VARIABLES ─────────────────────────────────────────────────
   Change these to match your school's colors.
   All pages pull from these automatically.
   -------------------------------------------------------------------------- */
:root {
  /* Primary color — main buttons, headers, accents */
  --red:        #ca0100;
  /* Darker shade — hover states, deep backgrounds */
  --red-dark:   #8b0000;
  /* Deepest shade — gradient bottoms, dark overlays */
  --red-deep:   #5a0000;
  /* Pale tints — backgrounds, alert boxes */
  --red-pale:   #fff5f5;
  --red-pale2:  #fde8e8;

  /* Neutral palette — do not usually need changing */
  --cream:      #fdfaf9;
  --text:       #1c0a0a;
  --muted:      #7a5555;
  --border:     #ead8d8;

  /* Success colors — used for confirmation states */
  --green:      #0d6b35;
  --green-pale: #f0faf5;
  --green-bdr:  #9ad4b5;
}

/* ── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
header {
  background: linear-gradient(140deg, var(--red-deep), var(--red-dark) 45%, var(--red));
  color: white;
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 15%, rgba(255,255,255,0.09) 0%, transparent 55%);
}
header .inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,210,210,0.85);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .04em;
  margin-bottom: .9rem;
  transition: color .2s;
}
.back-link:hover { color: white; }
.eyebrow {
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,200,200,0.85);
  margin-bottom: .4rem;
  font-weight: 500;
}
header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: .35rem;
}
header .meta {
  font-size: .88rem;
  color: rgba(255,255,255,.62);
}
header .meta strong { color: rgba(255,210,210,.9); }
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  padding: .45rem 1.3rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  backdrop-filter: blur(6px);
  margin-bottom: .5rem;
}

/* ── STRIPE DIVIDER ──────────────────────────────────────────────────────── */
.stripe {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--red)      0,  var(--red)      10px,
    var(--red-dark) 10px, var(--red-dark) 20px
  );
}

/* ── MAIN CONTENT WRAPPER ────────────────────────────────────────────────── */
main { max-width: 960px; margin: 0 auto; padding: 2.25rem 1.5rem 3rem; }
main.wide { max-width: 1200px; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 1.75rem;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* ── CARDS ────────────────────────────────────────────────────────────────── */
.card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--red-dark);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── DATE PILL ───────────────────────────────────────────────────────────── */
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red-pale);
  border: 1.5px solid var(--red-pale2);
  border-radius: 8px;
  padding: .6rem 1.1rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--red-dark);
}

/* ── FORM ELEMENTS ───────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .38rem; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: .73rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .07em;
  text-transform: uppercase;
}
input[type=text],
input[type=email],
input[type=tel],
input[type=password],
input[type=search],
select,
textarea {
  padding: .72rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  background: white;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(202,1,0,0.1);
}
textarea { height: 120px; resize: vertical; }

/* ── RADIO BUTTONS ───────────────────────────────────────────────────────── */
.radio-group { display: flex; gap: .75rem; margin-top: .3rem; }
.radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  cursor: pointer;
  padding: .7rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: all .17s;
  user-select: none;
}
.radio-label input[type=radio] { display: none; }
.radio-label.active {
  border-color: var(--red);
  background: var(--red);
  color: white;
}
.radio-label:not(.active):hover {
  border-color: var(--red);
  color: var(--red-dark);
  background: var(--red-pale);
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--red);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s, transform .15s;
  margin-top: 1.5rem;
}
.submit-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn {
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .17s;
  text-decoration: none;
  display: inline-block;
}
.btn-red   { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline {
  background: white;
  color: var(--red-dark);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--red); background: var(--red-pale); }
.btn-gold  { background: #7a5500; color: white; }
.btn-gold:hover { background: #5a3e00; }
.btn-sm    { padding: .38rem .8rem; font-size: .78rem; }
.btn-danger {
  background: #fff0f0;
  color: var(--red);
  border: 1.5px solid var(--red-pale2);
}
.btn-danger:hover { background: var(--red); color: white; }
.btn-edit {
  background: #f0f4ff;
  color: #1e40af;
  border: 1.5px solid #c5d3f0;
}
.btn-edit:hover { background: #1e40af; color: white; }

/* ── MESSAGES ────────────────────────────────────────────────────────────── */
.error-msg {
  background: var(--red-pale);
  border: 1.5px solid var(--red-pale2);
  border-radius: 8px;
  padding: .85rem 1.1rem;
  color: var(--red);
  font-size: .88rem;
  margin-bottom: 1.25rem;
}
.msg { padding: .85rem 1.1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .9rem; font-weight: 500; }
.msg.success { background: #f0faf5; border: 1.5px solid #9ad4b5; color: #0d6b35; }
.msg.error   { background: var(--red-pale); border: 1.5px solid var(--red-pale2); color: var(--red); }

/* ── BADGE ───────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge.v { background: #dbeafe; color: #1e40af; }
.badge.p { background: #dcfce7; color: #166534; }

/* ── SLOTS GRID ──────────────────────────────────────────────────────────── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .5rem;
  margin-top: 1rem;
}
.slot-btn {
  padding: .62rem .5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  transition: all .17s ease;
  position: relative;
}
.slot-btn:hover:not(.booked) {
  border-color: var(--red);
  background: var(--red-pale);
  color: var(--red-dark);
}
.slot-btn.selected {
  border-color: var(--red);
  background: var(--red);
  color: white;
  font-weight: 600;
}
.slot-btn.booked {
  border-color: #f0dddd;
  background: #faf5f5;
  color: #cbb0b0;
  cursor: not-allowed;
}
.slot-btn.booked::after {
  content: 'Booked';
  display: block;
  font-size: .62rem;
  font-weight: 700;
  color: #c09090;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: 3px;
}
.slot-btn.booked .slot-time { opacity: .38; }
.slot-banner {
  display: none;
  background: var(--red-pale);
  border: 1.5px solid var(--red-pale2);
  border-radius: 8px;
  padding: .7rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--red-dark);
}
.slot-notice { margin-top: .75rem; font-size: .8rem; color: var(--muted); }
.slot-notice span {
  display: inline-block;
  width: .7rem; height: .7rem;
  background: var(--red);
  border-radius: 2px;
  margin-right: .35rem;
  vertical-align: middle;
}
.slot-notice .booked-key {
  background: #f0dddd;
  border: 1.5px solid #ddc0c0;
}

/* ── SUCCESS STATE ───────────────────────────────────────────────────────── */
.success-card {
  background: white;
  border: 2px solid var(--green-bdr);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
}
.success-icon { font-size: 3rem; margin-bottom: .6rem; display: block; }
.success-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--green);
  margin-bottom: .6rem;
}
.summary-box {
  background: var(--green-pale);
  border: 1.5px solid var(--green-bdr);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}
.summary-row { display: flex; gap: .75rem; font-size: .9rem; padding: .35rem 0; border-bottom: 1px solid #c8ebd8; }
.summary-row:last-child { border-bottom: none; }
.summary-row .lbl { font-weight: 600; color: var(--green); min-width: 145px; flex-shrink: 0; }
.back-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: .75rem 1.75rem;
  background: var(--red);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
}
.back-btn:hover { background: var(--red-dark); }

/* ── LOGIN CARD (shared by teacher, parent, admin login pages) ───────────── */
.login-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(139,0,0,0.08);
}
.login-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--red-dark);
  margin-bottom: .4rem;
}
.login-card p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.login-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* Center login card horizontally on login pages */
main.login-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem;
}
.hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

/* ── MODAL ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(90,0,0,0.45);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 8px 40px rgba(90,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--red-dark);
  margin-bottom: .5rem;
}
.modal p { font-size: .88rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.6; }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; }
.confirm-msg { font-size: .95rem; color: var(--text); margin-bottom: 1.25rem; line-height: 1.6; }
.pwd-strength { font-size: .75rem; margin-top: .3rem; font-weight: 500; }
.pwd-strength.weak  { color: #c0392b; }
.pwd-strength.ok    { color: #d68000; }
.pwd-strength.strong { color: #0d6b35; }

/* ── STATS GRID ──────────────────────────────────────────────────────────── */
.stats { display: flex; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.stat {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  flex: 1;
  min-width: 110px;
}
.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  color: var(--red-dark);
}
.stat .lbl { font-size: .73rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ── CONTACT CARD (parent schedule) ─────────────────────────────────────── */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--cream);
  border: 1px solid rgba(202,1,0,0.14);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-card:hover { border-color: rgba(202,1,0,0.35); box-shadow: 0 4px 20px rgba(202,1,0,0.08); }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--red-pale);
  border: 1px solid var(--red-pale2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.contact-type { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-val { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.contact-val a { color: var(--text); text-decoration: none; transition: color .2s; }
.contact-val a:hover { color: var(--red); }

/* ── CONFERENCE CARD (parent schedule) ──────────────────────────────────── */
.conf-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
  margin-bottom: 1rem;
}
.conf-card:hover { box-shadow: 0 4px 16px rgba(139,0,0,0.1); }
.conf-card-header {
  background: var(--red-dark);
  color: white;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.conf-card-header .time { font-size: 1rem; font-weight: 700; }
.conf-card-header .teacher-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}
.conf-card-body {
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
}
.detail { display: flex; flex-direction: column; gap: .18rem; }
.detail .lbl { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }
.detail .val { font-size: .92rem; color: var(--text); font-weight: 500; }

/* ── TEACHER DASHBOARD SPECIFIC ──────────────────────────────────────────── */
.view-toggle {
  display: flex; gap: .5rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .3rem;
  width: fit-content;
}
.vbtn {
  padding: .45rem 1.1rem;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  transition: all .17s;
}
.vbtn.active { background: var(--red); color: white; }
.print-btn {
  padding: .5rem 1.1rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--red-dark);
  transition: all .17s;
}
.print-btn:hover { border-color: var(--red); background: var(--red-pale); }
.add-break-btn {
  padding: .5rem 1.1rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: #7a5500;
  transition: all .17s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.add-break-btn:hover { border-color: #c9962d; background: #fffbf0; }
.action-row { display: flex; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* Schedule rows */
.schedule { display: flex; flex-direction: column; gap: .45rem; }
.slot-row { display: grid; grid-template-columns: 140px 1fr; gap: 0; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--border); }
.slot-time {
  background: var(--red-dark);
  color: white;
  padding: .7rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  line-height: 1.3;
}
.slot-content {
  background: white;
  padding: .7rem 1rem;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.slot-content.open { color: #bba0a0; font-style: italic; font-size: .82rem; }
.slot-content.break-slot { background: #fff8e8; color: #92610a; font-weight: 600; font-size: .85rem; justify-content: space-between; }
.slot-content.break-slot .break-label { display: flex; align-items: center; gap: .5rem; }
.slot-detail { display: flex; flex-direction: column; gap: .08rem; }
.slot-detail .name { font-weight: 600; color: var(--text); }
.slot-detail .sub { font-size: .78rem; color: var(--muted); }
.remove-break-btn {
  padding: .3rem .7rem;
  background: white;
  border: 1.5px solid #e8c97a;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: #92610a;
  cursor: pointer;
  transition: all .17s;
}
.remove-break-btn:hover { background: #92610a; color: white; border-color: #92610a; }
.no-signups {
  background: white;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  color: var(--muted);
}
.no-signups .icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }

/* Dashboard header layout */
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.logout-btn {
  display: inline-block;
  padding: .5rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 7px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  transition: background .2s;
  white-space: nowrap;
}
.logout-btn:hover { background: rgba(255,255,255,0.22); }

/* ── ADMIN TABLE ─────────────────────────────────────────────────────────── */
.table-wrap {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: .855rem; min-width: 800px; }
th {
  background: var(--red-dark);
  color: white;
  padding: .65rem 1rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
td { padding: .62rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #fdf8f8; }
tr:hover td { background: #fef5f5; }
.td-actions { display: flex; gap: .4rem; white-space: nowrap; }
.action-bar { display: flex; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.top-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.back { color: var(--red-dark); text-decoration: none; font-size: .88rem; font-weight: 500; }
.back:hover { color: var(--red); }
.search-input {
  padding: .55rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  outline: none;
  width: 260px;
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--red); }

/* ── INDEX PAGE — department grid ────────────────────────────────────────── */
.search-wrap { margin-bottom: 2.5rem; text-align: center; }
.search-wrap input {
  width: 100%;
  max-width: 480px;
  padding: .85rem 1.3rem .85rem 2.8rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237a5555' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.415l-3.868-3.833zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1rem center;
}
.search-wrap input:focus { border-color: var(--red); }
.dept-section { margin-bottom: 2.25rem; }
.dept-header { display: flex; align-items: center; gap: 1rem; margin-bottom: .85rem; }
.dept-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--red-dark);
  white-space: nowrap;
}
.dept-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.teacher-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.teacher-link {
  display: inline-block;
  padding: .5rem 1.05rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--red-dark);
  text-decoration: none;
  transition: all .17s ease;
  white-space: nowrap;
}
.teacher-link:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(202,1,0,0.22);
}
.note { font-size: .7rem; color: var(--muted); margin-left: .3rem; }
.teacher-link:hover .note { color: rgba(255,255,255,0.7); }

/* ── PRINT STYLES ────────────────────────────────────────────────────────── */
@media print {
  header .logout-btn, .stripe, .action-row, .view-toggle, .stats,
  .remove-break-btn, .add-break-btn, .print-btn { display: none !important; }
  body { background: white; }
  .conf-card { break-inside: avoid; box-shadow: none; border: 1pt solid #ccc; }
  .conf-card-header { background: var(--red-dark) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── SHIELD LOGO ─────────────────────────────────────────────────────────── */
#shield {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 12%;
  min-width: 50px;
}
@media screen and (max-width: 1700px) {
  #shield { position: absolute; top: 10px; z-index: 300; }
}
@media screen and (max-width: 600px) {
  #shield { display: none; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .conf-card-body { grid-template-columns: 1fr; }
  .slot-row { grid-template-columns: 1fr; }
  .slot-time { border-radius: 0; }
}
