/* pages/admin.css */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.table-wrap { overflow-x: auto; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.mt-1  { margin-top: .75rem; }
.mt-2  { margin-top: 1.5rem; }
.mt-3  { margin-top: 2rem; }
.mb-1  { margin-bottom: .75rem; }
.mb-2  { margin-bottom: 1.5rem; }
.mb-3  { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted, #64748b); }
.text-center { text-align: center; }

.meta { font-size: .78rem; color: var(--text-muted, #64748b); margin-top: .25rem; }

/* ─── Login split layout ───────────────────────────── */
body.page-login .site-main { padding: 0; }

.login-split {
  display: grid; grid-template-columns: 55fr 45fr;
  min-height: calc(100vh - 70px);
}
.login-panel-left {
  background: var(--grad-hero); display: flex; flex-direction: column;
  justify-content: center; padding: 4rem 4rem; position: relative; overflow: hidden;
}
.login-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.login-orb-1 {
  width: 380px; height: 380px; top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(240,81,138,.25) 0%, transparent 70%);
}
.login-orb-2 {
  width: 280px; height: 280px; bottom: -60px; left: -50px;
  background: radial-gradient(circle, rgba(167,100,255,.22) 0%, transparent 70%);
}
.login-logo {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  color: #fff; margin-bottom: .25rem; position: relative;
}
.login-tagline {
  color: rgba(255,255,255,.75); font-size: .95rem; margin-bottom: 2rem; position: relative;
}
.login-features {
  list-style: none; margin: 0; display: flex; flex-direction: column; gap: .75rem; position: relative;
}
.login-features li {
  color: rgba(255,255,255,.88); display: flex; align-items: center;
  gap: .75rem; font-size: .95rem;
}
.lf-icon {
  font-size: 1.3rem; flex-shrink: 0;
}

.login-panel-right {
  background: var(--bg); display: flex; align-items: center;
  justify-content: center; padding: 3rem 2.5rem;
}
.login-form-card { width: 100%; max-width: 400px; }
.login-form-card h2 { margin-bottom: .35rem; }
.login-form-card .text-muted { font-size: .9rem; margin-bottom: 1.5rem; }

.forgot-link {
  float: right; font-size: .83rem; font-weight: 400; color: var(--text-muted);
}
.forgot-link:hover { color: var(--primary); text-decoration: underline; }

.input-eye-wrap { position: relative; }
.input-eye-wrap .form-control { padding-right: 2.5rem; }
.eye-toggle {
  position: absolute; right: .65rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.05rem;
  color: var(--text-muted); padding: 0; line-height: 1;
}
.eye-toggle:hover { color: var(--text); }

.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text-muted); font-size: .82rem; margin: 1.25rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.btn-google {
  width: 100%; background: #fff; color: #3c4043;
  border: 1.5px solid #dadce0; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  padding: .65rem 1rem; font-size: .93rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.btn-google:hover {
  background: #f8f8f8; box-shadow: 0 1px 4px rgba(0,0,0,.12);
  text-decoration: none; color: #3c4043;
}

@media (max-width: 768px) {
  .login-split { grid-template-columns: 1fr; }
  .login-panel-left { display: none; }
  .login-panel-right { min-height: calc(100vh - 70px); }
}

/* ─── Register card ────────────────────────────────── */
.register-card {
  max-width: 680px; margin: 3rem auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}
.register-card h2 { margin-bottom: .35rem; }
.register-card > p { margin-bottom: 1.5rem; }
@media (max-width: 600px) {
  .register-card { padding: 1.5rem 1rem; margin: 1.5rem auto; }
}

/* ─── Admin users: action buttons ─────────────────── */
.action-btns { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }

/* ─── Bulk actions bar ─────────────────────────────── */
.bulk-bar {
  display: none; align-items: center; gap: .75rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #f9ecff 0%, #fff0f7 100%);
  border: 1.5px solid var(--primary); border-radius: var(--radius);
  padding: .7rem 1rem; margin-bottom: .75rem;
}
.bulk-bar.active { display: flex; }
.bulk-bar #bulk-count { font-weight: 700; color: var(--primary); }

/* ─── Pagination ───────────────────────────────────── */
.pagination { display: flex; gap: .35rem; margin-top: 1.5rem; flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; cursor: pointer; font-weight: 600;
  background: var(--bg-card); color: var(--text); text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.page-btn:hover { transform: translateY(-1px); text-decoration: none; }
.page-btn.active, .page-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ─── Modals (<dialog>) ────────────────────────────── */
.modal-box-wrap {
  border: none; border-radius: var(--radius-lg);
  padding: 0; max-width: 560px; width: 95%;
  box-shadow: var(--shadow-lg);
}
.modal-box-wrap::backdrop { background: rgba(30,10,40,.55); }
.modal-box { padding: 1.75rem 2rem; }

/* ─── Module access checkboxes ─────────────────────── */
.module-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: .6rem;
  margin-top: .6rem;
}
.module-check {
  display: flex; align-items: center; gap: .45rem;
  font-size: .86rem; cursor: pointer;
}
.module-check input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer;
}
@media (max-width: 480px) {
  .module-grid { grid-template-columns: repeat(2,1fr); }
}
