/* ==========================================================================
   MEDA:In Out HR Dashboard v2.4.1 — Enterprise Design System
   Faithfully crafted to match the Figma Dark Theme UI
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-app: #080C16;
  --bg-window: #0C101A;
  --bg-sidebar: #0B0E17;
  --bg-card: #151D2C;
  --bg-card-hover: #1A2436;
  --bg-input: #0F1624;
  --border-color: #1F2A3F;
  --border-subtle: #192233;

  /* Accent & Status Colors */
  --accent-purple: #A855F7;
  --accent-purple-hover: #9333EA;
  --accent-purple-glow: rgba(168, 85, 247, 0.25);

  --color-active: #10B981;
  --color-active-bg: rgba(16, 185, 129, 0.15);
  --color-active-border: rgba(16, 185, 129, 0.3);

  --color-idle: #F59E0B;
  --color-idle-bg: rgba(245, 158, 11, 0.15);
  --color-idle-border: rgba(245, 158, 11, 0.3);

  --color-break: #3B82F6;
  --color-break-bg: rgba(59, 130, 246, 0.15);
  --color-break-border: rgba(59, 130, 246, 0.3);

  --color-offline: #64748B;
  --color-offline-bg: rgba(100, 116, 139, 0.15);
  --color-offline-border: rgba(100, 116, 139, 0.3);

  --color-danger: #EF4444;
  --color-danger-bg: rgba(239, 68, 68, 0.15);

  /* Typography Colors */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Dimensions */
  --sidebar-width: 230px;
  --header-height: 48px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  color-scheme: dark;
}

/* Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  width: 100%;
}

body.dashboard-open {
  overflow: hidden;
  height: 100vh;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1F2A3F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ==========================================================================
   Window Frame (macOS Dark Aesthetic)
   ========================================================================== */
.window-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: var(--bg-window);
}

.window-titlebar {
  height: var(--header-height);
  background-color: #080C14;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  z-index: 50;
}

.connection-state-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  color: #FDE68A;
  background: #422006;
  border-bottom: 1px solid #92400E;
  font-size: 12px;
}

.connection-state-banner[hidden] {
  display: none;
}

.connection-state-banner.is-error {
  color: #FECACA;
  background: #450A0A;
  border-color: #991B1B;
}

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

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.dot:hover {
  opacity: 0.8;
}

.dot-close {
  background-color: #FF5F56;
}

.dot-minimize {
  background-color: #FFBD2E;
}

.dot-maximize {
  background-color: #27C93F;
}

.app-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.badge-hr {
  background: linear-gradient(135deg, #A855F7, #7C3AED);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-version {
  color: var(--text-dim);
  font-size: 11px;
}

.titlebar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

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

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background-color: #EF4444;
  border-radius: 50%;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-avatar-tiny {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #EC4899, #8B5CF6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.user-name-tiny {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
}

.win-btn:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Workspace Layout (Sidebar + Content)
   ========================================================================== */
.workspace-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.portal-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  user-select: none;
  flex-shrink: 0;
}

.hr-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 16px 6px;
}

.hr-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #D946EF, #8B5CF6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(217, 70, 239, 0.3);
}

.hr-info {
  display: flex;
  flex-direction: column;
}

.hr-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.hr-role-badge {
  font-size: 11px;
  color: var(--text-muted);
}

/* Quick Status Pills Bar */
.status-pills-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background-color: rgba(15, 23, 42, 0.6);
  padding: 6px 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.pill-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease;
}

.pill-stat:hover {
  transform: translateY(-1px);
}

.pill-num {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

.pill-label {
  font-size: 9px;
  text-transform: capitalize;
  margin-top: 1px;
}

.stat-active {
  color: var(--color-active);
}

.stat-online {
  color: #60A5FA;
}

.stat-idle {
  color: var(--color-idle);
}

.stat-break {
  color: var(--color-break);
}

.stat-offline {
  color: var(--color-offline);
}

/* Navigation */
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  padding: 0 10px;
  margin: 12px 0 6px 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  text-align: left;
}

.nav-item:hover {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.nav-item.nav-signout {
  color: #F87171;
}

.nav-item.nav-signout:hover {
  background-color: rgba(127, 29, 29, 0.28);
  color: #FCA5A5;
}

.nav-item.active {
  background: linear-gradient(135deg, #A855F7, #7C3AED);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--accent-purple-glow);
}

.nav-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.nav-badge {
  margin-left: auto;
  background-color: #F59E0B;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.portal-main {
  flex: 1;
  background-color: var(--bg-window);
  overflow-y: auto;
  padding: 24px 28px;
}

.page-view {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

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

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header-block {
  margin-bottom: 20px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Card Container */
.dashboard-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

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

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   Page 1: Overview
   ========================================================================== */
.overview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chart-legend-top {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.color-active {
  background-color: var(--color-active);
}

.color-idle {
  background-color: var(--color-idle);
}

.color-break {
  background-color: var(--color-break);
}

.color-offline {
  background-color: var(--color-offline);
}

.day-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-card);
  padding: 4px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.day-tab {
  font-size: 11px;
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.day-tab.active,
.day-tab:hover {
  color: var(--text-main);
  background-color: var(--border-color);
}

/* Productivity Trend Card */
.trend-card {
  margin-bottom: 20px;
  padding: 20px 24px;
}

.trend-chart-wrapper {
  width: 100%;
  height: 240px;
  position: relative;
}

.trend-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.overview-activity-trend {
  width: 100%;
  height: 100%;
}

.overview-activity-trend svg {
  width: 100%;
  height: 100%;
  display: block;
}

.overview-activity-trend .productivity-trend-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

/* Dual Grid: Live Status + Alerts */
.overview-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.live-pill {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--color-active);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.alerts-count-pill {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--color-danger);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

/* Live Employees List */
.live-employees-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-emp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background-color: rgba(15, 22, 36, 0.6);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.live-emp-row:hover {
  border-color: var(--border-color);
}

.live-emp-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-wrapper {
  position: relative;
}

.emp-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.status-indicator-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.dot-active {
  background-color: var(--color-active);
}

.dot-online {
  background-color: #60A5FA;
}

.dot-idle {
  background-color: var(--color-idle);
}

.dot-break {
  background-color: var(--color-break);
}

.dot-offline {
  background-color: var(--color-offline);
}

.live-emp-details {
  display: flex;
  flex-direction: column;
}

.live-emp-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.live-emp-meta {
  font-size: 11px;
  color: var(--text-dim);
}

.live-emp-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.live-score {
  font-size: 13px;
  font-weight: 700;
}

.live-score.text-active {
  color: var(--color-active);
}

.live-score.text-idle {
  color: var(--color-idle);
}

.live-badge-status {
  font-size: 10px;
  color: var(--text-dim);
}

/* Alerts List */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.alert-item.amber {
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

.alert-item.blue {
  background-color: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

.alert-item.green {
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.alert-title {
  font-weight: 600;
}

.alert-time {
  font-size: 10px;
  opacity: 0.7;
}

/* ==========================================================================
   Page 2: Employees Table
   ========================================================================== */
.table-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  flex: 1;
}

.search-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 13px;
  width: 100%;
}

.search-input-box input::placeholder {
  color: var(--text-dim);
}

.filters-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.styled-select {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
}

.styled-select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.styled-select option {
  background-color: #0F172A;
  color: #F8FAFC;
  padding: 10px 14px;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

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

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

.employees-table th {
  padding: 14px 18px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  background-color: #111724;
}

.employees-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.employees-table tr:hover td {
  background-color: rgba(26, 36, 54, 0.5);
}

.emp-cell-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emp-cell-name {
  font-weight: 600;
  color: var(--text-main);
}

.emp-cell-id {
  font-size: 11px;
  color: var(--text-dim);
}

.pill-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.pill-status.active {
  background-color: var(--color-active-bg);
  color: var(--color-active);
  border: 1px solid var(--color-active-border);
}

.pill-status.online {
  background-color: rgba(96, 165, 250, 0.12);
  color: #60A5FA;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.pill-status.idle {
  background-color: var(--color-idle-bg);
  color: var(--color-idle);
  border: 1px solid var(--color-idle-border);
}

.pill-status.break {
  background-color: var(--color-break-bg);
  color: var(--color-break);
  border: 1px solid var(--color-break-border);
}

.pill-status.offline {
  background-color: var(--color-offline-bg);
  color: var(--color-offline);
  border: 1px solid var(--color-offline-border);
}

.progress-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.progress-bar-track {
  flex: 1;
  height: 6px;
  background-color: #0F1624;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.btn-icon-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.btn-icon-action:hover {
  background-color: var(--border-color);
  color: #FFFFFF;
}

/* ==========================================================================
   Page 3: Leave Management
   ========================================================================== */
.leave-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.leave-metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.l-metric-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.l-metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

.text-amber {
  color: var(--color-idle);
}

.text-green {
  color: var(--color-active);
}

.text-red {
  color: var(--color-danger);
}

.text-blue {
  color: var(--color-break);
}

.segmented-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.seg-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

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

.seg-btn.active {
  background: linear-gradient(135deg, #A855F7, #7C3AED);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-purple-glow);
}

.leave-requests-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leave-card-row {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.2s ease;
}

.leave-card-row:hover {
  border-color: #334155;
  transform: translateY(-1px);
}

.leave-card-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.leave-details-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leave-top-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-leave-type {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.tag-vacation {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

.tag-sick {
  background-color: rgba(239, 68, 68, 0.2);
  color: #F87171;
}

.tag-personal {
  background-color: rgba(168, 85, 247, 0.2);
  color: #C084FC;
}

.leave-sub-meta {
  font-size: 11px;
  color: var(--text-dim);
}

.leave-date-range {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

.leave-reason-quote {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

.leave-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-approve {
  background-color: var(--color-active);
  color: #FFFFFF;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-approve:hover {
  background-color: #059669;
}

.btn-reject {
  background-color: var(--color-danger);
  color: #FFFFFF;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-reject:hover {
  background-color: #DC2626;
}

/* ==========================================================================
   Page 4: Screenshots Gallery
   ========================================================================== */
.screenshots-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.shots-controls-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.select-employee {
  min-width: 240px;
}

.employee-hero-banner {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

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

.hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.hero-name {
  font-size: 16px;
  font-weight: 700;
}

.hero-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.h-val {
  font-size: 18px;
  font-weight: 800;
}

.h-lbl {
  font-size: 11px;
  color: var(--text-dim);
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 150px;
}

.shot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.shot-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.shot-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.shot-app-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.shot-badge-score {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
}

.shot-preview.has-image {
  padding: 0;
  overflow: hidden;
  position: relative;
  background-color: #0B0F19;
}

.shot-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  display: block;
}

.shot-card:hover .shot-img-thumb {
  transform: scale(1.05);
}

.shot-preview.has-image .shot-badge-score {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-shot-image-wrap {
  width: 100%;
  background: #080C14;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-color);
}

.modal-screenshot-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.shot-footer-bar {
  background-color: #0E1422;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.shot-time {
  color: var(--text-muted);
}

.shot-app-tag {
  color: var(--text-dim);
}

/* ==========================================================================
   Page 5 & 6: Analytics & Settings
   ========================================================================== */
.analytics-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dept-bars-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.dept-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dept-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.metric-circle-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 28px;
}

.circ-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circ-val {
  font-size: 32px;
  font-weight: 800;
}

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

.settings-card {
  width: 100%;
  max-width: none;
}

.settings-group {
  margin-bottom: 24px;
}

.settings-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 12px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.setting-name {
  font-size: 13px;
  font-weight: 600;
}

.setting-desc {
  font-size: 11px;
  color: var(--text-dim);
}

.setting-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 12px;
  white-space: nowrap;
}

.setting-toggle input {
  accent-color: var(--accent-purple);
  width: 16px;
  height: 16px;
}

.account-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(160px, 220px));
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.badge-status-online {
  background-color: var(--color-active-bg);
  color: var(--color-active);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

@media (max-width: 720px) {
  .settings-card {
    padding: 16px;
  }

  .setting-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .setting-row > .styled-select {
    width: 100%;
    max-width: none;
  }

  #adminAccountsSection > div:first-child {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 12px;
  }

  .account-filters {
    grid-template-columns: 1fr;
  }

  #adminAccountsSection form[data-invite-audience] {
    flex-direction: column !important;
  }

  #adminAccountsSection form[data-invite-audience] .form-control-input {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   Modals & Toasts
   ========================================================================== */
.custom-modal {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
}

.custom-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 520px;
  max-width: 90vw;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

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

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

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   HR Sign In / Login Screen (Figma Exact Replication)
   ========================================================================== */
.login-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 12%, #581C87 0%, #3B0764 35%, #1F0738 70%, #0F031C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-wrapper.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.window-shell.hidden {
  display: none !important;
}

.login-container {
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.brand-shield-badge {
  width: 62px;
  height: 62px;
  background: #FFFFFF;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.25);
}

.login-app-title {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-app-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #C084FC;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.login-app-caption {
  font-size: 14px;
  color: #DDD6FE;
  opacity: 0.85;
}

.login-card {
  width: 100%;
  background: #0B1220;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 50px rgba(124, 58, 237, 0.12);
  box-sizing: border-box;
}

.login-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.card-shield-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(147, 51, 234, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #A855F7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-header-text h2 {
  font-size: 18px;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 2px;
}

.card-header-text p {
  font-size: 13px;
  color: #94A3B8;
}

.demo-credentials-box {
  background: rgba(88, 28, 135, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-credentials-box:hover {
  background: rgba(88, 28, 135, 0.35);
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateY(-1px);
}

.demo-cred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.demo-cred-title {
  font-size: 13px;
  font-weight: 700;
  color: #C084FC;
}

.demo-cred-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.25);
  color: #DDD6FE;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

.demo-cred-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.cred-label {
  color: #94A3B8;
  font-weight: 500;
  width: 65px;
}

.cred-value {
  color: #F1F5F9;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #CBD5E1;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: #64748B;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.form-control-input {
  width: 100%;
  height: 46px;
  background: #141C2E;
  border: 1px solid #233047;
  border-radius: 10px;
  padding: 0 12px;
  color: #F8FAFC;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
  outline: none;
}

.input-icon-wrap .form-control-input {
  padding-left: 42px;
  padding-right: 42px;
}

.password-field {
  position: relative;
  min-width: 0;
  flex: 1;
}

#adminAccountForm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

#adminAccountsTable .password-field {
  min-width: 200px;
}

.password-field .form-control-input {
  padding-right: 55px;
  min-width: 0;
}

.password-visibility {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94A3B8;
  padding: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.password-visibility:hover,
.password-visibility:focus-visible {
  color: #F8FAFC;
}

.form-control-input:focus {
  border-color: #A855F7;
  background: #172238;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.btn-toggle-pwd:hover {
  color: #CBD5E1;
}

.login-alert-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.4;
  animation: shake 0.3s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.btn-access-portal {
  width: 100%;
  height: 48px;
  background: #9333EA;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 4px;
}

.btn-access-portal:hover {
  background: #A855F7;
  box-shadow: 0 6px 22px rgba(147, 51, 234, 0.6);
  transform: translateY(-1px);
}

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

.btn-access-portal:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.login-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 26px 0 20px;
}

.login-security-notice {
  font-size: 12px;
  color: #64748B;
  text-align: center;
  line-height: 1.5;
}

/* User pill logout button in titlebar */
.user-pill-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logout-header-btn {
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  transition: all 0.2s ease;
}

.logout-header-btn:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
}

/* Compliance Audit Trail & Small Button Styles */
.btn-outline-small {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94A3B8;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-small:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #F8FAFC;
}

.productivity-trend-chart {
  display: flex;
  align-items: center;
  height: 260px;
  padding: 8px;
}
.productivity-trend-chart svg { width: 100%; height: 100%; }
.log-employee-option { display: block; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: #f8fafc; text-align: left; cursor: pointer; }
.log-employee-option:hover, .log-employee-option:focus-visible { background: #1e293b; }

.productivity-trend-empty {
  grid-column: 1 / -1;
  align-self: center;
  color: #94A3B8;
  text-align: center;
  border-color: #38BDF8;
}

.audit-log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  font-size: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.audit-log-row:last-child {
  border-bottom: none;
}

.audit-action-tag {
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  margin-right: 8px;
}

.audit-meta-text {
  color: #64748B;
  font-size: 11px;
}

/* ==========================================================================
   LANDING PAGE — ENTERPRISE DUAL-PLATFORM PORTAL & DOWNLOAD CENTER
   ========================================================================== */
.landing-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 10;
  background-color: var(--bg-app);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.18), transparent 70%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(circle at 10% 40%, rgba(16, 185, 129, 0.05), transparent 40%);
  color: var(--text-main);
  font-family: var(--font-sans);
}

.landing-wrapper.hidden {
  display: none !important;
}

/* Landing Navigation */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.landing-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-shield-small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-brand-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.landing-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-links .nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-nav-links .nav-link:hover {
  color: #FFFFFF;
}

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

@media (max-width: 1100px) {
  .landing-nav-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .landing-nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 4px;
  }
  .landing-nav-links .nav-link {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .landing-nav-inner {
    padding: 10px 16px;
  }
  .landing-nav-actions .btn-nav-download {
    display: none;
  }
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #E9D5FF;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-download:hover {
  background: rgba(168, 85, 247, 0.28);
  border-color: #A855F7;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.btn-nav-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #7C3AED;
  border: 1px solid #9333EA;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-portal:hover {
  background: #6D28D9;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

/* Landing Body Container */
.landing-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  text-align: center;
  padding: 90px 20px 70px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-glow-orb {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 100%);
  height: 250px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-badge-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: #D8B4FE;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  max-width: 860px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #C084FC 0%, #A855F7 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  position: relative;
  z-index: 1;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 38px;
}

.hero-cta-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 50px;
}

.btn-hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.btn-hero-cta.primary-download {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  border: 1px solid #9333EA;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-hero-cta.primary-download:hover {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.55);
  transform: translateY(-2px);
}

.btn-hero-cta.secondary-portal {
  background: rgba(21, 29, 44, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.btn-hero-cta.secondary-portal:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.cta-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-text-group {
  display: flex;
  flex-direction: column;
}

.cta-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.cta-subtitle {
  font-size: 12px;
  opacity: 0.85;
}

/* Trust Bar */
.hero-trust-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 980px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(21, 29, 44, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  text-align: left;
}

.trust-icon {
  font-size: 22px;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 13px;
  color: #F8FAFC;
}

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

/* SECTION STYLING */
.landing-section {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #A855F7;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: inline-block;
  margin-bottom: 12px;
}

.section-tag.highlight {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* DOWNLOAD GRID */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

.download-card {
  position: relative;
  background: rgba(21, 29, 44, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-card-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #10B981;
  color: #064E3B;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.download-os-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.os-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #0078D4;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.35);
}

.os-info h3 {
  font-size: 20px;
  font-weight: 700;
}

.os-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.download-file-meta {
  background: rgba(15, 22, 36, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--text-dim);
}

.meta-val {
  font-weight: 600;
  color: #F8FAFC;
}

.text-success {
  color: #10B981 !important;
}

.download-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-download-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #7C3AED;
  border: 1px solid #9333EA;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-download-big:hover {
  background: #6D28D9;
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
}

.btn-check-api {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-check-api:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.download-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

/* SETUP STEPS CARD */
.setup-steps-card {
  background: rgba(21, 29, 44, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.setup-steps-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 24px;
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid #A855F7;
  color: #D8B4FE;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #F8FAFC;
}

.step-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.code-pill {
  background: #0F1624;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38BDF8;
}

/* UPDATE METHODS GRID */
.update-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.update-card {
  position: relative;
  background: rgba(21, 29, 44, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.update-card.recommended {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(21, 29, 44, 0.7);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.12);
}

.update-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #38BDF8;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.update-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.update-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.update-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.update-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.update-step-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
}

.u-step-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #C084FC;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.update-step-row strong {
  display: block;
  font-size: 13px;
  color: #F8FAFC;
  margin-bottom: 2px;
}

.update-step-row p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.link-purple {
  color: #C084FC;
  text-decoration: underline;
}

/* UPDATE FAQ */
.update-faq-container {
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.faq-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.faq-item {
  background: rgba(21, 29, 44, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 18px;
}

.faq-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FEATURES GRID */
.features-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature-box {
  background: rgba(21, 29, 44, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.25s ease;
}

.feature-box:hover {
  background: rgba(26, 36, 54, 0.65);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-box h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #CBD5E1;
}

.feature-bullets li::before {
  content: "✔";
  color: #10B981;
  margin-right: 8px;
}

/* SPECS GRID */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

.spec-card {
  background: rgba(21, 29, 44, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.spec-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #A855F7;
}

.spec-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row .k {
  color: var(--text-dim);
}

.spec-row .v {
  font-weight: 600;
  color: #F8FAFC;
  text-align: right;
}

.payroll-amount-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.payroll-amount-input::-webkit-outer-spin-button,
.payroll-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* CTA BANNER */
.landing-cta-banner {
  margin-top: 50px;
  background: radial-gradient(circle at 50% 50%, #4C1D95 0%, #2E1065 60%, #17072E 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(76, 29, 149, 0.3);
}

.cta-banner-content h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-banner-content p {
  font-size: 15px;
  color: #E9D5FF;
  margin-bottom: 28px;
}

.cta-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-banner-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #FFFFFF;
  color: #4C1D95;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-banner-download:hover {
  background: #F3E8FF;
  transform: translateY(-2px);
}

.btn-banner-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-banner-portal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* FOOTER */
.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050810;
  padding: 40px 24px 30px 24px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 800px) {
  .footer-top {
    flex-direction: column;
  }
}

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

.footer-brand strong {
  font-size: 16px;
  color: #FFFFFF;
}

.footer-agency {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-academic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 600px;
  text-align: right;
}

@media (max-width: 800px) {
  .footer-academic {
    text-align: left;
  }
}

.academic-title {
  font-weight: 600;
  color: #E2E8F0;
  font-size: 12px;
}

.academic-authors {
  color: var(--text-muted);
  font-size: 11px;
}

.academic-adviser {
  color: var(--text-dim);
  font-size: 11px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #FFFFFF;
}

/* LOGIN SCREEN ENHANCEMENTS */
.login-nav-back {
  width: 100%;
  margin-bottom: 16px;
}

.btn-back-to-landing {
  background: transparent;
  border: none;
  color: #D8B4FE;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-back-to-landing:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #FFFFFF;
}

.login-download-cta {
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.login-download-cta .cta-label {
  font-size: 11px;
  color: var(--text-muted);
}

.link-download-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #C084FC;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.link-download-direct:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* TITLEBAR DOWNLOAD BUTTON (Inside HR Dashboard) */
.titlebar-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #D8B4FE;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 8px;
  transition: all 0.2s ease;
}

.titlebar-download-btn:hover {
  background: rgba(168, 85, 247, 0.26);
  border-color: #A855F7;
  color: #FFFFFF;
}

/* ==========================================================================
   OFFICIAL ENTERPRISE PAYSLIP & ATTENDANCE TIMESHEET STYLING
   ========================================================================== */
.payslip-sheet {
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 12px;
  padding: 32px 36px;
  max-width: 720px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.payslip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.payslip-brand h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 3px 0;
  letter-spacing: -0.02em;
}

.payslip-brand p {
  font-size: 11px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

.payslip-meta {
  text-align: right;
}

.payslip-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
}

.payslip-badge.paid {
  background: #DCFCE7;
  color: #15803D;
}

.payslip-badge.pending {
  background: #FEF3C7;
  color: #B45309;
}

.payslip-emp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 12px;
}

.payslip-emp-row {
  display: flex;
  justify-content: space-between;
}

.payslip-emp-label {
  color: #64748B;
  font-weight: 500;
}

.payslip-emp-val {
  color: #0F172A;
  font-weight: 600;
}

.payslip-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.payslip-table-box {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}

.payslip-table-hdr {
  background: #F1F5F9;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E2E8F0;
}

.payslip-line-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 12px;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
}

.payslip-table-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

.payslip-net-box {
  background: linear-gradient(135deg, #4338CA, #6366F1);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.payslip-net-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.payslip-net-amount {
  font-size: 26px;
  font-weight: 800;
}

.payslip-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
  padding-top: 10px;
}

.payslip-sig-line {
  border-top: 1px dashed #94A3B8;
  padding-top: 6px;
  font-size: 11px;
  color: #64748B;
  text-align: center;
}

@media (max-width: 1100px) {
  .window-shell {
    height: 100vh;
    height: 100dvh;
  }

  .workspace-layout {
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    min-height: 0;
  }

  .portal-sidebar {
    width: 100%;
    padding: 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .hr-profile-card,
  .status-pills-bar,
  .nav-section-label {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav-list {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 6px;
    width: max-content;
  }

  .nav-list li {
    flex: 0 0 auto;
  }

  .nav-item {
    width: auto;
    min-height: 40px;
    padding: 8px 10px;
    gap: 7px;
    white-space: nowrap;
  }

  .portal-main {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 18px;
  }

  .overview-dual-grid,
  .analytics-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shots-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .shots-controls-bar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .segmented-filters {
    flex-wrap: wrap;
  }

  #viewScreenshots .search-input-box {
    width: 100%;
    max-width: none !important;
  }

  .employee-hero-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }

  .hero-stats {
    gap: 20px;
  }

  .employee-logs-header {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  .employee-logs-search {
    width: 100% !important;
    max-width: 320px;
  }

  #viewAnalytics .dashboard-card {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .window-titlebar {
    padding: 0 10px;
  }

  .badge-hr,
  .badge-version {
    display: none;
  }

  .portal-main {
    padding: 12px;
  }

  .screenshots-header-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shot-footer-bar {
    padding: 7px 8px;
  }

  .hero-left {
    min-width: 0;
  }

  .hero-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .metric-circle-row {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* ------------------ PRINT MEDIA QUERY ------------------ */
@media print {
  body * {
    visibility: hidden;
  }
  #payslipModal, #payslipPrintWrapper, #payslipPrintWrapper * {
    visibility: visible;
  }
  #payslipModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .modal-header, .payslip-actions, .modal-close-btn {
    display: none !important;
  }
  .payslip-sheet {
    box-shadow: none;
    border: 1px solid #CBD5E1;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 24px;
  }
}
