/* TALENTA PT. BPR Artha Huda Abadi (Tata kelola Administrasi, Layanan, Evaluasi, dan Nilai kinerja Terpadu AHA) */
:root {
  --primary: #0f2942;
  --primary-light: #18385a;
  --primary-dark: #0a192f;
  --accent: #059669;
  --accent-light: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.12);
  --info: #0284c7;
  --info-soft: rgba(2, 132, 199, 0.12);
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f2942;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.03);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* App Container Layout */
#app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar - Deep Pine / Rich Emerald Gradient */
.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #024731 0%, #064E3B 55%, #013524 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.brand-section {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  overflow: hidden;
}

.brand-sub-badge {
  font-size: 10px;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.8px;
  margin-bottom: 1px;
}

.brand-text h1 {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
  line-height: 1.15;
  margin: 0 0 2px 0;
}

.brand-text p {
  font-size: 9.5px;
  color: #6ee7b7;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0;
}

/* User Quick Profile */
.user-quick-profile {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.user-meta {
  overflow: hidden;
  flex: 1;
}

.user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.user-role-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 4px;
  background: #047857;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.online-indicator {
  font-size: 11px;
  color: #a7f3d0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
}

/* Navigation Menu */
.nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #6ee7b7;
  padding: 14px 10px 4px;
  opacity: 0.85;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}

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

.nav-item.active {
  background: rgba(16, 185, 129, 0.22);
  color: #ffffff;
  font-weight: 600;
}

.nav-item.active::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  margin-left: auto;
  box-shadow: 0 0 8px #34d399;
}

.nav-svg-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  transition: color 0.15s;
}

.nav-item:hover .nav-svg-icon,
.nav-item.active .nav-svg-icon {
  color: #ffffff;
}

.nav-counter-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: #10b981;
  color: #033529;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-logout {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Main Content Area */
.main-wrapper {
  margin-left: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f8fafc;
}

/* Top Navbar */
.topbar {
  background: #ffffff;
  height: 64px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-brand {
  font-size: 15px;
  font-weight: 800;
  color: #0f2942;
  letter-spacing: 0.5px;
}

.topbar-sep {
  color: #cbd5e1;
  font-weight: 500;
}

.topbar-bank {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
}

.topbar-center {
  display: flex;
  align-items: center;
}

.topbar-office-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-green-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.simulasi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.role-switcher-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 2px 10px 2px 28px;
  transition: border-color 0.15s;
}

.role-switcher-wrapper:hover {
  border-color: #94a3b8;
}

.role-icon-lock {
  position: absolute;
  left: 10px;
  color: #64748b;
  pointer-events: none;
}

.role-switcher-select {
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  padding: 5px 4px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.topbar-btn-bell {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.topbar-btn-bell:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.bell-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  position: absolute;
  top: 7px;
  right: 8px;
  border: 1.5px solid #ffffff;
}

/* Content Container */
.content-area {
  padding: 28px 32px;
  flex: 1;
}

/* ========================================================
   DASHBOARD SPECIFIC STYLES (MATCHING REFERENCE MOCKUP)
   ======================================================== */
.dash-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.dash-card-metric {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  position: relative;
}

.dash-card-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.dash-card-metric.accent-emerald { border-top: 3.5px solid #10b981; }
.dash-card-metric.accent-cyan    { border-top: 3.5px solid #0ea5e9; }
.dash-card-metric.accent-amber   { border-top: 3.5px solid #f59e0b; }
.dash-card-metric.accent-orange  { border-top: 3.5px solid #ea580c; }

.dash-metric-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.dash-metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.dash-metric-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-metric-icon-box.emerald { background: #ecfdf5; color: #059669; }
.dash-metric-icon-box.cyan    { background: #f0f9ff; color: #0284c7; }
.dash-metric-icon-box.amber   { background: #fffbeb; color: #d97706; }
.dash-metric-icon-box.orange  { background: #fff7ed; color: #ea580c; }

.dash-stat-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
}

.dash-stat-val strong {
  font-size: 26px;
  font-weight: 800;
  color: #0f2942;
  line-height: 1;
}

.dash-stat-unit {
  font-size: 12.5px;
  font-weight: 600;
}

.dash-stat-unit.green  { color: #059669; }
.dash-stat-unit.blue   { color: #0284c7; }
.dash-stat-unit.orange { color: #d97706; }

.dash-metric-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

/* Workflow Alert Banner */
.dash-workflow-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  padding: 14px 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.05);
}

.dash-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-banner-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2563eb;
}

.dash-banner-text {
  font-size: 13px;
  color: #1e3a8a;
  font-weight: 500;
}

.dash-banner-text strong {
  font-weight: 700;
}

.dash-banner-btn {
  background: #0f2942;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}

.dash-banner-btn:hover {
  background: #0a192f;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 41, 66, 0.2);
}

/* Dashboard Bottom 2-Column Grid */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
}

.dash-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.dash-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.dash-panel-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dash-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-panel-icon.blue { background: #eff6ff; color: #2563eb; }
.dash-panel-icon.wine { background: #fdf2f8; color: #be185d; }

.dash-panel-title-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f2942;
  margin-bottom: 3px;
}

.dash-panel-title-group p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
}

.dash-badge-count {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.dash-badge-fy {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* Office Bars */
.office-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.office-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.office-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.office-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 600;
}

.office-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.office-dot.green { background: #10b981; }
.office-dot.blue  { background: #3b82f6; }
.office-dot.gray  { background: #cbd5e1; }

.office-count-pct {
  font-weight: 700;
  color: #0f2942;
}

.office-bar-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.office-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

.office-bar-fill.green { background: #10b981; }
.office-bar-fill.blue  { background: #3b82f6; }
.office-bar-fill.gray  { background: #cbd5e1; }

.dash-panel-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.dash-status-stable {
  color: #64748b;
}

.dash-link-action {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.dash-link-action:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* Employment Stats Boxes */
.employ-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.employ-stat-box {
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.employ-stat-box.regular {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.employ-stat-box.contract {
  background: #fffbeb;
  border: 1px solid #fef3c7;
}

.employ-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.employ-stat-label.regular { color: #64748b; }
.employ-stat-label.contract { color: #b45309; }

.employ-stat-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.employ-stat-num.regular { color: #0f2942; }
.employ-stat-num.contract { color: #d97706; }

.employ-stat-ratio {
  font-size: 11px;
}

.employ-stat-ratio.regular { color: #64748b; }
.employ-stat-ratio.contract { color: #b45309; }

.payroll-active-card {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.payroll-active-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payroll-active-title {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
}

.payroll-active-sub {
  font-size: 11px;
  color: #047857;
}

.btn-review-payroll {
  background: #ffffff;
  border: 1px solid #10b981;
  color: #047857;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-review-payroll:hover {
  background: #047857;
  color: #ffffff;
}

.welcome-version-banner {
  background: #064e3b;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.welcome-version-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.welcome-version-tag {
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 500;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
  .dash-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dash-metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Card General */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafcff;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 24px;
}

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

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

table.data-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

table.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue { background: #e0f2fe; color: #075985; }
.badge-slate { background: #f1f5f9; color: #475569; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-light);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-main);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
}

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

/* Filters & Inputs */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.form-control {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 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;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

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

.modal-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

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

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

/* Tabs */
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 8px;
}

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

.tab-btn:hover {
  color: var(--primary);
}

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

.tab-pane {
  display: none;
}

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

/* Slip Gaji Kop & Print Format */
.slip-container {
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 28px;
  background: #fff;
  color: #1e293b;
}

.slip-kop {
  text-align: center;
  border-bottom: 2px solid #0f2942;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.slip-kop h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f2942;
  letter-spacing: 0.5px;
}

.slip-kop p {
  font-size: 11px;
  color: #64748b;
}

.slip-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 20px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.slip-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 12px;
}

.slip-column h5 {
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid #cbd5e1;
  margin-bottom: 10px;
}

.slip-item-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.slip-item-row.total {
  font-weight: 700;
  border-bottom: 2px solid #94a3b8;
  margin-top: 8px;
  padding-top: 8px;
}

.slip-netto-box {
  margin-top: 24px;
  padding: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #065f46;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s forwards;
}

.toast.success { background: #065f46; border-left: 4px solid #34d399; }
.toast.error { background: #991b1b; border-left: 4px solid #f87171; }
.toast.info { background: #0c4a6e; border-left: 4px solid #38bdf8; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .sidebar { width: 70px; }
  .brand-text, .user-meta, .nav-item span, .nav-section-title { display: none; }
  .main-wrapper { margin-left: 70px; }
  .topbar { padding: 0 16px; }
  .content-area { padding: 16px; }
}

/* ========================================================
   MODERN ENTERPRISE LOGIN PAGE (TALENTA BANK AHA)
   ======================================================== */
.login-page-wrapper {
  min-height: 100vh;
  background: #f8fafc;
  background-image: 
    radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(15, 41, 66, 0.04) 0%, transparent 45%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  position: relative;
  overflow-x: hidden;
}

/* Topbar Header */
.login-topbar {
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f1f5f9;
  z-index: 10;
}

.login-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ssl-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.bank-identity {
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.regulator-label {
  font-weight: 500;
}

.regulator-badge {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.regulator-sep {
  color: #cbd5e1;
  font-weight: 600;
}

/* Main Container & 2-Column Grid */
.login-main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 48px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.login-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* Left Hero Section */
.login-hero {
  max-width: 540px;
}

.hero-tag {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  letter-spacing: 0.6px;
}

.hero-tag .dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  color: #0f2942;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.8px;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 28px;
}

.hero-desc strong {
  color: #0f2942;
  font-weight: 700;
}

.feature-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.feature-item-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #059669;
}

.feature-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f2942;
  margin-bottom: 3px;
}

.feature-text p {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Right Column (The Card) */
.login-card-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #006847;
  border-radius: 20px;
  padding: 32px 34px 28px 34px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.02);
  width: 100%;
  max-width: 440px;
  position: relative;
}

.card-brand-header {
  text-align: center;
  margin-bottom: 22px;
}

.card-logo-img {
  height: 64px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 8px;
  display: inline-block;
}

.card-bank-name {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card-portal-name {
  font-size: 22px;
  font-weight: 800;
  color: #006847;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.card-portal-tagline {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 320px;
}

/* Form Styles */
.form-group-custom {
  margin-bottom: 16px;
}

.form-group-custom label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

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

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

.forgot-link {
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.forgot-link:hover {
  text-decoration: underline;
  color: #065f46;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.input-custom {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.input-custom:focus {
  outline: none;
  border-color: #006847;
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.12);
}

.input-custom::placeholder {
  color: #94a3b8;
  font-size: 12.5px;
}

.input-icon-right-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s;
}

.input-icon-right-btn:hover {
  color: #334155;
  background: #f1f5f9;
}

.remember-row {
  margin: 12px 0 18px 0;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: #475569;
}

.checkbox-container input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #006847;
  border-radius: 4px;
  cursor: pointer;
}

.btn-submit-portal {
  width: 100%;
  height: 46px;
  background: #00573d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 87, 61, 0.25);
  transition: all 0.2s ease;
}

.btn-submit-portal:hover {
  background: #004530;
  box-shadow: 0 6px 16px rgba(0, 87, 61, 0.35);
  transform: translateY(-1px);
}

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

/* Service Divider */
.service-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 14px 0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.service-divider::before,
.service-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.service-divider span {
  padding: 0 12px;
}

/* Helpdesk & Manual Grid */
.helpdesk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-helpdesk {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-helpdesk:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Security Note */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #059669;
  font-weight: 500;
  margin-top: 10px;
  text-align: center;
}

/* Demo Role Drawer */
.demo-role-container {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.demo-toggle-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  width: 100%;
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.demo-toggle-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.demo-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
  animation: fadeIn 0.2s ease;
}

.role-chip {
  padding: 6px 8px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.role-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Footer */
.login-footer {
  padding: 16px 48px;
  border-top: 1px solid #f1f5f9;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #94a3b8;
  z-index: 10;
}

.login-footer strong {
  color: #64748b;
  font-weight: 600;
}

/* Responsive for Login Page */
@media (max-width: 1024px) {
  .login-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .login-hero {
    max-width: 100%;
    text-align: center;
  }
  .hero-tag {
    margin: 0 auto 16px auto;
  }
  .hero-desc {
    margin: 0 auto 24px auto;
  }
  .feature-cards-list {
    margin: 0 auto;
    text-align: left;
  }
  .login-topbar, .login-footer {
    padding: 14px 24px;
  }
  .login-main-container {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .login-topbar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .hero-title {
    font-size: 28px;
  }
  .login-card {
    padding: 24px 20px;
  }
  .login-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* --- Pegawai Profile Photo & Avatar Styles --- */
.pegawai-avatar {
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: #f1f5f9;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pegawai-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.pegawai-avatar-initials {
  background: linear-gradient(135deg, #0f2942 0%, #1e4976 100%);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  user-select: none;
}

.pegawai-foto-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
