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

:root {
  /* Primary Brand Color - StaffiX Blue */
  --primary: #22479b;
  --primary-dark: #1a3577;
  --primary-darker: #132853;
  --primary-light: #3d5fb3;
  --primary-lighter: #5a7bc8;
  --primary-lightest: #e8edf7;
  
  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  
  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: rgba(0, 0, 0, 0.05);
  --shadow-md: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --error: #ef4444;
  --error-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  
  /* Legacy support (will be replaced) */
  --auroxa-blue: #3b82f6;
  --auroxa-purple: #8b5cf6;
  --auroxa-pink: #f472b6;
  --auroxa-light-blue: #93c5fd;
  --auroxa-yellow: #fcd34d;
}

/* Dark Mode - Applied via .dark-mode class */
.dark-mode {
  --bg-primary: #1f2937;
  --bg-secondary: #111827;
  --bg-tertiary: #0f172a;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --border-color: #374151;
  --border-light: #1f2937;
  --shadow-sm: rgba(0, 0, 0, 0.3);
  --shadow-md: rgba(0, 0, 0, 0.4);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  
  --primary-lightest: #1e3a5f;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Minimal Header */
.header-minimal {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.logo-minimal {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-dark {
  display: none;
}

.logo-light {
  display: block;
}

.dark-mode .logo-dark {
  display: block;
}

.dark-mode .logo-light {
  display: none;
}

.header-actions-minimal {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.btn-icon.btn-logout {
  background: var(--error-light);
  color: var(--error);
  border-color: #fecaca;
}

.btn-icon.btn-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.btn-icon-text {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

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

.btn-icon-text .btn-icon-emoji {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-text .btn-text {
  font-size: 14px;
  font-weight: 500;
}

.btn-icon-text.btn-logout {
  background: var(--error-light);
  color: var(--error);
  border-color: #fecaca;
}

.btn-icon-text.btn-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: var(--error);
}

#themeToggle {
  transition: transform 0.3s ease;
}

#themeToggle:hover {
  transform: translateY(-1px);
}

.language-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 4px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.language-select:hover {
  border-color: var(--primary);
  background: var(--bg-secondary);
}

.language-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lightest);
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-nav {
  padding: 16px 0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 0;
  padding: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.sidebar-item:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  border-left-color: var(--primary-light);
}

.sidebar-item.active {
  background: linear-gradient(90deg, var(--primary-lightest) 0%, transparent 100%);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.sidebar-icon {
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.sidebar-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 32px 40px;
  background: var(--bg-secondary);
  overflow-y: auto;
  min-height: calc(100vh - 60px);
  transition: background-color 0.3s ease;
}

.menu-content {
  display: none;
}

.menu-content.active {
  display: block;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.dashboard-section {
  margin-bottom: 48px;
}

.dashboard-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.balance-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 20px 60px var(--shadow-lg);
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text-header {
  font-size: 36px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-subtext-header {
  font-size: 14px;
  color: var(--auroxa-yellow);
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 2px;
}

.dashboard-title {
  font-size: 24px;
  font-weight: 600;
  border-left: 3px solid var(--auroxa-pink);
  padding-left: 20px;
}

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

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-md);
  background: var(--primary-dark);
}

.btn-success {
  background: var(--success);
  color: white;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: #ef4444;
  color: white;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-logout {
  background: var(--auroxa-pink);
  color: white;
}

.btn-logout:hover {
  background: #ec4899;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.4);
}

.btn-secondary {
  background: var(--text-secondary);
  color: white;
}

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

.btn-info {
  background: var(--info);
  color: white;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-info:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  margin: 0 4px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Filters */
.filters {
  padding: 30px 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.filter-group select,
.filter-group input {
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  min-width: 200px;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.filter-group select:hover,
.filter-group input:hover {
  border-color: var(--primary-light);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lightest);
}

.filter-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}

.dark-mode .filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d1d5db' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.btn-filter-clear {
  padding: 10px 20px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-filter-clear:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px var(--shadow-sm);
}

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

/* Statistics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-md);
  border-color: var(--primary);
}

.stat-icon {
  font-size: 40px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-lightest) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.stat-content p {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
  transition: color 0.3s ease;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.chart-container {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.chart-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--auroxa-purple);
}

.chart-title {
  margin-bottom: 16px;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.chart-container canvas {
  max-height: 240px !important;
}

/* Tabs */
.tabs {
  display: flex;
  padding: 0 40px;
  background: white;
  border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.3s ease;
}

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

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

.tab-content {
  display: none;
  padding: 30px 40px;
}

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

/* Table */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-sm);
  background: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
}

.data-table thead {
  background: var(--primary);
  color: white;
  border-bottom: 2px solid var(--primary-dark);
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th:last-child {
  border-right: none;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background: var(--bg-secondary);
}

.data-table .loading {
  text-align: center;
  color: var(--text-tertiary);
  padding: 40px;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-wfh {
  background-color: var(--info-light);
  color: var(--info);
}

.status-office {
  background-color: var(--success-light);
  color: var(--success);
}

.status-complete {
  background: var(--success-light);
  color: var(--success);
}

.status-partial {
  background: var(--warning-light);
  color: var(--warning);
}

.status-missing {
  background: var(--error-light);
  color: var(--error);
}

.status-approved {
  background: var(--success-light);
  color: var(--success);
}

.status-pending {
  background: var(--warning-light);
  color: var(--warning);
}

.status-rejected {
  background: var(--error-light);
  color: var(--error);
}

.status-sick {
  background: #fee2e2;
  color: #991b1b;
}

.status-casual {
  background: #dbeafe;
  color: #1e40af;
}

.status-emergency {
  background: #fce7f3;
  color: #9f1239;
}

.status-medical {
  background: #fee2e2;
  color: #991b1b;
}

.status-personal {
  background: #e0e7ff;
  color: #3730a3;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal-content {
  background: var(--bg-primary);
  margin: 5% auto;
  padding: 32px;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn 0.3s;
  box-shadow: 0 20px 60px var(--shadow-lg);
  transition: background-color 0.3s ease;
}

.close {
  color: #9ca3af;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #374151;
}

.modal-content h2 {
  margin-bottom: 24px;
  color: var(--primary);
  transition: color 0.3s ease;
}

/* Break Sessions Modal */
.break-sessions-modal {
  background: var(--bg-primary);
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  transition: background-color 0.3s ease;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  animation: slideIn 0.3s;
}

.break-sessions-modal .modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.break-sessions-modal .modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.break-sessions-modal .modal-close {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.break-sessions-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.break-sessions-modal .modal-body {
  padding: 24px;
  max-height: calc(80vh - 100px);
  overflow-y: auto;
}

.break-sessions-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--bg-primary);
}

.break-sessions-table thead {
  background: var(--bg-secondary);
}

.break-sessions-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  border-bottom: 2px solid var(--border-color);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.break-sessions-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.break-sessions-table tbody tr:hover {
  background: var(--bg-secondary);
}

.break-sessions-summary {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  gap: 24px;
  margin-top: 16px;
  transition: background-color 0.3s ease;
}

.break-sessions-summary p {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.break-sessions-summary strong {
  color: var(--auroxa-purple);
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lightest);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.form-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  margin-bottom: 12px;
  color: #374151;
  font-size: 16px;
}

.detail-item {
  display: flex;
  padding: 10px;
  background: #f9fafb;
  border-radius: 6px;
  margin-bottom: 8px;
}

.detail-label {
  font-weight: 600;
  color: #6b7280;
  min-width: 140px;
}

.detail-value {
  color: #374151;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Leave Balance Section */
.leave-balance-section {
  padding: 0;
}

.leave-balance-section h2 {
  margin-bottom: 24px;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.balance-card {
  background: var(--bg-primary);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 3px var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.balance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-md);
  border-color: var(--primary);
}

.balance-card h4 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  transition: border-color 0.3s ease;
}

.balance-item:last-child {
  border-bottom: none;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid var(--border-color);
}

.balance-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.balance-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.view-all-container {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 1 / -1;
  margin-top: 8px;
}

.btn-view-all {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--auroxa-blue) 0%, var(--auroxa-purple) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* Salary Management Section */
.salary-management-section {
  padding: 0;
}

.salary-management-section h2 {
  margin-bottom: 24px;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
}

.salary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.salary-card {
  background: var(--bg-primary);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 3px var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.salary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-md);
  border-color: var(--primary);
}

.salary-card h4 {
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.salary-form-group {
  margin-bottom: 12px;
}

.salary-form-group label {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.salary-form-group input, 
.salary-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.salary-form-group input:focus,
.salary-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lightest);
}

.salary-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.salary-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-save-salary {
  background: #10b981;
  color: white;
}

.btn-save-salary:hover {
  background: #059669;
}

.btn-cancel-salary {
  background: #e5e7eb;
  color: #6b7280;
}

.btn-cancel-salary:hover {
  background: #d1d5db;
}

/* Employee Profiles Section */
.profiles-container {
  padding: 30px 40px;
}

.profile-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.profile-search-bar {
  flex: 1;
}

.profile-search-bar input {
  width: 100%;
  max-width: 500px;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.profile-search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lightest);
}

.profiles-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-card {
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  width: 100%;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-md);
  border-color: var(--primary-light);
}

.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.profile-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-section {
  margin-bottom: 0;
  flex: 1;
}

.profile-sections-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.profile-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.profile-field {
  margin-bottom: 0;
}

.profile-field textarea {
  grid-column: 1 / -1;
}

.profile-field label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.profile-field input,
.profile-field textarea,
.profile-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.profile-field textarea {
  resize: vertical;
  min-height: 60px;
}

.profile-field input:focus,
.profile-field textarea:focus,
.profile-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lightest);
}

.profile-field input:read-only {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

.cnic-upload-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cnic-upload {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  background: var(--bg-secondary);
}

.cnic-upload:hover {
  border-color: var(--primary);
  background-color: var(--bg-tertiary);
}

.cnic-upload input[type="file"] {
  display: none;
}

.cnic-preview {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 8px;
}

.cnic-upload-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.upload-icon {
  font-size: 32px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.upload-text {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.btn-edit-profile,
.btn-save-profile,
.btn-cancel-profile {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-edit-profile {
  background: var(--primary);
  color: white;
}

.btn-edit-profile:hover {
  background: var(--primary-dark);
}

.btn-save-profile {
  background: var(--success);
  color: white;
}

.btn-save-profile:hover {
  background: #059669;
}

.btn-cancel-profile {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-cancel-profile:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.profile-view-mode .profile-field input,
.profile-view-mode .profile-field textarea,
.profile-view-mode .profile-field select {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  pointer-events: none;
}

/* Profile Header Buttons - Dark Mode Improvements */
.profile-header .btn {
  transition: all 0.2s ease;
}

.profile-header .btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Dark Mode Specific Improvements */
.dark-mode .profile-card {
  border-color: var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-md);
}

.dark-mode .profile-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px var(--shadow-lg);
}

.dark-mode .profile-body {
  background: var(--bg-primary);
}

.dark-mode .cnic-upload {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

.dark-mode .cnic-upload:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.dark-mode .profile-actions {
  border-top-color: var(--border-color);
}

/* Monthly Report - Professional Design */
.report-filters-card {
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 1px 3px var(--shadow-sm);
  transition: background-color 0.3s ease;
  margin-bottom: 24px;
  overflow: hidden;
}

.report-filters-header {
  background: linear-gradient(135deg, var(--auroxa-blue) 0%, var(--auroxa-purple) 100%);
  padding: 16px 24px;
  color: white;
}

.filters-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: white;
}

.report-filters-content {
  padding: 24px;
}

.filter-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.filter-item label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.report-select {
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.report-select:hover {
  border-color: var(--primary-light);
}

.report-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lightest);
}

.filter-action {
  flex: 0 0 auto;
}

.btn-generate {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-generate span {
  font-size: 16px;
}

/* Report Summary Statistics */
.report-summary-section {
  margin-bottom: 32px;
}

.section-title-small {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.report-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.report-stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.report-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.report-stat-card.stat-total {
  border-left-color: #3b82f6;
}

.report-stat-card.stat-approved {
  border-left-color: #10b981;
}

.report-stat-card.stat-pending {
  border-left-color: #f59e0b;
}

.report-stat-card.stat-rejected {
  border-left-color: #ef4444;
}

.stat-icon-wrapper {
  flex-shrink: 0;
}

.stat-icon-large {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #f3f4f6;
}

.stat-total .stat-icon-large {
  background: #dbeafe;
}

.stat-approved .stat-icon-large {
  background: #d1fae5;
}

.stat-pending .stat-icon-large {
  background: #fef3c7;
}

.stat-rejected .stat-icon-large {
  background: #fee2e2;
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin: 0 0 4px 0;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1;
}

/* Report Table Section */
.report-table-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-section-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}

.btn-icon-small {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: white;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.btn-icon-small:hover {
  background: #f3f4f6;
  border-color: var(--auroxa-blue);
}

.report-stats .stat-card h4 {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 8px;
}

.report-stats .stat-card p {
  color: #374151;
  font-size: 24px;
  font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  touch-action: manipulation;
}

.mobile-menu-toggle:hover {
  background: var(--bg-tertiary);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive Design */
/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  .main-content {
    padding: 24px 20px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .balance-grid,
  .salary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  /* Header */
  .header-minimal {
    padding: 10px 12px;
  }
  
  .header-content {
    padding: 0;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-right: 8px;
  }
  
  .logo-minimal {
    height: 32px;
    flex-shrink: 1;
    margin-right: auto;
    min-width: 0;
    overflow: hidden;
  }
  
  .logo-image {
    height: 32px;
    max-width: 120px;
    object-fit: contain;
  }
  
  .header-actions-minimal {
    gap: 4px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    min-width: 0;
  }
  
  .language-select {
    padding: 6px 8px;
    font-size: 11px;
    margin-right: 0;
    min-width: 50px;
    max-width: 60px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .language-select option {
    font-size: 11px;
  }
  
  .btn-icon-text {
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 6px;
  }
  
  .btn-icon-text .btn-text {
    display: none;
  }
  
  .btn-icon-text .btn-icon-emoji {
    font-size: 16px;
    margin: 0;
    line-height: 1;
  }
  
  .btn-icon-text.btn-logout {
    min-width: 36px;
    width: 36px;
  }
  
  /* Ensure header fits without wrapping */
  .header-content {
    min-width: 0;
    flex: 1;
  }
  
  /* Prevent text selection on mobile buttons */
  .btn-icon-text,
  .mobile-menu-toggle {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  
  /* Sidebar */
  .sidebar {
    position: fixed;
    left: -260px;
    top: 60px;
    width: 260px;
    height: calc(100vh - 60px);
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px var(--shadow-lg);
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .sidebar-item {
    padding: 14px 20px;
    min-height: 48px; /* Touch-friendly */
    font-size: 15px;
  }
  
  .dashboard-layout {
    flex-direction: column;
  }
  
  .main-content {
    width: 100%;
    padding: 20px 16px;
    margin-left: 0;
  }
  
  /* Page Title */
  .page-title {
    font-size: 24px;
  }
  
  .page-subtitle {
    font-size: 13px;
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 32px;
  }
  
  .stat-content h3 {
    font-size: 24px;
  }
  
  /* Balance and Salary Grids */
  .balance-grid,
  .salary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .balance-card,
  .salary-card {
    padding: 20px;
  }
  
  /* Filters */
  .filters {
    padding: 20px 16px;
    flex-direction: column;
    gap: 16px;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-group select,
  .filter-group input {
    width: 100%;
    min-width: auto;
  }
  
  /* Tables */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  .data-table {
    min-width: 800px;
    font-size: 13px;
  }
  
  .data-table th,
  .data-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  
  .data-table th {
    font-size: 11px;
    white-space: nowrap;
  }
  
  /* Pagination */
  .pagination-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  
  .pagination-info {
    text-align: center;
    font-size: 12px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
  }
  
  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .pagination-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .pagination-page-info {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .pagination-items-per-page {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .pagination-items-per-page label {
    font-size: 12px;
  }
  
  .pagination-items-per-page select {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  /* Charts */
  .charts-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .chart-container {
    padding: 16px;
  }
  
  /* Profile Cards */
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .profile-card {
    width: 100%;
  }
  
  .profile-header {
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .profile-header h3 {
    font-size: 16px;
  }
  
  .profile-body {
    padding: 20px;
  }
  
  .profile-sections-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .profile-fields-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .profile-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-edit-profile,
  .btn-save-profile,
  .btn-cancel-profile {
    width: 100%;
  }
  
  /* Report Filters */
  .report-filters-card {
    margin-bottom: 20px;
    padding: 16px;
  }
  
  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .filter-item {
    width: 100%;
  }
  
  .btn-generate {
    width: 100%;
    justify-content: center;
  }
  
  .report-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Modals */
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 24px;
    max-height: 90vh;
  }
  
  .break-sessions-modal {
    width: 95%;
    margin: 5% auto;
  }
  
  .break-sessions-modal .modal-header {
    padding: 16px;
  }
  
  .break-sessions-modal .modal-body {
    padding: 16px;
  }
  
  /* Forms */
  .form-field input,
  .form-field select,
  .form-field textarea {
    width: 100%;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  /* Header */
  .header-minimal {
    padding: 8px 10px;
  }
  
  .header-content {
    gap: 6px;
  }
  
  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
    font-size: 18px;
    margin-right: 6px;
  }
  
  .logo-minimal {
    height: 28px;
  }
  
  .logo-image {
    height: 28px;
  }
  
  .header-actions-minimal {
    gap: 3px;
  }
  
  .language-select {
    padding: 5px 6px;
    font-size: 10px;
    min-width: 45px;
  }
  
  .btn-icon-text {
    min-width: 32px;
    width: 32px;
    height: 32px;
  }
  
  .btn-icon-text .btn-icon-emoji {
    font-size: 14px;
  }
  
  /* Optionally hide less critical buttons on very small screens */
  /* Uncomment if needed:
  .btn-icon-text:nth-child(4) {
    display: none; // Hide export button
  }
  */
}
  
  /* Main Content */
  .main-content {
    padding: 16px 12px;
  }
  
  /* Page Title */
  .page-title {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .page-subtitle {
    font-size: 12px;
  }
  
  /* Stats */
  .stat-card {
    padding: 16px;
    gap: 12px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
  
  .stat-content h3 {
    font-size: 20px;
  }
  
  .stat-content p {
    font-size: 12px;
  }
  
  /* Tables */
  .data-table {
    min-width: 700px;
    font-size: 11px;
  }
  
  .data-table th,
  .data-table td {
    padding: 10px 15px;
    font-size: 11px;
  }
  
  /* Filters */
  .filters {
    padding: 16px 12px;
    gap: 12px;
  }
  
  /* Cards */
  .balance-card,
  .salary-card {
    padding: 16px;
  }
  
  .profile-card {
    border-radius: 8px;
  }
  
  .profile-header {
    padding: 12px;
  }
  
  .profile-body {
    padding: 16px;
  }
  
  /* Buttons */
  .btn {
    padding: 10px 14px;
    font-size: 11px;
    min-height: 44px; /* Touch-friendly */
  }
  
  .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 40px;
  }
  
  /* Touch-friendly interactive elements */
  .btn-icon-text,
  .pagination-btn,
  .btn {
    min-height: 34px;
    touch-action: manipulation;
  }
  
  /* Modals */
  .modal-content {
    width: 98%;
    margin: 2% auto;
    padding: 20px;
    max-height: 96vh;
  }
  
  /* Pagination */
  .pagination-btn {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 40px;
  }
  
  .pagination-page-info {
    font-size: 11px;
    padding: 8px 10px;
  }
  
  /* Section spacing */
  .section-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  /* Status badges */
  .status-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Pagination Styles */
.pagination-wrapper {
  margin-top: 24px;
  padding: 16px 0;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px var(--shadow-sm);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  white-space: nowrap;
}

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

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-page-info {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-items-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-items-per-page label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-items-per-page select {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-items-per-page select:hover {
  border-color: var(--primary);
}

.pagination-items-per-page select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lightest);
}

/* Sortable Headers */
.sortable-header {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease;
}



.sortable-header.sort-asc,
.sortable-header.sort-desc {
  background-color: var(--primary-lightest);
  color: var(--primary);
}

.sort-icon {
  margin-left: 4px;
  font-size: 12px;
  color: var(--primary);
  font-weight: bold;
}

@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .pagination-items-per-page {
    justify-content: center;
  }
}

