:root {
  --primary:    #1a1a2e;
  --accent:     #f0a500;
  --success:    #28a745;
  --danger:     #dc3545;
  --info:       #3b82f6;
  --purple:     #8b5cf6;
  --bg:         #f9fafb;
  --card-bg:    #ffffff;
  --bank-bg:    #fef9e7;
  --border:     #e5e7eb;
  --text-dark:  #111827;
  --text-muted: #6b7280;
  --sidebar-width: 260px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
}

/* ── Buttons ── */
.btn-primary-gold {
  background: var(--accent);
  border: none;
  color: var(--primary);
  font-weight: 600;
}
.btn-primary-gold:hover { background: #d68f00; }

.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

/* ── Sidebar ── */
.sidebar {
  background: var(--primary);
  color: #fff;
  width: var(--sidebar-width);
}

/* ── Bank Info Box ── */
.bank-info-box {
  background: var(--bank-bg);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 24px;
}

/* ── Status Badges ── */
.badge { font-weight: 500; padding: 5px 10px; border-radius: 20px; }

.status-pending          { background: #fff4d6; color: #8a6500; }
.status-approved         { background: #dbeafe; color: #1e40af; }
.status-awaiting_payment { background: #ede9fe; color: #5b21b6; }
.status-confirmed        { background: #1a1a2e; color: #fff; }
.status-completed        { background: #d1fae5; color: #065f46; }
.status-cancelled        { background: #fee2e2; color: #991b1b; }
.status-rejected         { background: #e5e7eb; color: #374151; }

/* ── Package expand/collapse toggle ──
   Shared by the student, instructor and admin booking lists. A fixed-size square so
   it never collapses against the text beside it. */
.pkg-toggle {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dbe0;
  border-radius: 6px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pkg-toggle:hover         { background: var(--bank-bg); border-color: var(--accent); color: #b47800; }
.pkg-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Expanded: filled gold so an open package is obvious at a glance */
.pkg-toggle:not(.collapsed) { background: var(--accent); border-color: var(--accent); color: var(--primary); }

.pkg-toggle .bi {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  transition: transform .15s ease;
}
.pkg-toggle:not(.collapsed) .bi { transform: rotate(90deg); }

.pkg-session-row > td { background: #f8f9fa; }

/* ── Notification bell dropdown ──
   Each row is a message plus a clear (×) button; the whole list can be
   emptied from the "Clear all" control in the header. */
.notif-menu {
  min-width: 320px;
  max-width: 360px;
  padding: 0;
  overflow: hidden;
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.notif-clear-all {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  cursor: pointer;
}
.notif-clear-all:hover:not(:disabled) { text-decoration: underline; }
.notif-clear-all:disabled            { opacity: .5; cursor: default; }

.notif-empty {
  padding: 18px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 60vh;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  border-bottom: 1px solid #f1f2f4;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover      { background: var(--bg); }

/* The message itself — a link, so it keeps the mark-as-read click target. */
.notif-body {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  padding: 10px 4px 10px 14px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-dark);
  text-decoration: none;
}
.notif-body:hover { color: var(--text-dark); }

.notif-msg  { display: block; white-space: normal; overflow-wrap: anywhere; }
.notif-time { display: block; margin-top: 2px; font-size: 11px; color: var(--text-muted); }

/* Unread rows are bold with a gold rail down the left edge. */
.notif-item.is-unread .notif-msg { font-weight: 600; }
.notif-item.is-unread            { box-shadow: inset 3px 0 0 var(--accent); }

.notif-clear {
  flex: 0 0 auto;
  align-self: stretch;
  width: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: #b0b5bd;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.notif-clear:hover:not(:disabled) { color: var(--danger); background: #fdeaea; }
.notif-clear:focus-visible        { outline: 2px solid var(--accent); outline-offset: -2px; }
.notif-clear:disabled             { opacity: .4; cursor: default; }

.notif-foot {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.payment-status-awaiting_payment { background: #ede9fe; color: #5b21b6; }
.payment-status-reported_paid    { background: #fef3c7; color: #92400e; }
.payment-status-verified         { background: #d1fae5; color: #065f46; }
.payment-status-failed           { background: #fee2e2; color: #991b1b; }
.payment-status-refunded         { background: #e5e7eb; color: #374151; }
