/**
 * ESHIFT Campus of Higher Studies - Online Certificate Verification Portal
 * Admin Panel Stylesheet (Modern Dark Dashboard - Responsive & Mobile Ready)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --admin-bg: #070d18;
  --admin-sidebar: #0b1324;
  --admin-header: rgba(11, 19, 36, 0.92);
  --admin-card: rgba(255, 255, 255, 0.04);
  --admin-card-border: rgba(255, 255, 255, 0.08);
  --admin-accent: #6366f1;
  --admin-accent-hover: #4f46e5;
  --admin-text: #f8fafc;
  --admin-muted: #94a3b8;
  --admin-dim: #64748b;
  --admin-radius: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.admin-body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  min-height: 100vh;
  margin: 0;
  display: flex;
  overflow-x: hidden;
}

/* Admin Layout Structure */
.admin-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Backdrop for Mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-card-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-card-border);
}

.sidebar-brand {
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--admin-muted);
  padding: 0.75rem 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-close-btn:hover {
  color: #ffffff;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sidebar-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 0.7rem;
  color: var(--admin-muted);
}

.sidebar-menu {
  list-style: none;
  padding: 1.25rem 0.85rem;
  margin: 0;
  flex: 1;
}

.menu-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--admin-dim);
  padding: 0.75rem 0.75rem 0.35rem;
  font-weight: 600;
}

.menu-item {
  margin-bottom: 0.25rem;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 44px; /* Accessible touch target */
}

.menu-link svg {
  width: 18px;
  height: 18px;
  color: var(--admin-dim);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.menu-link:hover svg {
  color: var(--admin-accent);
}

.menu-link.active {
  background: rgba(99, 102, 241, 0.15);
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid var(--admin-accent);
}

.menu-link.active svg {
  color: var(--admin-accent);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--admin-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.user-role {
  font-size: 0.7rem;
  color: var(--admin-muted);
}

/* Main Content Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--admin-bg);
  overflow-x: hidden;
}

/* Topbar */
.admin-topbar {
  min-height: 70px;
  background: var(--admin-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--admin-card-border);
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.mobile-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-card-border);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.topbar-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.topbar-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--admin-muted);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--admin-card-border);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
}

.topbar-btn {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
}

/* Page Content */
.admin-content {
  padding: 1.75rem;
  flex: 1;
}

@media (max-width: 768px) {
  .admin-content {
    padding: 1rem;
  }
  .admin-topbar {
    padding: 0.75rem 1rem;
  }
}

/* Metric Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stat-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--admin-radius);
  padding: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.stat-num {
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-top: 0.25rem;
}

.stat-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--admin-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* ==============================================================
   QUICK ACTIONS SECTION (Fixed Grid Layout, Clean Spacing, No Clipping)
   ============================================================== */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--admin-radius);
  text-decoration: none;
  color: var(--admin-text);
  transition: all 0.25s ease;
  min-height: 80px;
}

.quick-action-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.quick-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-icon.indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.quick-action-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.quick-action-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.quick-action-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.quick-action-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quick-action-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.quick-action-desc {
  font-size: 0.75rem;
  color: var(--admin-muted);
  margin-top: 3px;
}

/* Dashboard Tables Grid */
.dashboard-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .dashboard-tables-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin Panels & Cards */
.admin-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--admin-radius);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
  .admin-card {
    padding: 1.15rem;
  }
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--admin-card-border);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 580px; /* Ensures readable columns on mobile horizontal scroll */
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--admin-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--admin-card-border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-revoked {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Action Icon Buttons */
.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-card-border);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-icon:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--admin-accent);
  color: #ffffff;
}

.btn-icon.danger:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #fb7185;
}

/* Form Styles */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .form-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--admin-card-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
  min-height: 44px; /* Touch target */
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.admin-select {
  cursor: pointer;
}

.admin-select option {
  background: #0b1324;
  color: #ffffff;
}

/* Toggle Switch */
.toggle-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-card-border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--admin-accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Filter controls bar */
.admin-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .admin-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }
}

/* Mobile Sidebar Drawer Rules */
@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.85);
  }

  .admin-sidebar.show {
    transform: translateX(0);
  }

  .sidebar-backdrop.show {
    display: block;
    opacity: 1;
  }

  .sidebar-close-btn {
    display: inline-flex;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }

  .topbar-date {
    display: none;
  }
}

/* ==============================================================
   STAFF PORTAL LOGIN & PASSWORD UPDATE STYLES
   ============================================================== */

.staff-login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: radial-gradient(circle at 50% 12%, rgba(59, 130, 246, 0.18) 0%, transparent 65%), #020617;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  color: #f8fafc;
  overflow-x: hidden;
}

.staff-login-wrapper {
  width: 100%;
  max-width: 440px;
  margin: auto;
  box-sizing: border-box;
}

.staff-login-card {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.08);
  box-sizing: border-box;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.staff-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
}

.staff-login-logo-box {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.staff-login-logo-img {
  width: 100%;
  height: 100%;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  display: block;
}

.staff-login-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.staff-login-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
  line-height: 1.4;
}

.staff-form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.staff-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

.staff-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.staff-input-icon {
  position: absolute;
  left: 1rem;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-form-input {
  width: 100%;
  height: 48px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 1rem 0 2.75rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.staff-form-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
  background: rgba(2, 6, 23, 0.85);
}

.staff-btn-submit {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  margin-top: 0.5rem;
  text-decoration: none;
}

.staff-btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.staff-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.staff-card-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-footer-link {
  color: #94a3b8;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.staff-footer-link:hover {
  color: #60a5fa;
}

/* Security notice banner */
.security-update-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: left;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: #fde68a;
  line-height: 1.5;
}

.password-requirements-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  text-align: left;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .staff-login-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }
  .staff-login-title {
    font-size: 1.25rem;
  }
  .staff-login-logo-box {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
  }
  .staff-login-logo-img {
    max-width: 54px;
    max-height: 54px;
  }
}

/* ==============================================================
   STUDENT PHOTO UPLOAD & PREVIEW STYLES
   ============================================================== */

.photo-upload-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .photo-upload-row {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }
}

.photo-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.photo-preview-box {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.student-photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-remove-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #fb7185;
  cursor: pointer;
  user-select: none;
}

.photo-remove-label input[type="checkbox"] {
  accent-color: #f43f5e;
  cursor: pointer;
}

.photo-upload-inputs {
  flex: 1;
  min-width: 0;
}

.photo-file-input {
  font-size: 0.88rem;
  color: #cbd5e1;
  cursor: pointer;
}

.photo-file-input::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  background: #4f46e5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.photo-file-input::file-selector-button:hover {
  background: #4338ca;
}
