/* PCI Training Admin Portal - Main Stylesheet */
:root {
  --pci-navy: #0f2744;
  --pci-navy-dark: #0a192f;
  --pci-blue: #1d4ed8;
  --pci-blue-light: #3b82f6;
  --pci-emerald: #059669;
  --pci-emerald-light: #10b981;
  --pci-amber: #d97706;
  --pci-red: #dc2626;
  --pci-gray-bg: #f3f4f6;
  --pci-card-bg: #ffffff;
  --pci-text-main: #1f2937;
  --pci-text-muted: #6b7280;
  --pci-border: #e5e7eb;
  --sidebar-width: 260px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--pci-gray-bg);
  color: var(--pci-text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* App Layout */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--pci-navy-dark) 0%, var(--pci-navy) 100%);
  color: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.brand-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  list-style: none;
  padding: 1rem 0.75rem;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.nav-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  padding: 0.75rem 0.75rem 0.25rem 0.75rem;
  font-weight: 700;
}

.sidebar-nav-item {
  margin-bottom: 0.25rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(3px);
}

.sidebar-nav-link.active {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

.sidebar-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.user-mini-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

/* Main Content Area */
.app-main {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Navbar */
.app-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--pci-border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle-btn {
  background: transparent;
  border: 1px solid var(--pci-border);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  color: #4b5563;
  cursor: pointer;
  display: none;
}

.topbar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pci-navy);
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.api-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.api-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.api-status-dot.pulsing {
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Page Container */
.page-container {
  padding: 1.75rem;
  flex-grow: 1;
}

/* Keyframe Animations for UI/UX Transitions */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@keyframes countFlash {
  0% { color: #2563eb; transform: scale(1.05); }
  100% { color: var(--pci-navy-dark); transform: scale(1); }
}

/* Stat Cards & Staggered Animations */
.stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--pci-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stat-stagger-1 { animation-delay: 0.05s; }
.stat-stagger-2 { animation-delay: 0.10s; }
.stat-stagger-3 { animation-delay: 0.15s; }
.stat-stagger-4 { animation-delay: 0.20s; }
.stat-stagger-5 { animation-delay: 0.25s; }
.stat-stagger-6 { animation-delay: 0.30s; }
.stat-stagger-7 { animation-delay: 0.35s; }

.stat-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 14px 28px rgba(15, 39, 68, 0.1), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(37, 99, 235, 0.35);
}

.stat-card:hover .stat-icon {
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pci-text-muted);
  margin: 0;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pci-navy-dark);
  margin-bottom: 0.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: color 0.3s ease;
}

.stat-footer {
  font-size: 0.78rem;
  color: var(--pci-text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Dashboard Content Cards with Animations */
.content-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--pci-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.5rem;
  overflow: hidden;
  animation: scaleIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.content-card:hover {
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
  border-color: #cbd5e1;
}

.chart-container-animated {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-container-animated:hover {
  transform: scale(1.008);
}

.content-card-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--pci-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.content-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pci-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-card-body {
  padding: 1.4rem;
}

/* Bihar SVG Map Styling */
.bihar-map-wrapper {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.bihar-svg {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
}

.district-path {
  fill: #e2e8f0;
  stroke: #ffffff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.district-path.active-pci {
  fill: #3b82f6;
  stroke: #1d4ed8;
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

.district-path.active-pci:hover {
  fill: #1d4ed8;
  stroke: #93c5fd;
  stroke-width: 3;
  filter: drop-shadow(0 6px 14px rgba(29, 78, 216, 0.45));
  transform: scale(1.01);
}

.district-path:hover {
  fill: #93c5fd;
  stroke: #2563eb;
  stroke-width: 2.5;
}

.district-label {
  font-size: 9px;
  font-weight: 700;
  fill: #ffffff;
  pointer-events: none;
  text-anchor: middle;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.district-label.inactive {
  fill: #64748b;
  font-size: 8px;
  font-weight: 600;
  text-shadow: none;
}

/* Floating Map Tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  min-width: 190px;
}

.map-tooltip-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.25rem;
}

.map-tooltip-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
  color: #e2e8f0;
}

.map-tooltip-val {
  font-weight: 700;
  color: #ffffff;
}

/* Form Styles */
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 0.35rem;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.suggest-pwd-btn {
  background: #f0fdf4;
  color: #166534;
  border: 1px dashed #86efac;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.suggest-pwd-btn:hover {
  background: #dcfce7;
  border-color: #4ade80;
  transform: translateY(-1px);
}

/* Question Option Cards */
.exam-option-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.exam-option-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.08);
}

.exam-option-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.exam-option-img {
  width: 100%;
  max-width: 220px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: #f8fafc;
}

.exam-option-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #475569;
}

.exam-option-card.selected .exam-option-badge {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Custom Table */
.table-custom {
  width: 100%;
  margin-bottom: 0;
  vertical-align: middle;
}

.table-custom th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  border-bottom: 1.5px solid #e2e8f0;
}

.table-custom td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.table-custom tr:hover td {
  background-color: #f8fafc;
}

/* Badges */
.badge-role-crp {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.badge-role-state {
  background: #fdf2f8;
  color: #9d174d;
  border: 1px solid #fbcfe8;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.badge-role-pa {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

/* Multi-Panchayat Selector for CRP Role */
.multi-panchayat-box {
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 0.65rem;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.multi-panchayat-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.multi-panchayat-box.disabled-box {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.selected-panchayat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed #e2e8f0;
}

.panchayat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  padding: 0.15rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.panchayat-chip-remove {
  background: transparent;
  border: none;
  color: #1d4ed8;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.panchayat-chip-remove:hover {
  color: #dc2626;
}

.multi-panchayat-list {
  max-height: 185px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 0.2rem;
}

.multi-panchayat-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  margin-bottom: 0;
}

.multi-panchayat-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.multi-panchayat-item.is-checked {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.panchayat-table-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.48rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.auto-mapped-crp-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
}

.badge-status-ongoing {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-status-completed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-status-scheduled {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-status-locked {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Login Page Styling */
.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a192f 0%, #0f2744 50%, #1e3a8a 100%);
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 1rem auto;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* Partner Logos Showcase (Login & Dashboard) */
.login-partners-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.06);
}

.partner-logo-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 0.25rem 0.5rem;
  background: #ffffff;
}

.partner-logo-divider {
  width: 1px;
  background: #e2e8f0;
  align-self: stretch;
  margin: 0.25rem 0;
}

.partner-role-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.partner-role-label.fund-partner {
  color: #b91c1c;
}

.partner-role-label.impl-partner {
  color: #5b21b6;
}

.partner-logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.partner-logo-img.pci-logo-login {
  height: 52px;
}

.partner-logo-img.dbs-logo-login {
  height: 48px;
}

.partner-sub-caption {
  font-size: 0.69rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.4rem;
}

/* Dashboard Project & Partner Banner */
.dashboard-partner-banner {
  background: #ffffff;
  border: 1px solid var(--pci-border);
  border-top: 4px solid #1d4ed8;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.dashboard-project-info {
  flex: 1 1 360px;
  min-width: 0;
}

.dashboard-project-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.dashboard-partner-logos {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.dashboard-partner-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-partner-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 39, 68, 0.08);
}

.dashboard-partner-tile .partner-logo-img.pci-logo-dash {
  height: 46px;
}

.dashboard-partner-tile .partner-logo-img.dbs-logo-dash {
  height: 44px;
}

.dashboard-partner-tile .partner-role-label {
  margin-bottom: 0.35rem;
  font-size: 0.64rem;
}

.dashboard-partner-tile .partner-sub-caption {
  margin-top: 0.3rem;
  font-size: 0.68rem;
}

@media (max-width: 576px) {
  .login-card {
    padding: 1.5rem 1.25rem;
  }
  .login-partners-bar {
    flex-direction: column;
    gap: 0.65rem;
  }
  .partner-logo-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  .dashboard-partner-tile {
    flex: 1 1 140px;
    min-width: 140px;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.show {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
  }
  .sidebar-toggle-btn {
    display: inline-block;
  }
}

/* Reports & Batch Result Module */
.report-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--pci-border);
  box-shadow: 0 2px 6px rgba(15, 39, 68, 0.04);
}

.report-kpi-card {
  background: #ffffff;
  border: 1px solid var(--pci-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 2px 6px rgba(15, 39, 68, 0.03);
  height: 100%;
}

.report-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.report-kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f2744;
  line-height: 1.15;
}

.report-kpi-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.batch-photo-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.geo-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.print-only-header {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
  }
  .app-sidebar,
  .app-topbar,
  .no-print {
    display: none !important;
  }
  .app-main {
    margin-left: 0 !important;
  }
  .page-container {
    padding: 0.25rem !important;
  }
  .print-only-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #0f2744;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }
  .content-card,
  .report-kpi-card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}
