/* ============================================================================
 * 1nHR Job Portal — Production Enterprise SaaS Design System & Stylesheet
 * Primary Reference: https://talent-flow-one.base44.app/
 * Brand Palette: Deep Navy (#001830 / #001F3F), Vibrant Orange (#FF6600), Electric Blue (#0066CC / #0074D9)
 * Typography: Poppins (headings), Inter (body)
 * ============================================================================ */

:root {
  --brand-navy: #001F3F;
  --brand-navy-dark: #001830;
  --brand-navy-light: #0A2E5C;
  --brand-orange: #FF6600;
  --brand-orange-hover: #E65A00;
  --brand-blue: #0066CC;
  --brand-blue-light: #EBF5FF;
  --surface-bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #64748B;
}

html {
  scroll-padding-top: 84px;
}

*, *::before, *::after {
  box-sizing: border-box;
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--surface-bg);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-top: 0;
  letter-spacing: -0.02em;
  color: #001F3F;
}

/* Brand & Surface Helpers */
.bg-navy { background-color: #001F3F; color: #FFFFFF; }
.bg-navy-light { background-color: #0A2E5C; color: #FFFFFF; }
.bg-orange { background-color: #FF6600; color: #001F3F; }
.bg-orange:hover { background-color: #E65A00; }
.bg-blue { background-color: #0066CC; color: #FFFFFF; }
.bg-blue:hover { background-color: #0052A3; }
.text-navy { color: #001F3F; }
.text-orange { color: #C2410C; }
.text-blue { color: #0066CC; }
.border-navy { border-color: #001F3F; }
.border-orange { border-color: #FF6600; }
.border-blue { border-color: #0066CC; }

/* App Shell & Authenticated Sidebar + Workspace Layout */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #F8FAFC;
}

.portal-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: #F8FAFC;
}

.portal-sidebar {
  width: 260px;
  flex-shrink: 0;
  background-color: #001830;
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #0B2545;
  z-index: 45;
}

.sidebar-brand-bar {
  height: 62px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-portal-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748B;
  padding: 1.15rem 1.25rem 0.5rem;
  text-transform: uppercase;
}

.sidebar-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 1.25rem;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
}
.sidebar-group-header:hover {
  color: #FFFFFF;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: calc(100% - 1.5rem);
  margin: 0.18rem 0.75rem;
  padding: 0.62rem 0.9rem;
  border-radius: 0.55rem;
  border: none;
  background: transparent;
  color: #CBD5E1;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidebar-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}
.sidebar-nav-item.active {
  background-color: #FF6600;
  color: #001F3F;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #001226;
}

.portal-workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #F8FAFC;
}

.portal-topbar {
  height: 62px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 35;
}

/* Public Top Navbar */
.top-navbar {
  background-color: #FFFFFF;
  color: #001F3F;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 40;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.main-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 1.85rem 2.25rem;
  flex: 1;
}

/* Page Headings matching Reference */
.page-header-title,
.portal-page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #001F3F;
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.025em;
}
.page-header-subtitle,
.portal-page-subtitle {
  font-size: 0.92rem;
  color: #64748B;
  margin: 0 0 1.25rem 0;
}

.action-banner-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}
.action-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-banner-icon.orange {
  background-color: #FF6600;
  color: #001F3F;
}
.action-banner-icon.blue {
  background-color: #0066CC;
  color: #FFFFFF;
}
.action-banner-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #001F3F;
  margin-bottom: 0.15rem;
}
.action-banner-desc {
  font-size: 0.8rem;
  color: #64748B;
}
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #001F3F;
  margin: 0;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: #C2410C;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
}
.section-link:hover {
  background-color: #FFF3E8;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.38rem 0.68rem;
  border-radius: 0.45rem;
  border: 1px solid #CBD5E1;
  background-color: #FFFFFF;
  color: #001F3F;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* Action Callout Banners (matching image_d44c2b.png & image_d44d24.png) */
.action-banner-orange {
  background-color: #FFF9F5;
  border: 1px solid #FED7AA;
  border-radius: 0.85rem;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.action-banner-blue {
  background-color: #F2F8FF;
  border: 1px solid #BFDBFE;
  border-radius: 0.85rem;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.action-banner-icon-orange {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background-color: #FF6600;
  color: #001F3F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-banner-icon-blue {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background-color: #0066CC;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  justify-content: center;
  flex-shrink: 0;
}

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.95rem; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-5 > *, .grid-6 > * { min-width: 0; }

@media (max-width: 1200px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .portal-shell { flex-direction: column; }
  .mobile-menu-btn { display: inline-flex; }
  .portal-sidebar {
    display: none;
    width: 100%;
    height: auto;
    max-height: 80vh;
    position: relative;
  }
  .portal-sidebar.mobile-open {
    display: flex;
  }
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-container { padding: 1.25rem; }
  .portal-topbar { padding: 0 1rem; height: auto; min-height: 58px; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
  .main-container { padding: 1rem; }
  .top-navbar { padding: 0.75rem 1rem; }
}

/* Cards */
.card {
  min-width: 0;
  overflow-wrap: anywhere;
  background: #FFFFFF;
  border: 1px solid #E8EEF5;
  border-radius: 0.9rem;
  padding: 1.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02), 0 1px 2px rgba(15, 23, 42, 0.02);
}

.card-hover {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  border-color: #CBD5E1;
}

/* Reference-Matching Pastel Icon Stat Cards (image_d44c2b.png, image_d44ca6.png, image_d44d24.png) */
.stat-card {
  background: #FFFFFF;
  border: 1px solid #E8EEF5;
  border-radius: 0.9rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}
button.stat-card:focus-visible {
  outline: 3px solid #0074D9;
  outline-offset: 3px;
}

.stat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.stat-icon-box.pastel-orange { background-color: #FFF3E8; color: #FF6600; }
.stat-icon-box.pastel-blue { background-color: #EBF5FF; color: #0066CC; }
.stat-icon-box.pastel-emerald { background-color: #E8FBF0; color: #10B981; }
.stat-icon-box.pastel-purple { background-color: #F3E8FF; color: #9333EA; }
.stat-icon-box.pastel-amber { background-color: #FEF3C7; color: #D97706; }
.stat-icon-box.pastel-navy { background-color: #F1F5F9; color: #001F3F; }

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748B;
}

/* Auth Screens (matching image_d445bc.png & image_d44923.png) */
.auth-screen-wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background-color: #FAFCFF;
}

.auth-card {
  background: #FFFFFF;
  border: 1px solid #EDF2F7;
  border-radius: 1.1rem;
  padding: 2rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
  width: 100%;
  max-width: 480px;
}
.auth-screen-wrapper > .portal-tabs {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.role-select-card {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 0.85rem;
  background-color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 0.75rem;
}
.role-select-card:hover:not(.disabled) {
  border-color: #FF6600;
  background-color: #FFFDFB;
}
.role-select-card.selected {
  border-color: #FF6600;
  background-color: #FFF9F5;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}
.role-select-card.disabled {
  border-style: dashed;
  border-color: #CBD5E1;
  background-color: #F8FAFC;
  cursor: not-allowed;
  opacity: 0.82;
}
.role-select-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.65rem;
  background-color: #F1F5F9;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.role-select-card.selected .role-select-icon {
  background-color: #FF6600;
  color: #001F3F;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 1.25rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #E2E8F0;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon-left {
  position: absolute;
  left: 0.85rem;
  color: #94A3B8;
  display: inline-flex;
  pointer-events: none;
}
.input-with-icon {
  padding-left: 2.55rem !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.58rem 1.1rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background-color: #FF6600;
  color: #001F3F;
}
.btn-primary:hover:not(:disabled) {
  background-color: #E65A00;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
}
.btn-navy {
  background-color: #001F3F;
  color: #FFFFFF;
}
.btn-navy:hover:not(:disabled) {
  background-color: #0A2E5C;
}
.btn-blue {
  background-color: #0066CC;
  color: #FFFFFF;
}
.btn-blue:hover:not(:disabled) {
  background-color: #0052A3;
}
.btn-outline {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}
.btn-outline:hover:not(:disabled) {
  background-color: #F8FAFC;
  border-color: #94A3B8;
}
.btn-success {
  background-color: #10B981;
  color: #FFFFFF;
}
.btn-success:hover:not(:disabled) {
  background-color: #059669;
}
.btn-danger {
  background-color: #EF4444;
  color: #FFFFFF;
}
.btn-danger:hover:not(:disabled) {
  background-color: #DC2626;
}
.btn-sm {
  padding: 0.38rem 0.78rem;
  font-size: 0.78rem;
  border-radius: 0.45rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-success { background-color: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.badge-warning { background-color: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-danger { background-color: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.badge-info { background-color: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }
.badge-navy { background-color: #001F3F; color: #FFFFFF; }
.badge-orange { background-color: #FFF7ED; color: #C2410C; border: 1px solid #FDBA74; }
.badge-neutral { background-color: #F1F5F9; color: #334155; border: 1px solid #E2E8F0; }

/* Sub-Navigation Pill Bar */
.portal-tabs {
  display: flex;
  gap: 0.35rem;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  padding: 0.32rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.portal-tab {
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  font-size: 0.81rem;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.portal-tab:hover {
  color: #001F3F;
  background-color: #F1F5F9;
}
.portal-tab.active {
  color: #001F3F;
  background-color: #FF6600;
  box-shadow: 0 2px 6px rgba(255, 102, 0, 0.25);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 0.95rem;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 0.35rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.6rem 0.82rem;
  border: 1px solid #CBD5E1;
  border-radius: 0.55rem;
  font-size: 0.87rem;
  font-family: inherit;
  color: #0F172A;
  background-color: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #FF6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.14);
}
.form-error {
  color: #DC2626;
  font-size: 0.76rem;
  margin-top: 0.25rem;
}

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #E2E8F0;
  background-color: #FFFFFF;
}
.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.data-table th {
  text-align: left;
  padding: 0.78rem 1rem;
  background-color: #F8FAFC;
  color: #475569;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}
.data-table td {
  padding: 0.82rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.data-table .badge, .data-table .btn { white-space: nowrap; }
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background-color: #F8FAFC;
}

/* Pipeline Stepper */
.pipeline-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.pipeline-step {
  padding: 0.22rem 0.58rem;
  border-radius: 0.38rem;
  font-size: 0.69rem;
  font-weight: 600;
  background-color: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}
.pipeline-step.completed {
  background-color: #DBEAFE;
  color: #1E40AF;
  border-color: #BFDBFE;
}
.pipeline-step.current {
  background-color: #FF6600;
  color: #001F3F;
  border-color: #EA580C;
  box-shadow: 0 2px 6px rgba(255, 102, 0, 0.25);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1rem;
}
.modal-panel {
  background: #FFFFFF;
  border-radius: 1rem;
  max-width: 740px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.65rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  border: 1px solid #E2E8F0;
}

/* Toast Notification Stack */
.toast-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  pointer-events: none;
}
.toast-item {
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
  border: 1px solid #E2E8F0;
  background-color: #001F3F;
  color: #FFFFFF;
}
.toast-item.success {
  background-color: #065F46;
  border-color: #10B981;
}
.toast-item.error {
  background-color: #991B1B;
  border-color: #F87171;
}

/* Flex & Spacing Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: #64748B; }
.w-full { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================================
 * Premium Public Pages Design System (Reference: https://talent-flow-one.base44.app/)
 * ============================================================================ */

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.public-nav-link {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.48rem 0.82rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.public-nav-link:hover {
  color: #001F3F;
  background-color: #F1F5F9;
}
.public-nav-link.active {
  color: #C2410C;
  background-color: #FFF7ED;
}

.public-hero-section {
  background: radial-gradient(circle at 85% 20%, rgba(255, 102, 0, 0.08) 0%, rgba(0, 102, 204, 0.05) 45%, #FFFFFF 100%);
  border-bottom: 1px solid #E8EEF5;
  padding: 3.5rem 2rem 3rem;
}

.public-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: #FFF3E8;
  border: 1px solid #FED7AA;
  color: #C2410C;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: #FF6600;
  display: inline-block;
}

.hero-display-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.12;
  color: #0F172A;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem 0;
}

.hero-display-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 1.75rem 0;
  max-width: 580px;
}

.hero-widget-stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  position: relative;
}

.hero-floating-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease;
}
.hero-floating-card:hover {
  transform: translateY(-2px);
}

.public-search-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  max-width: 1280px;
  margin: -1.65rem auto 2rem;
  position: relative;
  z-index: 10;
}

.popular-tag-chip {
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.68rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.popular-tag-chip:hover {
  background-color: #FFF3E8;
  border-color: #FDBA74;
  color: #C2410C;
}

.dark-section {
  background: linear-gradient(180deg, #071326 0%, #0F1E36 100%);
  color: #FFFFFF;
  border-radius: 1.35rem;
  padding: 3rem 2.25rem;
  margin: 2.5rem 0;
}

.dark-feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.4rem;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.dark-feature-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 102, 0, 0.5);
}

.workflow-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
}

.workflow-node {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.65rem;
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-size: 0.79rem;
  font-weight: 700;
}
.workflow-node.highlight {
  background-color: #FFF7ED;
  border-color: #FDBA74;
  color: #C2410C;
}

.journey-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.public-footer {
  background-color: #081221;
  color: #CBD5E1;
  padding: 3.5rem 2rem 1.75rem;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.public-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.public-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.95rem;
}

.footer-link-btn {
  display: block;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.83rem;
  padding: 0.3rem 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}
.footer-link-btn:hover {
  color: #FF6600;
}

@media (max-width: 960px) {
  .public-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-display-title {
    font-size: 2.25rem;
  }
  .job-detail-grid {
    grid-template-columns: 1fr;
  }
  .public-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .public-hero-section {
    padding: 2rem 1rem;
  }
  .hero-display-title {
    font-size: 1.85rem;
  }
  .public-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Readable brand actions and explicit keyboard focus on each surface. */
button:focus-visible, a:focus-visible, summary:focus-visible,
.table-wrapper:focus-visible,
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible {
  outline: 3px solid #0066CC;
  outline-offset: 3px;
}
.portal-sidebar button:focus-visible, .public-footer button:focus-visible {
  outline-color: #FFFFFF;
}

/* Job titles retain their heading hierarchy and native keyboard activation. */
.job-title-action {
  background: transparent; border: 0; padding: 0; color: inherit; font: inherit;
  text-align: left; cursor: pointer; max-width: 100%; overflow-wrap: anywhere;
}
