/**
 * INDUSTRIAL LABOUR ATTENDANCE & SALARY MANAGEMENT SYSTEM
 * Design Theme inspired by modern emerald/mint mobile-first UI
 */

:root {
  /* Mint / Emerald Palette */
  --primary: #00D09C;
  --primary-hover: #05B681;
  --primary-dark: #065F46;
  --primary-light: #E8F8F3;
  --primary-glow: rgba(0, 208, 156, 0.25);

  /* Attendance Status Colors */
  --status-present: #10B981;
  --status-present-bg: rgba(16, 185, 129, 0.15);
  --status-absent: #EF4444;
  --status-absent-bg: rgba(239, 68, 68, 0.15);
  --status-halfday: #F59E0B;
  --status-halfday-bg: rgba(245, 158, 11, 0.15);
  --status-leave: #8B5CF6;
  --status-leave-bg: rgba(139, 92, 246, 0.15);
  --status-holiday: #06B6D4;
  --status-holiday-bg: rgba(6, 182, 212, 0.15);
  --status-off: #64748B;
  --status-off-bg: rgba(100, 116, 139, 0.15);

  /* Light Theme (Default) */
  --bg-app: #F4FBF8;
  --bg-card: #FFFFFF;
  --bg-card-secondary: #EDF7F4;
  --border: #D1EBE2;
  --text-main: #0E2922;
  --text-muted: #52796F;
  --sidebar-bg: #071915;
  --sidebar-text: #E6F5F0;
  --sidebar-border: #13332B;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(7, 30, 24, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-app: #071613;
  --bg-card: #0E2621;
  --bg-card-secondary: #13332B;
  --border: #1B453A;
  --text-main: #F2FBF7;
  --text-muted: #8AB4A8;
  --sidebar-bg: #05100E;
  --sidebar-text: #E6F5F0;
  --sidebar-border: #102621;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography & Indian Currency */
.amount {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Layout Structure */
#app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar (Desktop) */
#sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #04291E;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.sidebar-sub {
  font-size: 11px;
  color: #79A89B;
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  list-style: none;
}

.sidebar-item {
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: #A3C9BF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-link:hover {
  background-color: rgba(0, 208, 156, 0.08);
  color: #FFFFFF;
}

.sidebar-link.active {
  background-color: var(--primary);
  color: #04291E;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--sidebar-border);
}

/* User Card in Sidebar */
.user-info-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #04291E;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

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

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-role-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

/* Main Content Area */
#main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 80px; /* space for mobile bottom nav */
}

/* Top Navigation Bar */
.top-bar {
  height: 64px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

.top-bar-title {
  font-size: 18px;
  font-weight: 700;
}

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

/* Select & Language Switcher */
.theme-toggle-btn, .lang-select {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* Page Content Body */
.page-container {
  padding: 24px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* Hero & Header Welcome Banner (as in uploaded image) */
.hero-banner {
  background: linear-gradient(135deg, #05B681 0%, #00D09C 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #04291E;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 24px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.hero-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

/* Metric / Stat Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.stat-icon.present { background: var(--status-present-bg); color: var(--status-present); }
.stat-icon.absent { background: var(--status-absent-bg); color: var(--status-absent); }
.stat-icon.halfday { background: var(--status-halfday-bg); color: var(--status-halfday); }
.stat-icon.ot { background: var(--status-holiday-bg); color: var(--status-holiday); }
.stat-icon.advance { background: var(--status-leave-bg); color: var(--status-leave); }
.stat-icon.payroll { background: var(--primary-glow); color: var(--primary-hover); }

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

/* Progress bar inside cards (as shown in image) */
.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Category & Action Squircles (as in uploaded image) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.category-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-main);
}

.category-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.category-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #E8F5FF;
  color: #0284C7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.category-label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Pill Tabs (Daily, Weekly, Monthly) */
.pill-tabs {
  display: flex;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
  width: fit-content;
  margin-bottom: 20px;
}

.pill-tab {
  padding: 7px 18px;
  border-radius: 24px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-tab.active {
  background: var(--primary);
  color: #04291E;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--primary-glow);
}

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

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

.card-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Filter Controls Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  min-width: 220px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #04291E;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--primary-glow);
}

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

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

.btn-secondary:hover {
  background: var(--border);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

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

th {
  background: var(--bg-card-secondary);
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

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

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

tr:hover td {
  background-color: var(--primary-light);
}

/* Attendance Status Badges (Strictly Color-Coded) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.badge-present {
  background: var(--status-present-bg);
  color: var(--status-present);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-absent {
  background: var(--status-absent-bg);
  color: var(--status-absent);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-halfday {
  background: var(--status-halfday-bg);
  color: var(--status-halfday);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-leave {
  background: var(--status-leave-bg);
  color: var(--status-leave);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-holiday {
  background: var(--status-holiday-bg);
  color: var(--status-holiday);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-off {
  background: var(--status-off-bg);
  color: var(--status-off);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Daily Attendance One-Tap Quick Buttons */
.attendance-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-att {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-att.p { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.btn-att.p.active { background: #10B981; color: #FFFFFF; border-color: #059669; }

.btn-att.a { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.btn-att.a.active { background: #EF4444; color: #FFFFFF; border-color: #DC2626; }

.btn-att.h { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }
.btn-att.h.active { background: #F59E0B; color: #FFFFFF; border-color: #D97706; }

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.calendar-header {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 6px 4px;
}

.calendar-day-box {
  background: var(--bg-card-secondary);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calendar-day-box:hover:not(.is-empty) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.calendar-day-box.is-empty {
  background: transparent;
  border: 1px dashed var(--border);
  opacity: 0.35;
}

.calendar-day-box.is-present {
  background: #D1FAE5 !important;
  border-color: #10B981 !important;
  color: #064E3B;
}

.calendar-day-box.is-absent {
  background: #FEE2E2 !important;
  border-color: #EF4444 !important;
  color: #7F1D1D;
}

.calendar-day-box.is-halfday {
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
  color: #78350F;
}

.calendar-day-box.is-holiday {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
  color: #0C4A6E;
}

.calendar-day-box.is-weeklyoff {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #334155;
}

.calendar-day-box.is-leave {
  background: #F3E8FF !important;
  border-color: #8B5CF6 !important;
  color: #581C87;
}

/* Dark mode overrides for calendar boxes */
[data-theme="dark"] .calendar-day-box.is-present {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #10B981 !important;
  color: #A7F3D0 !important;
}

[data-theme="dark"] .calendar-day-box.is-absent {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #EF4444 !important;
  color: #FECACA !important;
}

[data-theme="dark"] .calendar-day-box.is-halfday {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: #F59E0B !important;
  color: #FDE68A !important;
}

[data-theme="dark"] .calendar-day-box.is-holiday {
  background: rgba(6, 182, 212, 0.22) !important;
  border-color: #06B6D4 !important;
  color: #BAE6FD !important;
}

[data-theme="dark"] .calendar-day-box.is-weeklyoff {
  background: rgba(100, 116, 139, 0.25) !important;
  border-color: #64748B !important;
  color: #CBD5E1 !important;
}

[data-theme="dark"] .calendar-day-box.is-leave {
  background: rgba(139, 92, 246, 0.22) !important;
  border-color: #8B5CF6 !important;
  color: #DDD6FE !important;
}

.calendar-day-num {
  font-size: 13px;
  font-weight: 800;
  color: inherit;
}

.cal-status-mark {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.cal-status-mark .mark-icon {
  font-size: 15px;
  line-height: 1;
}

.cal-hours-badge {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2px;
}

/* Quick Month Switcher Bar */
.month-switcher-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.month-switcher-bar .btn-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.month-switcher-bar .btn-month-nav:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.month-switcher-bar .btn-month-nav.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

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

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

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

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

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

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

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

.form-control {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
}

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

.toast {
  background: var(--sidebar-bg);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--primary);
  animation: slideIn 0.3s ease;
}

.toast.danger {
  border-left-color: #EF4444;
}

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

/* Mobile Bottom Navigation Bar (as in uploaded image) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 99;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}

.bottom-nav-item.active {
  color: var(--primary-hover);
}

.bottom-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* PWA Install Button */
#btn-pwa-install {
  display: none;
}

/* Responsive Media Queries (Mobile First Optimization) */
@media (max-width: 900px) {
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  #main-content {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .page-container {
    padding: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    padding: 20px;
  }
  .hero-title {
    font-size: 20px;
  }
}

/* Printable A4 Payslip styling */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  #sidebar, .top-bar, .mobile-bottom-nav, .toolbar, .btn, #toast-container {
    display: none !important;
  }
  #main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  .page-container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .payslip-print-container {
    border: 1px solid #10B981 !important;
    padding: 20px !important;
    width: 100% !important;
  }
}

