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

:root {
  --primary: #1e40af;
  --primary-hover: #1e3a8a;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --secondary: #4f46e5;
  --accent: #0284c7;
  
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-darker: #cbd5e1;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dark: #1e293b;
  
  --success: #16a34a;
  --success-bg: #dcfce7;
  --success-text: #15803d;
  
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --warning-text: #b45309;
  
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --danger-text: #b91c1c;

  --radius: 10px;
  --transition: all 0.2s ease-in-out;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Admin Portal Body: Fixed screen height without outer window scrollbar */
body.admin-portal-body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Candidate Application Form Page: Smooth vertical page scrolling */
body.candidate-portal-body {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
}

/* ---------------------------------------------------- */
/* Enterprise App Shell Layout                          */
/* ---------------------------------------------------- */

/* ---------------------------------------------------- */
/* Enterprise Executive Admin Portal System             */
/* ---------------------------------------------------- */

/* ---------------------------------------------------- */
/* Enterprise Executive Admin Portal System             */
/* ---------------------------------------------------- */

/* Top Navbar - Clean White Header Bar */
.app-header {
  width: 100%;
  height: 92px;
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-brand img,
.portal-logo-sm {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  background: #2563eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.05rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-tag {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #dbeafe;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #eef2f6;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1e3a8a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* App Main Container (Sidebar + Content) */
.app-container {
  display: flex;
  flex: 1;
  width: 100%;
  height: calc(100vh - 92px);
  overflow: hidden;
}

/* Sidebar Navigation Rail - Light Clean Slate */
.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #eef2f6;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow-y: auto;
}

.sidebar-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.6px;
  margin-bottom: 0.65rem;
  padding-left: 0.6rem;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav-item {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  font-family: inherit;
}

.sidebar-nav-item * {
  pointer-events: none;
}

.sidebar-nav-item:hover {
  background: #f8fafc;
  color: #1e293b;
}

.sidebar-nav-item.active {
  background: #edf5ff;
  color: #2563eb;
  font-weight: 700;
}

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

.sidebar-count-badge {
  background: #f1f5f9;
  color: #64748b;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-nav-item.active .sidebar-count-badge {
  background: #1e3a8a;
  color: #ffffff;
}

/* Sidebar Footer Box */
.sidebar-footer-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

/* Main Content Area - Light Slate Canvas */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  background: #f4f6fa;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: hidden;
}

/* Dashboard Metric Overview Cards */
.stats-overview-grid {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.stat-info-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.2rem;
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Admin Tab Panels Visibility Control */
.admin-tab-panel {
  display: none !important;
}

.admin-tab-panel.active {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card Section Panel */
.panel-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#adminTabGenerate .panel-card,
#adminTabAccess .panel-card,
#adminTabSmtp .panel-card {
  overflow-y: auto;
}

.panel-card-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.panel-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Admin Portal Form Controls & Inputs */
.app-container .form-group label,
.panel-card .form-group label,
#loginView .form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0.4rem;
  display: block;
}

.app-container input[type="text"],
.app-container input[type="password"],
.app-container input[type="datetime-local"],
.app-container select,
.panel-card input,
.panel-card select,
#loginView input {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  width: 100%;
  transition: all 0.2s ease;
}

.app-container input:focus,
.app-container select:focus,
.panel-card input:focus,
.panel-card select:focus,
#loginView input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------- */
/* Candidate Portal Layout                              */
/* ---------------------------------------------------- */

/* Candidate Portal Executive UI Layout */
.candidate-portal-body {
  background-color: #f8fafc;
}

.compact-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.25rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.portal-logo-sm {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-title-compact {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand-title-compact small {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.85rem;
}

.access-window-pill-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.container.candidate-portal-container {
  max-width: 680px;
  margin: 0.75rem auto 2rem auto;
  padding: 0 1rem;
  width: 100%;
}

/* Card 1: Stepper Progress Card */
.card.stepper-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  padding: 0.85rem 0.75rem 0 0.75rem;
  margin-bottom: 1rem;
  position: relative;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  gap: 0.35rem;
  padding: 0 0.25rem;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding-bottom: 0.65rem;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #6b7280;
  transition: all 0.25s ease;
}

.step-item.active .step-number {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.step-item.completed .step-number {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.25;
}

.step-item.active .step-label {
  color: #1d4ed8;
  font-weight: 700;
}

.step-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #1d4ed8;
  border-radius: 3px 3px 0 0;
}

/* Card 2: Main Form Card */
.card.main-form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}

.step-header-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.step-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.step-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.1rem;
}

.step-header-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Form Controls & Inputs */
.form-grid-single {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group.full-width {
  width: 100%;
  margin-bottom: 1rem;
}

.candidate-portal-body label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  display: block;
}

.required {
  color: #ef4444;
  margin-left: 2px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.7rem 2.6rem 0.7rem 0.95rem;
  color: #0f172a;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}

.input-wrapper .input-icon {
  position: absolute;
  right: 1.1rem;
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
}

/* Form Step Footer Bar */
.form-step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.security-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
  flex-shrink: 0;
}

.security-icon {
  font-size: 1.35rem;
  color: #2563eb;
}

.footer-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-continue {
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  transition: all 0.2s ease;
}

.btn-continue:hover {
  background: #1e40af;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
  transform: translateY(-1px);
}

/* Card 3: Step Progress Footer Card */
.card.step-progress-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  padding: 1.1rem 1.5rem;
  margin-bottom: 2rem;
}

.progress-info-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: #334155;
}

.progress-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.progress-subtitle {
  color: #64748b;
  font-weight: 500;
}

/* Family Member Mini-Cards Layout */
.family-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.family-member-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  transition: all 0.2s ease;
}

.family-member-card.collapsed {
  padding-bottom: 0.9rem;
}

.family-member-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.family-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.family-member-card.collapsed .family-card-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-chevron-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-chevron-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-card-remove {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #e11d48;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  font-size: 0.8rem;
}

.btn-card-remove:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

.chevron-icon {
  transition: transform 0.25s ease;
  font-size: 0.8rem;
}

.family-member-card.collapsed .chevron-icon {
  transform: rotate(0deg);
}

.family-member-card:not(.collapsed) .chevron-icon {
  transform: rotate(180deg);
}

.family-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.family-rel-select {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  outline: none;
}

.family-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 540px) {
  .family-card-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

.family-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.family-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0;
}

.family-field input {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  color: #0f172a;
  outline: none;
  width: 100%;
}

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

.lang-card-item {
  padding: 0.75rem 1rem;
}

.lang-card-header {
  font-size: 0.92rem;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.lang-checks-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  flex-wrap: nowrap;
}

.lang-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.lang-check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
}

/* Executive Add Card Buttons */
.btn-add-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  color: #2563eb;
  border: 1.5px dashed #3b82f6;
  border-radius: 10px;
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.05);
  margin-top: 0.85rem;
}

.btn-add-card:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.btn-add-card:active {
  transform: translateY(0);
}

.btn-add-card i {
  font-size: 0.8rem;
  background: #dbeafe;
  color: #2563eb;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-add-card:hover i {
  background: #2563eb;
  color: #ffffff;
}

/* Executive General Button Suite */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 1.35rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.btn-danger:hover {
  background: #fecaca;
  color: #b91c1c;
  border-color: #ef4444;
}

/* Action Square Buttons matching screenshot */
.btn-action-square {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-action-square:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
  transform: translateY(-1px);
}

.btn-action-trash {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}

.btn-action-trash:hover {
  background: #fecaca;
  border-color: #ef4444;
  color: #b91c1c;
  transform: translateY(-1px);
}

/* Signed & Verified Badge matching screenshot */
.badge-signed-verified {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-weight: 700;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* Primary Action: View Application */
.btn-view-app {
  width: 150px;
  height: 36px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.83rem;
  border-radius: 20px;
  padding: 0;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.25);
  white-space: nowrap;
}

.btn-view-app:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  box-shadow: 0 5px 14px rgba(29, 78, 216, 0.35);
  transform: translateY(-1px);
}

/* Mark Checked Button (Outlined Executive Green Pill) */
.btn-check-app {
  width: 150px;
  height: 36px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #ffffff;
  color: #10b981;
  border: 1.5px solid #10b981;
  font-weight: 700;
  font-size: 0.83rem;
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.05);
}

.btn-check-app:hover {
  background: #d1fae5;
  border-color: #059669;
  color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

/* View CV PDF Button */
.btn-view-cv {
  width: 140px;
  height: 36px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #ffffff;
  color: #dc2626;
  border: 1.5px solid #dc2626;
  font-weight: 700;
  font-size: 0.83rem;
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.05);
}

.btn-view-cv:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #b91c1c;
  color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15);
}

.btn-cv-disabled {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Corporate Executive Table Footer Bar System */
.table-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  border-radius: 0 0 14px 14px;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.table-footer-info {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.table-footer-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.table-footer-controls select {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  color: #1e293b;
  outline: none;
  font-weight: 600;
  cursor: pointer;
}

.table-footer-controls select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Checked Done Badge (Filled Solid Soft Green Pill) */
.btn-checked-done {
  width: 150px;
  height: 36px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  font-size: 0.83rem;
  border-radius: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  opacity: 0.95;
  cursor: default;
}

/* Admin Dashboard Data Table Styles */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  flex: 1;
  min-height: 0;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.table-container th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.table-container td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  vertical-align: middle;
}

.table-container tr:last-child td {
  border-bottom: none;
}

.table-container tr:hover td {
  background: rgba(248, 250, 252, 0.8);
}

@media (max-width: 640px) {
  .compact-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .container.candidate-portal-container {
    padding: 0 0.5rem;
    margin: 0.5rem auto 1.5rem auto;
  }

  .card.main-form-card {
    padding: 1.15rem 1rem;
    border-radius: 12px;
  }

  .form-step-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .security-info {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .footer-buttons {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    box-sizing: border-box;
  }

  .footer-buttons .btn {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Digital Signature Canvas Box */
.signature-box {
  background: var(--bg-surface);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  position: relative;
}

canvas.sig-canvas {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: crosshair;
  touch-action: none;
}

.sig-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

/* Terms Cards */
.terms-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.15rem;
  margin-bottom: 0.85rem;
}

.terms-header {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-content {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 1.15rem;
  border-radius: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  cursor: pointer;
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Expiration Screen */
.expired-card {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 3rem auto;
}

.expired-icon {
  font-size: 3.5rem;
  color: var(--danger);
  margin-bottom: 1.25rem;
}

.expired-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--danger-text);
}

.expired-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Modal Overlay & Viewer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 100;
}

.close-modal:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}

/* Executive Print & PDF Export Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  .app-header,
  .app-sidebar,
  .no-print,
  .close-modal,
  .table-footer-bar {
    display: none !important;
  }

  .modal-overlay {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .modal-content {
    max-width: 100% !important;
    max-height: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .detail-section-panel {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
  }

  .detail-sidebar {
    display: none !important;
  }

  .table-container {
    border: 1px solid #cbd5e1 !important;
    overflow: visible !important;
  }

  .table-container table {
    width: 100% !important;
  }
}

.detail-modal-layout {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: flex-start;
}

.detail-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem;
  position: sticky;
  top: 0;
}

.detail-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.2rem;
}

.detail-sidebar-item:hover {
  background: var(--bg-surface);
  color: var(--primary);
}

.detail-sidebar-item.active {
  background: var(--bg-surface);
  color: var(--primary);
  font-weight: 700;
  border-left: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.detail-main-content {
  flex: 1;
  min-width: 0;
}

.detail-section-panel {
  display: none;
}

.detail-section-panel.active {
  display: block;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.15rem;
  border-bottom: 2px solid var(--bg-subtle);
  padding-bottom: 0.4rem;
}

  /* Print Styles */
  @media print {
    body {
      background: white !important;
      color: black !important;
    }
    
    .app-container {
      display: none !important;
    }
    
    .app-header, .btn, .user-profile-badge, .close-modal, .app-sidebar, .detail-sidebar, .no-print {
      display: none !important;
    }
    .panel-card, .modal-content, .app-main, .detail-main-content {
      border: none !important;
      box-shadow: none !important;
      background: white !important;
      color: black !important;
      padding: 0 !important;
      margin: 0 !important;
      width: 100% !important;
    }
    .detail-modal-layout {
      display: block !important;
    }
    .admin-tab-panel, .detail-section-panel {
      display: block !important;
    }
    th {
      background: #f1f5f9 !important;
      color: black !important;
    }
    td, th {
      border-color: #cbd5e1 !important;
      color: black !important;
    }
    
    #submissionModal {
      position: static !important;
      width: 100% !important;
      height: auto !important;
      background: #ffffff !important;
      box-shadow: none !important;
      overflow: visible !important;
      padding: 0 !important;
      margin: 0 !important;
      display: block !important;
      opacity: 1 !important;
    }
  }

/* ---------------------------------------------------- */
/* Responsive Media Queries (Mobile & Tablet Devices)   */
/* ---------------------------------------------------- */

@media (max-width: 992px) {
  .app-container {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .app-sidebar {
    width: 100%;
    height: auto;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .sidebar-item {
    flex: 1 1 auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    justify-content: center;
  }

  .app-main {
    padding: 1rem;
    overflow: visible;
    height: auto;
  }

  .detail-modal-layout {
    flex-direction: column;
  }

  .detail-sidebar {
    width: 100%;
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .detail-sidebar-item {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .app-header,
  .navbar {
    padding: 0 0.85rem;
    height: 56px;
  }

  .header-brand img,
  .brand img {
    height: 32px !important;
  }

  .brand-text,
  .brand span {
    font-size: 0.92rem;
  }

  .brand-tag {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
  }

  .container,
  .candidate-container {
    padding: 0 0.75rem;
    margin: 1rem auto;
  }

  .card {
    padding: 1.25rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .wizard-steps {
    margin-bottom: 1.75rem;
    gap: 0.35rem;
    padding: 0;
  }

  .wizard-steps::before {
    top: 18px;
    left: 20px;
    right: 20px;
    height: 2px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    border-width: 2px;
  }

  .step-label {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .panel-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .table-footer-bar {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .table-footer-controls {
    width: 100%;
    justify-content: space-between;
  }

  .stats-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 0.85rem 1rem;
  }

  .stat-info-val {
    font-size: 1.3rem;
  }

  .stat-icon-wrapper {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-buttons {
    flex-direction: column-reverse;
    width: 100%;
    gap: 0.5rem;
  }

  .footer-buttons .btn {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .stats-overview-grid {
    grid-template-columns: 1fr;
  }

  .step-label {
    font-size: 0.68rem;
  }

  .wizard-steps {
    gap: 0.2rem;
  }
}

/* ==================================================== */
/* Corporate Application Document & Print Stylesheet    */
/* ==================================================== */

.corp-doc-container {
  background: #ffffff;
  color: #0f172a;
  padding: 1.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.corp-header-banner {
  border-bottom: 2.5px solid #1e40af;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.corp-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.corp-header-left img {
  height: 74px;
  width: auto;
  object-fit: contain;
}

.corp-company-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e40af;
  letter-spacing: -0.2px;
  margin-bottom: 0.15rem;
}

.corp-company-sub {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.35;
}

.corp-doc-title-badge {
  text-align: right;
}

.corp-doc-title-badge .title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.corp-doc-title-badge .subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.corp-section-block {
  margin-bottom: 1.25rem;
  page-break-inside: avoid;
}

.corp-section-header {
  background: #f1f5f9;
  border-left: 4px solid #1e40af;
  padding: 0.45rem 0.75rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.65rem;
}

.corp-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.25rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.85rem 1rem;
  border-radius: 6px;
}

.corp-info-item {
  display: flex;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.corp-info-item .label {
  font-weight: 700;
  color: #334155;
  min-width: 140px;
}

.corp-info-item .value {
  color: #0f172a;
  font-weight: 600;
}

.corp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.corp-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
}

.corp-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #submissionModal,
  #submissionModal * {
    visibility: visible !important;
  }

  #submissionModal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    opacity: 1 !important;
  }

  .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .no-print,
  .close-modal,
  .detail-sidebar,
  .btn,
  .app-header,
  .app-sidebar,
  .main-content {
    display: none !important;
  }

  .detail-section-panel {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    page-break-inside: avoid;
  }

  .corp-section-block {
    page-break-inside: avoid;
  }

  .page-break-cv {
    page-break-before: always !important;
    break-before: page !important;
  }
}
