/* GovJob AutoFill Hub Stylesheet */
:root {
  --primary: #006a4e; /* Bangladesh Govt Green */
  --primary-hover: #00503b;
  --primary-light: #e6f3ef;
  --secondary: #f42a41; /* Bangladesh Red */
  --accent: #2563eb;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ================= AUTH VIEW ================= */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #004d38 0%, #006a4e 50%, #0f172a 100%);
  padding: 20px;
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #006a4e, #10b981);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
}

.auth-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.auth-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-demo-bar {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.demo-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

/* ================= APP LAYOUT ================= */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 268px;
  background: linear-gradient(180deg, #0b1324 0%, #091e1a 60%, #071714 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  color: #e2e8f0;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.14);
}

.sidebar-header {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.brand-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11px;
  color: #6ee7b7;
  font-weight: 600;
  margin-top: 2px;
}

.sidebar-menu {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.nav-item i {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(135deg, #059669 0%, #006a4e 100%);
  color: #ffffff;
  border-color: rgba(110, 231, 183, 0.25);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}

.role-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  width: fit-content;
  margin-top: 2px;
}

.role-admin {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.role-employee {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 15px;
  cursor: pointer;
  padding: 7px 9px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-logout:hover {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
}

.sidebar-credit {
  padding: 9px 16px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
}

.sidebar-credit strong {
  color: #34d399;
}

/* ================= MAIN BODY ================= */
.main-body {
  margin-left: 268px;
  flex: 1;
  padding: 28px 36px;
  max-width: 1420px;
}

/* ================= PREMIUM DASHBOARD ================= */
.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 55%, #1e293b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 14px 32px -8px rgba(6, 78, 59, 0.35);
}

.dash-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.dash-hero-left {
  position: relative;
  z-index: 1;
}

.dash-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.75); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.dash-hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 6px;
}

.dash-hero p {
  font-size: 13.5px;
  color: #cbd5e1;
  max-width: 640px;
}

.dash-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-hero-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.45);
}

.btn-hero-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.content-view {
  display: none;
}

.content-view.active {
  display: block;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.view-header h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.view-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card.card-teal::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.stat-card.card-green::before { background: linear-gradient(90deg, #059669, #34d399); }
.stat-card.card-orange::before { background: linear-gradient(90deg, #ea580c, #fb923c); }
.stat-card.card-purple::before { background: linear-gradient(90deg, #7c3aed, #c084fc); }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.stat-blue { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1; }
.stat-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.stat-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #c2410c; }
.stat-purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7e22ce; }

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Panels */
.dashboard-panels-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.panel-premium {
  box-shadow: var(--shadow-md);
}

.panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.panel-header h2 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.panel-icon-badge.badge-indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.panel-icon-badge.badge-emerald {
  background: #ecfdf5;
  color: #059669;
}

.panel-subtitle {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tracker-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.tracker-submitted {
  background: #dcfce7;
  color: #15803d;
}

.tracker-autofill {
  background: #e0f2fe;
  color: #0369a1;
}

.panel-body {
  padding: 20px 22px;
}

.panel-body-flush {
  padding: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* System Readiness & Extension Card */
.readiness-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.readiness-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.readiness-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.fill-emerald { background: linear-gradient(90deg, #10b981, #059669); }
.fill-blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }

.api-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.status-pill-active {
  background: #dcfce7;
  color: #15803d;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.extension-connect-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 15px;
}

.ext-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.extension-connect-card p {
  font-size: 12px;
  color: #475569;
  margin-bottom: 10px;
}

.ext-url-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px 6px 12px;
}

.ext-url-bar code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.applicant-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
}

.chip-photo { background: #dcfce7; color: #166534; }
.chip-sign { background: #e0f2fe; color: #0369a1; }
.chip-none { background: #f1f5f9; color: #64748b; }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-panels-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  background: #ffffff;
  color: var(--text-main);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 { flex: 1; }

.section-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin: 16px 0 10px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: #f1f5f9;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.data-table tr:hover td {
  background: #fcfdfe;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  width: 340px;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
}

/* PDF Drop Zone */
.drop-zone {
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: #fafcfb;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.drop-zone:hover {
  background: var(--primary-light);
}

.drop-icon {
  font-size: 42px;
  color: var(--primary);
}

.drop-text strong {
  display: block;
  font-size: 15px;
}

.drop-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Status / Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 14px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Spinner */
.spinner {
  border: 3px solid rgba(0, 106, 78, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.parse-status-box {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-large {
  max-width: 820px;
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 { font-size: 18px; font-weight: 700; }

.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Media Strict Upload Tool */
.customer-modal-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.modal-tab-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
}

.media-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.media-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.media-card h3 { font-size: 14px; margin-bottom: 2px; }
.media-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }

.image-preview-container {
  background: #e2e8f0;
  border: 2px dashed #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.photo-box {
  width: 150px;
  height: 150px; /* scaled view of 300x300 */
}

.sign-box {
  width: 220px;
  height: 60px; /* scaled view of 300x80 */
}

.image-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dimension-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

.dimension-status.valid {
  color: #16a34a;
}

.dimension-status.invalid {
  color: #dc2626;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: none;
  z-index: 2000;
}

.code-pill {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

.copy-key-bar {
  display: flex;
  gap: 8px;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
