:root {
  --bg-1: #0f172a;
  --bg-2: #111827;
  --bg-3: #1e293b;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --white: #f8fafc;
  --muted: #cbd5e1;
  --primary: #2563eb;
  --primary-2: #7c3aed;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.25),
      transparent 30%
    ),
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.2),
      transparent 28%
    ),
    linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

main.container {
  min-height: calc(100vh - 140px);
}

.premium-navbar {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-link {
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover {
  color: #93c5fd !important;
  transform: translateY(-1px);
}

.hero-section {
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card,
.glass-card,
.question-card {
  background: var(--glass);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  max-width: 900px;
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.08),
    transparent 40%,
    rgba(255, 255, 255, 0.04)
  );
  pointer-events: none;
}

.glass-card {
  position: relative;
  overflow: hidden;
}

/* .footer-glass {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  box-shadow: none;
} */

.btn {
  transition: var(--transition);
  border-radius: 999px !important;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border: none;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #1d4ed8, #6d28d9);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  color: #0f172a !important;
}

.premium-input,
.form-select.premium-input,
.form-control.premium-input {
  background: rgba(255, 255, 255, 0.06) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  transition: var(--transition);
}

.premium-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.premium-input:focus,
.form-select.premium-input:focus,
.form-control.premium-input:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.22) !important;
  color: white !important;
}

.form-label,
.form-check-label {
  color: #e2e8f0;
  font-weight: 500;
}

.alert {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.alert-success {
  background: rgba(34, 197, 94, 0.16);
  color: #dcfce7;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fee2e2;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.table {
  border-radius: 18px;
  overflow: hidden;
}

.table-dark {
  --bs-table-bg: rgba(255, 255, 255, 0.04);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.06);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-table-color: #f8fafc;
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.question-card {
  transition: var(--transition);
  border-radius: 22px;
}

.question-card:hover,
.glass-card:hover,
.hero-card:hover {
  transform: translateY(-4px);
}

.text-light-emphasis {
  color: rgba(255, 255, 255, 0.74) !important;
}

.timer-box {
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35);
  animation: pulseTimer 1.8s infinite;
}

@keyframes pulseTimer {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.palette-box {
  top: 100px;
  border-radius: 24px;
}

.palette-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transition: var(--transition);
}

.palette-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.palette-btn.review,
.marked-review,
.mark-review-btn.active-review {
  border-color: #facc15 !important;
  box-shadow: 0 0 0 1px #facc15 inset;
}

.notice-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.exam-wrapper {
  border-radius: 28px;
}

.auth-page-center {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.auth-subtitle {
  color: var(--muted);
}

.login-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 28px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.soft-divider {
  border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-stat {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.dashboard-stat h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.dashboard-stat::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -20px;
  top: -30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.card-hover-lift {
  transition: var(--transition);
}

.card-hover-lift:hover {
  transform: translateY(-6px);
}

.floating-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.35;
  z-index: -1;
}

.orb-1 {
  width: 220px;
  height: 220px;
  background: #2563eb;
  top: 100px;
  left: -80px;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: #7c3aed;
  right: -80px;
  top: 180px;
  animation: floatOrb 10s ease-in-out infinite;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
  100% {
    transform: translateY(0px);
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563eb, #7c3aed);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.06) inset;
  transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 992px) {
  .hero-card {
    padding: 2rem !important;
  }

  .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .hero-card,
  .glass-card,
  .question-card {
    border-radius: 20px;
  }

  .auth-title {
    font-size: 1.8rem;
  }

  .palette-box {
    position: static !important;
  }
}

@media (max-width: 576px) {
  .hero-card {
    padding: 1.4rem !important;
  }

  .timer-box {
    width: 100%;
    text-align: center;
  }

  .btn {
    width: 100%;
  }

  .navbar .btn {
    width: auto;
  }
}

/* ========= Teacher Dashboard extra styling ========= */

.teacher-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.teacher-dashboard-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.teacher-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.exam-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
}

.exam-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.exam-status-approved {
  background: rgba(34, 197, 94, 0.16);
  color: #dcfce7;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.exam-status-pending {
  background: rgba(245, 158, 11, 0.16);
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.exam-status-published {
  background: rgba(59, 130, 246, 0.16);
  color: #dbeafe;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.exam-status-unpublished {
  background: rgba(100, 116, 139, 0.18);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.exam-action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-live {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border: none;
  color: white;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
}

.btn-live:disabled {
  opacity: 0.95;
  color: white;
}

.teacher-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.teacher-form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.teacher-form-grid .full-width,
.teacher-form-grid-4 .full-width {
  grid-column: 1 / -1;
}

.glass-card form .btn {
  min-width: 140px;
}

.page-shell {
  position: relative;
}

.page-shell::before {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  top: 110px;
  left: -90px;
  background: rgba(37, 99, 235, 0.16);
  filter: blur(70px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.page-shell::after {
  content: "";
  position: fixed;
  width: 320px;
  height: 320px;
  bottom: 40px;
  right: -110px;
  background: rgba(124, 58, 237, 0.14);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.section-spacer {
  margin-bottom: 2rem;
}

.table td,
.table th {
  vertical-align: middle;
}

.table thead th {
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
}

.table tbody td {
  color: rgba(248, 250, 252, 0.92);
}

.teacher-empty-state {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

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

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

  .teacher-dashboard-header h2 {
    font-size: 1.65rem;
  }

  .exam-action-group {
    flex-direction: column;
    align-items: stretch;
  }

  .exam-action-group .btn {
    width: 100%;
  }
}

/* body.light-mode {
  background: linear-gradient(135deg, #e2e8f0, #f8fafc, #dbeafe);
  color: #0f172a;
} */

/* body.light-mode .premium-navbar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
} */

/* body.light-mode .navbar-brand,
body.light-mode .nav-link,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode p,
body.light-mode label,
body.light-mode td,
body.light-mode th {
  color: #0f172a !important;
} */

/* body.light-mode .glass-card,
body.light-mode .hero-card,
body.light-mode .question-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-mode .premium-input,
body.light-mode .form-control,
body.light-mode .form-select {
  background: rgba(255, 255, 255, 0.8) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

body.light-mode .table-dark {
  --bs-table-bg: rgba(255, 255, 255, 0.75);
  --bs-table-color: #0f172a;
  --bs-table-border-color: rgba(15, 23, 42, 0.08);
} */

/* ===== FOOTER ===== */

.social-icon i {
  font-size: 18px;
}
.footer-glass {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transform: translateY(-3px);
  color: white;
}

.resource-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.resource-list li {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.92);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  margin-bottom: 10px;
  color: #ddd;
  display: flex;
  justify-content: space-between;
}

.resource-link {
  color: #00d4ff;
  text-decoration: none;
  font-size: 14px;
}

.resource-link:hover {
  text-decoration: underline;
}

.ubuntu-light {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ubuntu-regular {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-medium {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ubuntu-bold {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-light-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.ubuntu-regular-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-medium-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.ubuntu-bold-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.premium-dropdown {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  overflow: hidden;
  min-width: 220px;
}

.premium-dropdown .dropdown-item {
  color: #f8fafc;
  padding: 10px 14px;
}

.premium-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.premium-dropdown .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.08);
}

.password-wrap {
  position: relative;
}

.password-input {
  padding-right: 52px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.password-toggle:hover {
  color: #ffffff;
}

/* ===== LIGHT MODE FULL VISIBILITY FIX ===== */

body.light-mode {
  background: linear-gradient(135deg, #e2e8f0, #f8fafc, #dbeafe);
  color: #0f172a;
}

body.light-mode .premium-navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.light-mode .navbar-brand,
body.light-mode .nav-link,
body.light-mode .navbar .dropdown-toggle,
body.light-mode .navbar .btn-outline-light {
  color: #0f172a !important;
}

body.light-mode .navbar .btn-outline-light {
  border-color: rgba(15, 23, 42, 0.18) !important;
  background: rgba(255, 255, 255, 0.65) !important;
}

body.light-mode .navbar .btn-outline-light:hover {
  background: #0f172a !important;
  color: #ffffff !important;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode p,
body.light-mode label,
body.light-mode span,
body.light-mode small,
body.light-mode strong,
body.light-mode td,
body.light-mode th,
body.light-mode li,
body.light-mode a:not(.btn):not(.social-icon) {
  color: #0f172a !important;
}

body.light-mode .text-light,
body.light-mode .text-white {
  color: #0f172a !important;
}

body.light-mode .text-light-emphasis {
  color: rgba(15, 23, 42, 0.72) !important;
}

body.light-mode .glass-card,
body.light-mode .hero-card,
body.light-mode .question-card,
body.light-mode .notice-item {
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

body.light-mode .footer-glass {
  background: rgba(255, 255, 255, 0.7) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .user-avatar {
  color: #ffffff !important;
}

body.light-mode .premium-dropdown {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .premium-dropdown .dropdown-item {
  color: #0f172a !important;
}

body.light-mode .premium-dropdown .dropdown-item:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

body.light-mode .premium-dropdown .dropdown-divider {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .premium-input,
body.light-mode .form-control,
body.light-mode .form-select {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

body.light-mode .premium-input::placeholder,
body.light-mode .form-control::placeholder {
  color: rgba(15, 23, 42, 0.5) !important;
}

body.light-mode .premium-input:focus,
body.light-mode .form-control:focus,
body.light-mode .form-select:focus {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: #3b82f6 !important;
}

body.light-mode .password-toggle,
body.light-mode .material-icons-outlined {
  color: #0f172a !important;
}

body.light-mode .table-dark {
  --bs-table-bg: rgba(255, 255, 255, 0.82);
  --bs-table-striped-bg: rgba(15, 23, 42, 0.03);
  --bs-table-hover-bg: rgba(15, 23, 42, 0.06);
  --bs-table-color: #0f172a;
  --bs-table-border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .table thead th,
body.light-mode .table tbody td {
  color: #0f172a !important;
}

body.light-mode .resource-list li {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

body.light-mode .social-icon {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

body.light-mode .social-icon i {
  color: #0f172a !important;
}

body.light-mode .social-icon:hover {
  background: linear-gradient(90deg, #2563eb, #7c3aed) !important;
}

body.light-mode .social-icon:hover i,
body.light-mode .social-icon:hover {
  color: #ffffff !important;
}

body.light-mode .alert-success {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #166534 !important;
}

body.light-mode .alert-danger {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #991b1b !important;
}

body.light-mode .badge.bg-secondary {
  color: #0f172a !important;
}

.theme-icon {
  color: inherit !important;
  fill: currentColor !important;
}

.profile-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.role-badge-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: capitalize;
}

body.light-mode .role-badge-text {
  color: rgba(15, 23, 42, 0.72);
}

/* .profile-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.role-badge-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.72);
  text-transform: capitalize;
}

body.light-mode .role-badge-text {
  color: rgba(15,23,42,0.72);
} */

.profile-page-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.profile-page-fallback {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: white;
  font-size: 2rem;
  font-weight: 800;
}

/* File upload input fix */
.file-upload-input {
  padding: 0.65rem 0.9rem !important;
  border-radius: 18px !important;
  overflow: hidden;
}

.file-upload-input::-webkit-file-upload-button {
  border: none;
  margin-right: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.file-upload-input::file-selector-button {
  border: none;
  margin-right: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

body.light-mode .file-upload-input {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

body.light-mode .file-upload-input::-webkit-file-upload-button,
body.light-mode .file-upload-input::file-selector-button {
  color: white !important;
}

.profile-page-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.profile-page-fallback {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: white;
  font-size: 2rem;
  font-weight: 800;
}
