/* ==========================================================================
   Student Election Portal - Mobile Responsive Styling (Screenshot Match)
   ========================================================================== */

:root {
  --navy-dark: #0f3061;
  --navy-header: #12376b;
  --blue-primary: #0f4c9c;
  --blue-button: #0c4592;
  --blue-button-hover: #093573;
  --blue-accent: #1d68c4;
  --sky-card: #e5effb;
  --sky-upload: #e9eff8;
  --sky-border: #cedbf0;
  --input-border: #d9e1ec;
  --text-dark: #0e2442;
  --text-muted: #52657c;
  --danger-red: #d93025;
  --success-green: #14833b;
  --white: #ffffff;
  --page-bg: #eef3f9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(145deg, #e2ebf7 0%, #f3f7fc 100%);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   TOP ROLE & LANGUAGE SWITCHER BAR (3 Languages: Marathi / Hindi / English)
   ========================================================================== */

.role-switcher-bar {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(15, 48, 97, 0.97);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 48, 97, 0.18);
}

.topbar-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.topbar-row-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.role-switcher-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.2px;
}

.role-tabs,
.lang-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 2.5px;
  gap: 3px;
}

.role-tab-btn,
.lang-tab-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.role-tab-btn.active,
.lang-tab-btn.active {
  background: #ffffff;
  color: var(--navy-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.topbar-helpline-quick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #1ea34a 0%, #137a35 100%);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Main Mobile App Shell */
.mobile-shell {
  width: 100%;
  max-width: 480px;
  min-height: calc(100vh - 80px);
  background: var(--white);
  box-shadow: 0 12px 42px rgba(15, 48, 97, 0.14);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 72px; /* Space for sticky helpline CTA bar */
}

@media (min-width: 520px) {
  .role-switcher-bar {
    margin-top: 16px;
    border-radius: 20px 20px 0 0;
  }
  .mobile-shell {
    min-height: 760px;
    margin-bottom: 28px;
    border-radius: 0 0 28px 28px;
    border: 1px solid rgba(15, 48, 97, 0.1);
  }
  .mobile-shell.wide-details {
    max-width: 680px;
  }
  .role-switcher-bar.wide-details {
    max-width: 680px;
  }
}

/* ==========================================================================
   1. USER REGISTRATION SCREEN (Election Banner + Form)
   ========================================================================== */

.election-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #b8dcf8 0%, #def0fc 65%, #ffffff 100%);
  overflow: hidden;
  padding-top: 10px;
}

.banner-svg-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.registration-card {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  background: var(--white);
  border-radius: 26px 26px 0 0;
  padding: 20px 18px 24px;
  box-shadow: 0 -6px 20px rgba(15, 48, 97, 0.06);
}

.form-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* Input Pill Row with Left Icon */
.input-pill {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--input-border);
  border-radius: 11px;
  background: #ffffff;
  padding: 0 13px;
  min-height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.input-pill:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 156, 0.12);
}

.input-pill-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #164887;
  margin-right: 11px;
  flex-shrink: 0;
}

.input-field-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  height: 44px;
}

.input-field-wrap input,
.input-field-wrap select {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  font-family: inherit;
}

.input-field-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  cursor: pointer;
}

/* Simulated placeholder with red asterisk when input is empty */
.custom-placeholder {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14.5px;
  font-weight: 500;
  color: #263850;
  display: flex;
  align-items: center;
  gap: 3px;
}

.req-star {
  color: var(--danger-red);
  font-weight: 700;
}

.select-chevron {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #415673;
  display: flex;
  align-items: center;
}

/* Upload Boxes (Degree Photo, Multiple Marksheet Photos & Aadhar Photo) */
.upload-section {
  margin-top: 2px;
}

.upload-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-left: 2px;
}

.upload-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f3148;
  margin-bottom: 6px;
  padding-left: 2px;
}

.upload-label-row .upload-label {
  margin-bottom: 0;
}

.upload-badge-count {
  font-size: 11.5px;
  font-weight: 700;
  background: #dcebfa;
  color: var(--navy-dark);
  padding: 2px 8px;
  border-radius: 10px;
}

.upload-dropzone {
  width: 100%;
  min-height: 76px;
  background: var(--sky-upload);
  border: 1.5px solid var(--sky-border);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.upload-dropzone:hover {
  background: #dfe9f7;
  border-color: #9cb9e3;
}

.upload-dropzone.has-file {
  background: #eef6ff;
  border-color: var(--blue-primary);
}

.upload-icon-svg {
  color: #254f85;
  margin-bottom: 5px;
}

.upload-text {
  font-size: 13.5px;
  font-weight: 500;
  color: #253952;
}

.upload-subtext {
  font-size: 11.5px;
  color: #556b86;
  margin-top: 2px;
}

.upload-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.upload-thumb {
  width: 56px;
  height: 46px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #b5c9e6;
  background: #fff;
}

.upload-file-meta {
  text-align: left;
  max-width: 210px;
}

.upload-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-change-hint {
  font-size: 11.5px;
  color: var(--blue-accent);
  font-weight: 500;
}

/* Multi-Marksheet Thumbnail Grid */
.multi-marksheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 9px;
  width: 100%;
  margin-top: 8px;
}

.multi-thumb-item {
  position: relative;
  height: 68px;
  border-radius: 9px;
  overflow: hidden;
  border: 1.5px solid #b9d0ee;
  background: #fff;
}

.multi-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.multi-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(217, 48, 37, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.multi-add-more-tile {
  height: 68px;
  border-radius: 9px;
  border: 1.5px dashed #7aa3dc;
  background: #f4f9ff;
  color: var(--blue-primary);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Primary Navy Submit Button */
.btn-primary-navy {
  margin-top: 8px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #1350a3 0%, #0b3c82 100%);
  color: var(--white);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(12, 69, 146, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-navy:hover:not(:disabled) {
  background: linear-gradient(180deg, #1659b5 0%, #0d4491 100%);
  box-shadow: 0 7px 18px rgba(12, 69, 146, 0.36);
}

.btn-primary-navy:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary-navy:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================================================
   HELPLINE & AUTO-DIAL CTA BANNER (9561131729)
   ========================================================================== */

.helpline-cta-card {
  margin-top: 16px;
  background: linear-gradient(135deg, #eef6ff 0%, #ddebfb 100%);
  border: 1.5px solid #bdd5f3;
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.helpline-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.helpline-label-sm {
  font-size: 12px;
  font-weight: 600;
  color: #345278;
}

.helpline-number-lg {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: 0.4px;
}

.btn-autodial-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, #1da34a 0%, #117a34 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(17, 122, 52, 0.28);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-autodial-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(17, 122, 52, 0.38);
}

/* Sticky Bottom Helpline Bar inside Mobile Shell */
.sticky-helpline-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: rgba(15, 48, 97, 0.96);
  color: #fff;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 95;
  backdrop-filter: blur(8px);
  box-shadow: 0 -3px 14px rgba(15, 48, 97, 0.18);
}

@media (min-width: 520px) {
  .sticky-helpline-footer.wide-details {
    max-width: 680px;
  }
}

.sticky-helpline-text {
  display: flex;
  flex-direction: column;
}

.sticky-helpline-caption {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.sticky-helpline-phone {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
}

.sticky-dial-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #22b353;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(34, 179, 83, 0.4);
}

/* Status Alerts */
.alert-banner {
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.alert-error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c2c0;
}

.alert-success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #b7dfbe;
}

/* Custom Value Entry Inline Input (when "Other / Custom" selected in dropdown) */
.custom-loc-input {
  margin-top: 6px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1.5px dashed #7aa3dc;
  background: #f6faff;
  font-size: 13.5px;
  color: var(--text-dark);
  outline: none;
}

/* ==========================================================================
   2. ADMIN OTP LOGIN SCREEN
   ========================================================================== */

.admin-login-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #edf4fc 100%);
  position: relative;
  overflow: hidden;
}

.admin-wave-header {
  position: relative;
  width: 100%;
  height: 215px;
  background: linear-gradient(165deg, #0b264e 0%, #143f7a 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.admin-wave-svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
}

.shield-badge-wrap {
  position: relative;
  z-index: 3;
  transform: translateY(22px);
  width: 96px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 18px rgba(11, 38, 78, 0.25));
}

.admin-login-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 36px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.admin-login-title {
  font-size: 26px;
  font-weight: 800;
  color: #0e294e;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.admin-login-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #344861;
  margin-bottom: 26px;
}

.otp-boxes-row {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-bottom: 26px;
  width: 100%;
  max-width: 340px;
}

.otp-digit-input {
  width: 46px;
  height: 54px;
  border: 1.5px solid #cbd6e6;
  border-radius: 10px;
  background: #ffffff;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-dark);
  text-align: center;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
}

.otp-digit-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 156, 0.16);
  transform: translateY(-1px);
}

.btn-verify-otp {
  width: 100%;
  max-width: 310px;
  height: 48px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(180deg, #1352a5 0%, #0c3d82 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(12, 61, 130, 0.28);
  transition: all 0.2s ease;
}

.btn-verify-otp:hover:not(:disabled) {
  background: linear-gradient(180deg, #175cb6 0%, #0e4694 100%);
}

.btn-resend-otp {
  margin-top: 18px;
  background: none;
  border: none;
  color: #1659b0;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
}

.btn-resend-otp:hover {
  text-decoration: underline;
}

.demo-otp-pill {
  margin-top: 22px;
  background: #e3effd;
  border: 1px dashed #8ab4e8;
  color: #124382;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-autofill-btn {
  background: #124382;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   3. ADMIN CANDIDATE LIST SCREEN
   ========================================================================== */

.admin-top-bar {
  background: var(--navy-header);
  color: #ffffff;
  height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(15, 48, 97, 0.16);
}

.admin-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn-clear {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.icon-btn-clear:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-bar-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.admin-list-content {
  padding: 16px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  background: #f8fafd;
}

/* Users Registered Stats Card */
.stats-registered-card {
  background: var(--sky-card);
  border: 1px solid #d1e3f8;
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 3px 10px rgba(18, 55, 107, 0.05);
}

.stats-people-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-number {
  font-size: 31px;
  font-weight: 800;
  color: #0d2b52;
  line-height: 1.05;
}

.stats-label {
  font-size: 14.5px;
  font-weight: 500;
  color: #203754;
  margin-top: 3px;
}

/* Candidate Search Box */
.search-box-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d6e0ee;
  border-radius: 11px;
  padding: 0 13px;
  height: 44px;
  box-shadow: 0 2px 6px rgba(15, 48, 97, 0.03);
}

.search-box-wrap:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 156, 0.1);
}

.search-box-icon {
  color: #345278;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.search-box-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14.5px;
  color: var(--text-dark);
  background: transparent;
}

/* 3-Column Candidate Table Card */
.candidate-table-card {
  background: #ffffff;
  border: 1px solid #dce5f2;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 48, 97, 0.05);
}

.candidate-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.candidate-table thead tr {
  background: #e3eefb;
  border-bottom: 1px solid #d1e0f3;
}

.candidate-table th {
  text-align: left;
  padding: 12px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #102a4c;
}

.candidate-table th:nth-child(1) {
  width: 33%;
}
.candidate-table th:nth-child(2) {
  width: 31%;
}
.candidate-table th:nth-child(3) {
  width: 36%;
}

.candidate-table tbody tr {
  border-bottom: 1px solid #eaeff7;
  cursor: pointer;
  transition: background 0.15s ease;
}

.candidate-table tbody tr:last-child {
  border-bottom: none;
}

.candidate-table tbody tr:hover {
  background: #f1f7ff;
}

.candidate-table td {
  padding: 13px 10px;
  font-size: 13.5px;
  vertical-align: middle;
  color: #1f334d;
  word-wrap: break-word;
}

.candidate-table td.col-name {
  font-weight: 700;
  color: #0f294a;
  border-right: 1px solid #f0f4fa;
}

.candidate-table td.col-mobile {
  font-weight: 500;
  color: #223752;
  border-right: 1px solid #f0f4fa;
}

.candidate-table td.col-addr-college {
  line-height: 1.35;
  color: #243852;
}

/* ==========================================================================
   4. ADMIN CANDIDATE DETAILS SCREEN
   ========================================================================== */

.details-body {
  padding: 18px 16px 28px;
  background: #f5f8fc;
  flex: 1;
}

.details-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #dde6f3;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(15, 48, 97, 0.06);
}

.details-top-profile {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4ecf7;
}

.avatar-illustration-box {
  width: 118px;
  height: 134px;
  border-radius: 14px;
  background: #d7e9fc;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid #c3dcf7;
}

.profile-summary-info {
  flex: 1;
  min-width: 0;
}

.profile-candidate-name {
  font-size: 21px;
  font-weight: 800;
  color: #0d274c;
  margin-bottom: 10px;
}

.profile-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #1f3450;
}

.profile-info-icon {
  color: #154584;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Bottom Grid in Details: Left (Degree + Photos) & Right (Zilla, Dist, Taluka, Khanda) */
.details-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 16px;
}

@media (min-width: 500px) {
  .details-bottom-grid {
    grid-template-columns: 1.25fr 0.95fr;
    align-items: start;
  }
}

.degree-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
  color: #142c4c;
  margin-bottom: 12px;
}

.photos-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.marksheet-gallery-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #d6e2f2;
}

.marksheet-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.photo-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #243852;
  margin-bottom: 6px;
}

.photo-frame {
  width: 100%;
  height: 92px;
  background: #dce8f8;
  border: 1.5px solid #c5d7f0;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photo-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 48, 97, 0.14);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.locations-list-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.location-pin-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: #1b314e;
}

.location-pin-row strong {
  font-weight: 600;
  color: #0f294a;
}

/* Lightbox Modal for full-size Degree / Marksheet / Aadhar Photo inspection */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 24, 48, 0.82);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-box {
  background: #fff;
  border-radius: 16px;
  max-width: 92vw;
  max-height: 85vh;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-box img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--navy-dark);
  gap: 12px;
}

.lightbox-close {
  background: #e6eef8;
  border: none;
  border-radius: 8px;
  padding: 5px 11px;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
}

/* ==========================================================================
   LIVE DEVICE CAMERA CAPTURE MODAL & BUTTONS
   ========================================================================== */

.camera-capture-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 44, 0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.camera-modal-card {
  background: #0d2342;
  color: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.camera-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 14.5px;
}

.camera-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.camera-video-stage.passport-aspect {
  aspect-ratio: 3 / 4;
  max-height: 360px;
}

.camera-video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-guide-frame {
  position: absolute;
  inset: 14%;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  pointer-events: none;
}

.camera-modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #091a33;
  gap: 12px;
}

.btn-camera-switch {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-camera-shutter {
  flex: 1;
  height: 46px;
  border-radius: 24px;
  border: 3px solid #fff;
  background: #1a66cc;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(26, 102, 204, 0.45);
}

.camera-action-pills {
  display: flex;
  gap: 8px;
  margin-top: 7px;
  justify-content: center;
  flex-wrap: wrap;
}

.camera-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #12458a;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.camera-pill-btn.secondary {
  background: #dce8f8;
  color: #0f3061;
}
