/* staff.css - Complete Redesigned Stylesheet with Full Dark Mode & Responsive Support */

/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Theme Variables */
  --bg-body: #f0f2f5;
  --bg-login-container: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-white: #ffffff;
  --bg-dashboard: #f0f2f5;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-sidebar-hover: #f0f4ff;
  --bg-sidebar-active: linear-gradient(135deg, #667eea, #764ba2);
  --bg-nav-menu: #f7fafc;
  --bg-section-alt: #f8fafc;
  --bg-hover: #f0f4ff;
  --bg-chat-messages: #ffffff;
  --bg-chat-received: #f1f5f9;
  --bg-modal-overlay: rgba(0, 0, 0, 0.6);
  --bg-logout-overlay: rgba(255, 255, 255, 0.95);
  --bg-receipt-header: #ffffff;
  --bg-receipt-footer: #ffffff;
  --bg-sticky-header: #ffffff;
  --bg-sticky-footer: #ffffff;
  --bg-top-bar: #ffffff;
  --bg-mobile-header: #ffffff;
  --bg-settings-card: #ffffff;
  
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --text-white: #ffffff;
  --text-login-header: #1a202c;
  --text-login-p: #718096;
  --text-sidebar: #4a5568;
  --text-sidebar-active: #ffffff;
  
  --border-color: #e2e8f0;
  --border-light: #f0f0f0;
  --border-dashed: #e2e8f0;
  --border-sidebar: #f0f0f0;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-sidebar: 2px 0 12px rgba(0, 0, 0, 0.06);
  
  --gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
  --gradient-success: linear-gradient(135deg, #28a745, #20c997);
  --gradient-danger: linear-gradient(135deg, #dc2626, #b91c1c);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #e68a2e);
  
  --color-link: #667eea;
  --color-icon: #a0aec0;
  --color-close-hover-bg: #fee2e2;
  --color-close-hover: #dc2626;
  
  --status-pending-bg: #fff3e0;
  --status-pending-text: #e68a2e;
  --status-in-progress-bg: #e8f0fe;
  --status-in-progress-text: #0d6efd;
  --status-completed-bg: #e0f2e9;
  --status-completed-text: #1e7b48;
  
  --scrollbar-track: #f1f1f1;
  --scrollbar-thumb: #cbd5e0;
  --scrollbar-thumb-hover: #a0aec0;
  
  /* Layout */
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 0px;
  --top-bar-height: 64px;
  --mobile-header-height: 56px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-body: #0f0f1a;
  --bg-login-container: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
  --bg-white: #1a1a2e;
  --bg-dashboard: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-input: #252540;
  --bg-sidebar: #151528;
  --bg-sidebar-hover: #252540;
  --bg-sidebar-active: linear-gradient(135deg, #667eea, #764ba2);
  --bg-nav-menu: #252540;
  --bg-section-alt: #252540;
  --bg-hover: #252540;
  --bg-chat-messages: #1a1a2e;
  --bg-chat-received: #252540;
  --bg-modal-overlay: rgba(0, 0, 0, 0.8);
  --bg-logout-overlay: rgba(15, 15, 26, 0.95);
  --bg-receipt-header: #1a1a2e;
  --bg-receipt-footer: #1a1a2e;
  --bg-sticky-header: #1a1a2e;
  --bg-sticky-footer: #1a1a2e;
  --bg-top-bar: #151528;
  --bg-mobile-header: #151528;
  --bg-settings-card: #1a1a2e;
  
  --text-primary: #e8e8f0;
  --text-secondary: #b0b0c0;
  --text-muted: #8888a0;
  --text-light: #6a6a7e;
  --text-white: #ffffff;
  --text-login-header: #e8e8f0;
  --text-login-p: #8888a0;
  --text-sidebar: #b0b0c0;
  --text-sidebar-active: #ffffff;
  
  --border-color: #2a2a40;
  --border-light: #252540;
  --border-dashed: #2a2a40;
  --border-sidebar: #252540;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-sidebar: 2px 0 12px rgba(0, 0, 0, 0.3);
  
  --gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
  --gradient-success: linear-gradient(135deg, #28a745, #20c997);
  --gradient-danger: linear-gradient(135deg, #dc2626, #b91c1c);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #e68a2e);
  
  --color-link: #7b93f5;
  --color-icon: #5a5a70;
  --color-close-hover-bg: #3a1a1a;
  --color-close-hover: #ef4444;
  
  --status-pending-bg: #3a2a1a;
  --status-pending-text: #f59e0b;
  --status-in-progress-bg: #1a2a3a;
  --status-in-progress-text: #60a5fa;
  --status-completed-bg: #1a3a2a;
  --status-completed-text: #4ade80;
  
  --scrollbar-track: #151528;
  --scrollbar-thumb: #2a2a40;
  --scrollbar-thumb-hover: #3a3a50;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-body);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
  margin: 0;
}

/* ========== THEME TOGGLE BUTTON ========== */
.theme-toggle-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-input);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  flex-shrink: 0;
  outline: none;
  padding: 0;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.1);
  border-color: #667eea;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.theme-toggle-btn i {
  position: absolute;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--text-primary);
}

.theme-toggle-btn .bi-sun-fill {
  opacity: 0;
  transform: translateY(30px) rotate(-90deg);
  color: #f8961e;
}

.theme-toggle-btn .bi-moon-fill {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  color: #6366f1;
}

[data-theme="dark"] .theme-toggle-btn .bi-sun-fill {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle-btn .bi-moon-fill {
  opacity: 0;
  transform: translateY(-30px) rotate(90deg);
}

/* ========== LOGIN SECTION ========== */
.login-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-login-container);
  z-index: 1000;
  transition: background 0.3s ease;
}

.login-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-modal);
  animation: slideUp 0.5s ease-out;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin: 16px;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}

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

.login-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-login-header);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.login-header p {
  color: var(--text-login-p);
  font-size: 14px;
  transition: color 0.3s ease;
}

.input-group-custom {
  position: relative;
  margin-bottom: 16px;
}

.input-group-custom i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-icon);
  font-size: 16px;
  z-index: 1;
}

.input-group-custom input {
  padding: 12px 14px 12px 44px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.2s, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  width: 100%;
  background-color: var(--bg-input);
  color: var(--text-primary);
}

.input-group-custom input::placeholder {
  color: var(--text-muted);
}

.input-group-custom input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

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

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
}

.login-footer a {
  color: var(--color-link);
  text-decoration: none;
  cursor: pointer;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-footer span {
  margin: 0 8px;
  color: #cbd5e0;
}

/* ========== ANIMATIONS ========== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dashboard);
  transition: background-color 0.3s ease;
}

/* ========== MOBILE HEADER ========== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mobile-header-height);
  background: var(--bg-mobile-header);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  z-index: 1001;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

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

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.mobile-brand span {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

/* ========== SIDEBAR ========== */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1098;
  transition: opacity 0.3s ease;
}

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

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-sidebar);
  z-index: 1099;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-sidebar);
  transition: border-color 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.sidebar-brand span {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-sidebar);
  transition: border-color 0.3s ease;
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.sidebar-divider {
  padding: 16px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-sidebar);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.sidebar-nav-btn i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-nav-btn:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-primary);
}

.sidebar-nav-btn.active {
  background: var(--bg-sidebar-active);
  color: var(--text-sidebar-active);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-sidebar);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.3s ease;
}

.sidebar-theme-toggle {
  flex-shrink: 0;
}

.sidebar-logout-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #dc3545;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.sidebar-logout-btn:hover {
  background: #fff5f5;
  border-color: #dc3545;
}

[data-theme="dark"] .sidebar-logout-btn:hover {
  background: #3a1a1a;
  border-color: #dc3545;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding-top: var(--top-bar-height);
  transition: margin-left 0.3s ease;
}

.top-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  height: var(--top-bar-height);
  background: var(--bg-top-bar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, left 0.3s ease;
}

.top-bar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

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

.current-date {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.top-bar-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* ========== DASHBOARD CONTENT ========== */
.dashboard-content {
  padding: 24px;
  max-width: 1400px;
}

.content-view {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

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

.view-header {
  margin-bottom: 24px;
}

.view-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.view-header h2 i {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 10px;
}

.view-header p {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s ease;
}

/* ========== JOBS GRID ========== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ========== JOB CARD ========== */
.job-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #667eea;
}

.job-card:hover::before {
  opacity: 1;
}

.job-card > * {
  position: relative;
  z-index: 1;
}

.job-card.clickable-indicator::after {
  content: 'Click for details';
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-size: 10px;
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.job-card.clickable-indicator:hover::after {
  opacity: 1;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 14px;
}

.job-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #667eea20, #764ba220);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-icon i {
  font-size: 22px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
}

.status-in-progress {
  background: var(--status-in-progress-bg);
  color: var(--status-in-progress-text);
}

.status-completed {
  background: var(--status-completed-bg);
  color: var(--status-completed-text);
}

.job-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.job-details {
  margin: 12px 0;
}

.job-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 13px;
  transition: color 0.3s ease;
}

.job-detail-item i {
  width: 18px;
  color: var(--color-icon);
  font-size: 14px;
}

.job-detail-item a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.job-detail-item a:hover {
  text-decoration: underline;
}

.job-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.btn-action {
  flex: 1;
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.btn-action-report {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e68a2e;
}

.btn-action-report:hover {
  background: var(--gradient-warning);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3);
}

.btn-view {
  background: var(--bg-section-alt);
  color: var(--text-secondary);
}

.btn-view:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

/* ========== STATS CARD ========== */
.stat-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #667eea;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card.clickable-indicator::after {
  content: 'Click for details';
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-size: 10px;
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card.clickable-indicator:hover::after {
  opacity: 1;
}

.stat-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #667eea20, #764ba220);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.08);
}

.stat-icon i {
  font-size: 26px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.stat-card:hover .stat-value {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* ========== PROFILE CARD ========== */
.profile-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px;
  max-width: 650px;
  margin: 0 auto;
  transition: background-color 0.3s ease;
  border: 1px solid var(--border-color);
}

.profile-header {
  text-align: center;
  margin-bottom: 28px;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.profile-avatar i {
  font-size: 40px;
  color: white;
}

.profile-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.profile-header p {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.profile-info {
  margin-top: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.info-label {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  font-size: 14px;
}

.info-label i {
  margin-right: 8px;
  color: #667eea;
}

.info-value {
  color: var(--text-primary);
  transition: color 0.3s ease;
  font-size: 14px;
}

.password-change-section {
  background: var(--bg-section-alt);
  border-radius: 16px;
  padding: 24px;
  margin-top: 28px;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.password-change-section h4 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  transition: color 0.3s ease;
}

.password-change-section h4 i {
  color: #667eea;
  font-size: 20px;
}

.password-hint {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}

.btn-change-pwd {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 6px 14px -4px rgba(102, 126, 234, 0.25);
  cursor: pointer;
}

.btn-change-pwd:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -6px rgba(102, 126, 234, 0.4);
}

/* ========== SETTINGS VIEW ========== */
.settings-container {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-card {
  background: var(--bg-settings-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.settings-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.settings-card h3 i {
  color: #667eea;
  font-size: 20px;
}

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

.settings-item:last-child {
  border-bottom: none;
}

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

.settings-item-label i {
  font-size: 18px;
  color: var(--color-icon);
  width: 24px;
  text-align: center;
}

.settings-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-left: 34px;
  transition: color 0.3s ease;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: var(--gradient-primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== DETAIL MODAL ========== */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
  padding: 16px;
}

.detail-modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: slideUpModal 0.4s ease-out;
  transition: background-color 0.3s ease;
}

.detail-modal-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-sticky-header);
  border-radius: 20px 20px 0 0;
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.detail-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-modal-title i {
  font-size: 26px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-modal-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

.close-modal-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-section-alt);
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  background: var(--color-close-hover-bg);
  color: var(--color-close-hover);
  transform: rotate(90deg);
}

.detail-modal-body {
  padding: 24px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.detail-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  transition: border-color 0.3s ease;
}

.detail-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-group-header i {
  font-size: 18px;
  color: #667eea;
}

.detail-group-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-section-alt);
  border-radius: 10px;
  margin-bottom: 6px;
  transition: background-color 0.3s ease;
}

.detail-item:hover {
  background: #f0f4ff;
}

[data-theme="dark"] .detail-item:hover {
  background: #252540;
}

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

.detail-label i {
  color: #667eea;
  font-size: 14px;
}

.detail-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  text-align: right;
  transition: color 0.3s ease;
}

.detail-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--bg-sticky-footer);
  border-radius: 0 0 20px 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-close-detail {
  padding: 10px 22px;
  background: var(--border-light);
  color: var(--text-secondary);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.btn-close-detail:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

/* ========== PEOPLE LIST ========== */
.people-list {
  list-style: none;
  padding: 0;
}

.people-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-section-alt);
  border-radius: 10px;
  margin-bottom: 6px;
  transition: all 0.2s ease, background-color 0.3s ease;
}

.people-list-item:hover {
  background: #f0f4ff;
  transform: translateX(4px);
}

[data-theme="dark"] .people-list-item:hover {
  background: #252540;
}

.people-avatar {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.people-info {
  flex: 1;
}

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

.people-detail {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

/* ========== LOGOUT MODAL ========== */
.logout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease-out;
}

.logout-modal-container {
  animation: scaleIn 0.4s ease-out;
}

.logout-modal-content {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  margin: 16px;
}

.logout-icon-wrapper {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.logout-icon-wrapper i {
  font-size: 36px;
  color: #dc2626;
  animation: pulse 2s infinite;
}

.logout-modal-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.logout-modal-content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
  transition: color 0.3s ease;
}

.logout-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cancel-logout {
  padding: 12px 22px;
  background: var(--border-light);
  color: var(--text-secondary);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.btn-cancel-logout:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-confirm-logout {
  padding: 12px 22px;
  background: var(--gradient-danger);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px -4px rgba(220, 38, 38, 0.3);
  font-size: 14px;
}

.btn-confirm-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(220, 38, 38, 0.4);
}

/* ========== LOGOUT LOADING ========== */
.logout-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-logout-overlay);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  animation: fadeIn 0.3s ease-out;
  transition: background 0.3s ease;
}

.logout-loading-container {
  text-align: center;
}

.logout-loading-container h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.logout-loading-container p {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.3s ease;
}

.spinner-wrapper {
  margin-bottom: 28px;
}

.spinner-ring {
  width: 52px;
  height: 52px;
  border: 4px solid var(--border-color);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
  transition: border-color 0.3s ease;
}

/* ========== RECEIPT MODAL ========== */
.receipt-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.receipt-modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  transition: background-color 0.3s ease;
}

.receipt-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-receipt-header);
  border-radius: 20px 20px 0 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.receipt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.receipt-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.receipt-logo h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.close-modal {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--color-icon);
  transition: color 0.2s;
}

.close-modal:hover {
  color: #dc3545;
}

.receipt-content {
  padding: 20px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.receipt-content h4 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.receipt-details {
  margin: 16px 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  transition: border-color 0.3s ease;
}

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

.receipt-value {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 13px;
}

.receipt-total {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 2px solid var(--text-primary);
  font-size: 16px;
  font-weight: 800;
  color: #28a745;
  text-align: right;
  transition: border-color 0.3s ease;
}

.receipt-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--bg-receipt-footer);
  border-radius: 0 0 20px 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-print,
.btn-close-receipt {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}

.btn-print {
  background: #667eea;
  color: white;
}

.btn-print:hover {
  background: #5a67d8;
  transform: translateY(-2px);
}

.btn-close-receipt {
  background: var(--border-color);
  color: var(--text-secondary);
}

.btn-close-receipt:hover {
  background: #cbd5e0;
}

/* ========== PAYMENT VALIDATION STYLES ========== */
.payment-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.payment-stat-card {
  background: linear-gradient(135deg, #667eea10, #764ba210);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s, background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.payment-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.payment-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.payment-stat-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #667eea20, #764ba220);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.payment-stat-icon i {
  font-size: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.payment-stat-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.payment-validation-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.recent-payments-container h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-payments-list {
  max-height: 350px;
  overflow-y: auto;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s, border-color 0.3s ease;
}

.payment-item:hover {
  background: var(--bg-hover);
}

.payment-info {
  flex: 1;
}

.payment-job {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 14px;
  transition: color 0.3s ease;
}

.payment-details {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  transition: color 0.3s ease;
}

.payment-amount {
  text-align: right;
}

.amount-value {
  font-size: 18px;
  font-weight: 800;
  color: #28a745;
  margin-bottom: 2px;
}

.payment-date {
  font-size: 11px;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.payment-status {
  display: inline-block;
  padding: 3px 10px;
  background: #e0f2e9;
  color: #1e7b48;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
}

/* ========== SUPERVISOR STYLES ========== */
.supervisor-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.supervisor-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: all 0.3s, background-color 0.3s ease, border-color 0.3s ease;
}

.supervisor-card:hover {
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.08);
}

.supervisor-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.supervisor-select {
  background-color: var(--bg-section-alt);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.2s;
  color: var(--text-primary);
  width: 100%;
}

.supervisor-select:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-supervisor-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 20px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.btn-supervisor-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(102, 126, 234, 0.3);
}

.btn-supervisor-success {
  background: var(--gradient-success);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 20px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.btn-supervisor-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(40, 167, 69, 0.3);
}

.btn-supervisor-secondary {
  background: #64748b;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 20px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.btn-supervisor-secondary:hover:not(:disabled) {
  background: #475569;
  transform: translateY(-2px);
}

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

.btn-supervisor-info {
  background: linear-gradient(135deg, #0dcaf0, #0d6efd);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 20px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.btn-supervisor-info:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.3);
}

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

.btn-attach-report {
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  color: #4a5568;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-attach-report:hover:not(:disabled) {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

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

.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.attendance-table-wrapper {
  overflow-x: auto;
  margin-top: 12px;
}

.attendance-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.attendance-table th,
.attendance-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
  font-size: 13px;
}

.attendance-table th {
  background: var(--bg-section-alt);
  font-weight: 700;
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.attendance-table td {
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.attendance-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

.supervisor-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  display: inline-block;
}

/* Chat Styles */
.communication-card {
  background: var(--bg-section-alt);
  transition: background-color 0.3s ease;
}

.chat-messages {
  background: var(--bg-chat-messages);
  border-radius: 16px;
  padding: 16px;
  height: 350px;
  overflow-y: auto;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chat-message-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.chat-message-wrapper.sent {
  align-items: flex-end;
}

.chat-message-wrapper.received {
  align-items: flex-start;
}

.chat-message {
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 75%;
  word-wrap: break-word;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.chat-message:hover {
  filter: brightness(0.95);
}

.chat-message.received {
  background: var(--bg-chat-received);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.chat-message.sent {
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message .message-text {
  line-height: 1.5;
  font-size: 13px;
}

.chat-message .message-meta {
  font-size: 10px;
  margin-top: 5px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-message.received .message-meta {
  color: #64748b;
}

.chat-message.sent .message-meta {
  color: rgba(255, 255, 255, 0.8);
}

.chat-placeholder {
  text-align: center;
  color: #94a3b8;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.chat-input-group textarea {
  border-radius: 12px;
  resize: vertical;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========== GENERAL SUPERVISOR STYLES ========== */
.general-supervisor-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gs-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.gs-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.gs-card h3 i {
  color: #667eea;
}

.gs-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.gs-team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-section-alt);
  border-radius: 12px;
  transition: all 0.2s, background-color 0.3s ease;
}

.gs-team-member:hover {
  background: #f0f4ff;
  transform: translateX(4px);
}

[data-theme="dark"] .gs-team-member:hover {
  background: #252540;
}

.gs-team-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.gs-team-info {
  flex: 1;
  min-width: 0;
}

.gs-team-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.gs-team-role {
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.gs-team-stats {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.gs-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gs-select {
  background-color: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.2s;
  min-width: 150px;
}

.gs-select:focus {
  border-color: #667eea;
  outline: none;
}

.gs-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gs-job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: var(--bg-section-alt);
  border-radius: 12px;
  transition: all 0.2s, background-color 0.3s ease;
  flex-wrap: wrap;
  gap: 10px;
}

.gs-job-item:hover {
  background: #f0f4ff;
}

[data-theme="dark"] .gs-job-item:hover {
  background: #252540;
}

.gs-job-info {
  flex: 1;
  min-width: 180px;
}

.gs-job-service {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.gs-job-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  transition: color 0.3s ease;
}

.gs-status-control {
  display: flex;
  flex-direction: column;
}

.gs-status-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-gs-start {
  flex: 1;
  padding: 10px 16px;
  background: #e8f0fe;
  color: #0d6efd;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  min-width: 140px;
}

.btn-gs-start:hover:not(:disabled) {
  background: #0d6efd;
  color: white;
  transform: translateY(-2px);
}

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

.btn-gs-complete {
  flex: 1;
  padding: 10px 16px;
  background: #e0f2e9;
  color: #1e7b48;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  min-width: 160px;
}

.btn-gs-complete:hover:not(:disabled) {
  background: #1e7b48;
  color: white;
  transform: translateY(-2px);
}

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

.btn-validate-payment {
  width: 100%;
  padding: 12px;
  background: var(--gradient-success);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.btn-validate-payment:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(40, 167, 69, 0.4);
}

/* ========== GS COMMUNICATION STYLES ========== */
.gs-card.communication-card .chat-messages {
  background: var(--bg-chat-messages);
  border-radius: 16px;
  padding: 16px;
  height: 350px;
  overflow-y: auto;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gs-card.communication-card .chat-input-group textarea {
  border-radius: 12px;
  resize: vertical;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* ========== REPORT HISTORY ========== */
.report-creation-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-history-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-history-list {
  max-height: 300px;
  overflow-y: auto;
}

.report-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-section-alt);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.report-history-item:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

.report-history-info {
  flex: 1;
}

.report-history-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 4px;
}

.report-history-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.report-history-actions {
  display: flex;
  gap: 8px;
}

.btn-report-download {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-report-download:hover {
  background: var(--bg-hover);
  transform: scale(1.1);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 2px dashed var(--border-dashed);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.empty-state i {
  font-size: 52px;
  color: #cbd5e0;
  margin-bottom: 14px;
}

.empty-state h4 {
  color: var(--text-secondary);
  margin-bottom: 6px;
  transition: color 0.3s ease;
  font-size: 16px;
}

.empty-state p {
  color: var(--text-light);
  transition: color 0.3s ease;
  font-size: 13px;
}

/* ========== TOAST NOTIFICATION ========== */
.toast-container {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 16px;
  z-index: 5000;
}

.toast-notification {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
  animation: slideInRight 0.3s ease-out;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

/* ========== FORM GROUP ========== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-size: 13px;
  transition: color 0.3s ease;
}

.form-group label i {
  color: #667eea;
  font-size: 15px;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-input);
  color: var(--text-primary);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[readonly] {
  background-color: var(--bg-section-alt);
  cursor: not-allowed;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
  .jobs-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 1024px) {
  .top-bar {
    padding: 0 16px;
  }
  
  .top-bar-title {
    font-size: 18px;
  }
  
  .gs-team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Show mobile header */
  .mobile-header {
    display: flex;
  }
  
  /* Sidebar off-canvas on mobile */
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 1100;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-overlay {
    display: none;
    z-index: 1099;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  .sidebar-close-btn {
    display: flex;
  }
  
  /* Main content full width */
  .main-content {
    margin-left: 0;
    padding-top: var(--mobile-header-height);
  }
  
  .top-bar {
    display: none;
  }
  
  /* Adjust content */
  .dashboard-content {
    padding: 16px;
  }
  
  .view-header h2 {
    font-size: 20px;
  }
  
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .payment-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .login-card {
    margin: 16px;
    padding: 28px 20px;
  }
  
  .profile-card {
    margin: 0;
    padding: 20px;
  }
  
  .info-row {
    flex-direction: column;
    gap: 6px;
  }
  
  .gs-filters {
    flex-direction: column;
  }
  
  .gs-status-actions {
    flex-direction: column;
  }
  
  .btn-gs-start,
  .btn-gs-complete {
    width: 100%;
  }
  
  .report-actions {
    flex-direction: column;
  }
  
  .report-actions button {
    width: 100%;
    justify-content: center;
  }
  
  .logout-modal-actions {
    flex-direction: column;
  }
  
  .logout-modal-actions button {
    width: 100%;
    justify-content: center;
  }
  
  .gs-job-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .payment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .payment-amount {
    text-align: left;
    width: 100%;
  }
  
  .chat-message {
    max-width: 85%;
  }

  .report-history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .report-history-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .report-history-meta {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .gs-team-grid {
    grid-template-columns: 1fr;
  }
  
  .job-actions {
    flex-direction: column;
  }
  
  .btn-action {
    width: 100%;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .chat-message {
    max-width: 90%;
  }
  
  .login-card {
    padding: 24px 16px;
  }
  
  .login-header h3 {
    font-size: 22px;
  }
}