/* ========================================
   🎨 MODERN USER PROFILE - DESIGN SYSTEM
   ======================================== */

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

:root {
  /* Brand Colors */
  --primary-color: #1a1a1a;
  --secondary-color: #ffd700;

  /* Modern Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-gradient: #0071e3;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.18);

  /* Text Colors */
  --text-primary: #1a202c;
  --text-secondary: #718096;
  --text-muted: #a0aec0;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
    'Cantarell', 'Helvetica Neue', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   🎯 HEADER - Fixed Top Navigation
   ======================================== */
.checkin-mkt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  box-shadow: var(--shadow-md);
  z-index: 99;
  transition: all var(--transition-base);
}

.checkin-mkt-logo {
  height: 48px;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.checkin-mkt-logo:hover {
  transform: scale(1.05);
}

/* Notification Bell Container */
.checkin-mkt-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkin-mkt-header-right .notification-bell-container {
  position: relative;
  display: flex;
  align-items: center;
}

.checkin-mkt-header-right .notification-bell-container .staff-notification-bell {
  position: relative;
  top: auto;
  right: auto;
  width: 44px;
  height: 44px;
  background: #ff9500;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
}

.checkin-mkt-header-right .notification-bell-container .staff-notification-bell:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.checkin-mkt-notification-btn {
  position: relative;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.checkin-mkt-notification-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.checkin-mkt-notification-btn:active {
  transform: scale(0.95);
}

.checkin-mkt-notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff6b6b;
  color: #fff;
  border-radius: var(--border-radius-full);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  animation: pulse 2s infinite;
}

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

/* ========================================
   📦 MAIN CONTAINER
   ======================================== */
.checkin-mkt-user-profile-container {
  max-width: 520px;
  margin: 96px auto 88px;
  padding: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   👤 PROFILE HEADER SECTION
   ======================================== */
.checkin-mkt-profile-header {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
}

.checkin-mkt-profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--bg-gradient);
  opacity: 0.1;
  z-index: 0;
}

.checkin-mkt-profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.checkin-mkt-avatar-section {
  position: relative;
}

.checkin-mkt-user-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.checkin-mkt-logout-btn {
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: var(--border-radius-full);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.checkin-mkt-logout-btn:hover {
  transform: translateY(-2px) rotate(90deg);
  box-shadow: var(--shadow-md);
}

.checkin-mkt-logout-btn:active {
  transform: translateY(0) rotate(90deg);
}

.checkin-mkt-user-role {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.checkin-mkt-user-role:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.checkin-mkt-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.checkin-mkt-avatar-image {
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  border: 4px solid var(--secondary-color);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.checkin-mkt-avatar-image:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.checkin-mkt-user-info {
  text-align: center;
  width: 100%;
}

.checkin-mkt-name-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.checkin-mkt-greeting,
.checkin-mkt-display-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.checkin-mkt-greeting {
  color: var(--text-secondary);
  font-weight: 500;
}

.checkin-mkt-user-email {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
}

.checkin-mkt-user-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  text-align: left;
  background: var(--bg-secondary);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-xs);
}

.checkin-mkt-user-details > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.checkin-mkt-user-details > div:last-child {
  border-bottom: none;
}

.checkin-mkt-user-details .label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkin-mkt-user-details span:not(.label),
.checkin-mkt-user-details a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.checkin-mkt-user-details a {
  color: #0071e3;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.checkin-mkt-user-details a:hover {
  color: #0071e3;
  text-decoration: underline;
}

/* Sticky action buttons container */
.profile-actions-sticky {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 1);
  padding: 16px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.checkin-mkt-edit-profile-btn,
.checkin-mkt-salary-btn,
.checkin-mkt-request-btn {
  width: auto;
  padding: 14px 20px;
  background: var(--bg-gradient);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.checkin-mkt-edit-profile-btn::before {
  content: '\f304';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.checkin-mkt-salary-btn {
  background: #34c759;
}

.checkin-mkt-salary-btn::before {
  content: '\f53a';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.checkin-mkt-request-btn {
  background: #ff9500;
}

.checkin-mkt-request-btn i {
  margin-right: 4px;
}

.checkin-mkt-edit-profile-btn:hover,
.checkin-mkt-salary-btn:hover,
.checkin-mkt-request-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.checkin-mkt-edit-profile-btn:active,
.checkin-mkt-salary-btn:active,
.checkin-mkt-request-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* Stats và Tabs đã bị xóa - không cần nữa */

/* ========================================
   📦 MODALS & POPUPS
   ======================================== */
.checkin-mkt-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 100; /* Tăng z-index để che hết các element khác */
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  animation: fadeIn 0.3s ease;
  pointer-events: auto; /* Chắc chắn modal có thể bắt events */
}

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

.checkin-mkt-popup-content {
  background: rgba(255, 255, 255, 0.98);
  padding: var(--spacing-xl);
  border-radius: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 113, 227, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(0, 113, 227, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.checkin-mkt-popup-content::-webkit-scrollbar {
  width: 8px;
}

.checkin-mkt-popup-content::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
}

.checkin-mkt-popup-content::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--border-radius-md);
}

.checkin-mkt-popup-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.checkin-mkt-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(107, 114, 128, 0.7);
  background: rgba(255, 59, 48, 0.08);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  border: 2px solid rgba(255, 59, 48, 0.15);
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.checkin-mkt-popup-close:hover {
  background: #ff3b30;
  color: #fff;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(220, 38, 38, 0.3);
  border-color: transparent;
}

.checkin-mkt-popup-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* ========================================
   ✏️ MODERN EDIT PROFILE MODAL
   ======================================== */
/* OLD STYLES REMOVED - Now using modern-edit-modal.css */

/* ========================================
   🔐 LOGIN MODAL
   ======================================== */
.checkin-mkt-login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  animation: fadeIn 0.3s ease;
}

.checkin-mkt-login-modal-content {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkin-mkt-login-modal-content .checkin-mkt-logo {
  margin-bottom: var(--spacing-lg);
}

.checkin-mkt-app-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.checkin-mkt-login-modal-content h2 {
  margin-bottom: var(--spacing-sm);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.checkin-mkt-login-modal-content > p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-size: 14px;
}

.checkin-mkt-login-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: left;
}

.checkin-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.checkin-divider::before,
.checkin-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ccc;
  margin: 0 0.5rem;
}

.checkin-mkt-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.checkin-mkt-input:focus {
  border-color: var(--secondary-color);
}

/* Password Toggle - Modern Design */
.password-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.password-wrapper input[type='password'],
.password-wrapper input[type='text'] {
  padding-right: 50px;
  box-sizing: border-box;
  width: 100%;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: rgba(0, 113, 227, 0.1);
  border: 2px solid rgba(0, 113, 227, 0.15);
  cursor: pointer;
  font-size: 16px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.toggle-password:hover {
  background: rgba(0, 113, 227, 0.2);
  border-color: rgba(0, 113, 227, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.toggle-password:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.toggle-password:active {
  transform: translateY(-50%) scale(0.95);
}

/* Verified Icon - Removed duplicate, using the one in form-group section */

.checkin-mkt-rememberme {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.checkin-mkt-rememberme input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  flex-shrink: 0;
}

.checkin-mkt-rememberme input[type='checkbox']:hover {
  border-color: #0071e3;
}

.checkin-mkt-rememberme input[type='checkbox']:checked {
  background: var(--bg-gradient);
  border-color: #0071e3;
}

.checkin-mkt-rememberme input[type='checkbox']:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.checkin-mkt-button-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.checkin-mkt-login-btn {
  padding: 14px 24px;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
}

.checkin-mkt-manual-btn {
  background: var(--bg-gradient);
  color: #fff;
}

.checkin-mkt-facebook-btn {
  background: #1877f2;
  color: #fff;
}

.checkin-mkt-login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.checkin-mkt-login-btn:active:not(:disabled) {
  transform: translateY(0);
}

.checkin-mkt-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Button Loading State */
.checkin-mkt-login-btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.checkin-mkt-login-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: button-spin 0.6s linear infinite;
}

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

#google-login-btn {
  margin: 0 auto;
}

#login-error {
  padding: var(--spacing-md);
  background: #fee;
  border: 1px solid #fcc;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  color: #c33;
  text-align: left;
}

/* ========================================
   🧭 NAVIGATION BAR - Bottom Fixed
   ======================================== */
.checkin-mkt-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.checkin-mkt-nav-item {
  color: var(--text-secondary);
  text-align: center;
  font-size: 11px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  position: relative;
}

.checkin-mkt-nav-item i {
  font-size: 20px;
  transition: transform var(--transition-base);
}

.checkin-mkt-nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.checkin-mkt-nav-item:hover i {
  transform: scale(1.1);
}

.checkin-mkt-nav-item.active {
  color: #0071e3;
  background: rgba(0, 113, 227, 0.1);
}

.checkin-mkt-nav-item.active i {
  transform: scale(1.15);
}

/* ========================================
   📋 HISTORY & SALARY CARDS
   ======================================== */
.checkin-history-cards {
  display: grid;
  gap: var(--spacing-md);
  max-height: 65vh;
  overflow-y: auto;
  padding: var(--spacing-xs);
}

.checkin-history-cards::-webkit-scrollbar {
  width: 6px;
}

.checkin-history-cards::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
}

.checkin-history-cards::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--border-radius-md);
}

.checkin-card {
  background: var(--bg-primary);
  border: 2px solid var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.checkin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--bg-gradient);
}

.checkin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #0071e3;
}

.checkin-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
}

.checkin-card > div:last-child {
  margin-bottom: 0;
}

.checkin-card .label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkin-card .value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

.status-late {
  color: #ff6b6b;
  font-weight: 700;
  background: rgba(255, 107, 107, 0.1);
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 12px;
}

.status-early {
  color: #34c759;
  font-weight: 700;
  background: rgba(52, 199, 89, 0.1);
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 12px;
}

.status-normal {
  color: #0071e3;
  font-weight: 700;
  background: rgba(0, 113, 227, 0.1);
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 12px;
}

.salary-filter {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--spacing-sm);
  background: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
}

.salary-filter select {
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}

.salary-filter select:hover {
  border-color: #0071e3;
}

.salary-filter select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.salary-filter button {
  padding: 12px 24px;
  background: var(--bg-gradient);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.salary-filter button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.salary-filter button:active {
  transform: translateY(0);
}

#salary-cards-body {
  display: grid;
  gap: var(--spacing-md);
}

.no-data {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  padding: var(--spacing-xl);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  font-weight: 500;
}

/* ========================================
   💙 FACEBOOK SYNC POPUP
   ======================================== */
#facebook-sync-popup #fb-login-btn,
#fb-login-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #1877f2;
  color: #fff;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
}

#facebook-sync-popup #fb-login-btn:hover,
#fb-login-btn:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#facebook-sync-popup h3 {
  margin: 0 0 var(--spacing-lg);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.5px;
}

#fb-profile {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
}

#fb-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  border: 3px solid #1877f2;
  box-shadow: var(--shadow-sm);
}

#fb-username {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

#fb-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

#fb-tabs .tab {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

#fb-tabs .tab:hover {
  border-color: #1877f2;
  color: var(--text-primary);
}

#fb-tabs .tab.active {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
  box-shadow: var(--shadow-md);
}

.progress-container {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
}

.progress-container p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar {
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-full);
  height: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress {
  background: var(--bg-gradient);
  height: 100%;
  border-radius: var(--border-radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

#fb-result {
  max-height: 50vh;
  overflow-y: auto;
  padding: var(--spacing-xs);
}

#fb-result::-webkit-scrollbar {
  width: 6px;
}

#fb-result::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
}

#fb-result::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--border-radius-md);
}

#fb-result p {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

#fb-result .post {
  background: var(--bg-primary);
  border: 2px solid var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 13px;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

#fb-result .post:hover {
  border-color: #1877f2;
  box-shadow: var(--shadow-sm);
}

#fb-result .post div {
  margin-bottom: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-sm);
}

#fb-result .post div:last-child {
  margin-bottom: 0;
}

/* ========================================
   ⏳ LOADING MODAL
   ======================================== */
#fb-loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.2s ease;
}

#fb-loading-modal .loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #0071e3;
  border-radius: var(--border-radius-full);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 600px) {
  #facebook-sync-popup .checkin-mkt-popup-content {
    width: 95%;
    padding: 15px;
  }

  #fb-login-btn {
    font-size: 14px;
    padding: 10px;
  }

  #fb-tabs {
    gap: 5px;
  }

  #fb-tabs .tab {
    padding: 4px 8px;
    font-size: small;
  }

  #fb-avatar {
    width: 40px;
    height: 40px;
  }

  #fb-username {
    font-size: 14px;
  }

  #fb-result .post {
    font-size: 13px;
    padding: 12px;
  }
}

/* ========================================
   📜 POLICY LINKS
   ======================================== */
.checkin-mkt-policy-links {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
}

.checkin-mkt-policy-links p {
  line-height: 1.6;
}

.checkin-mkt-policy-link {
  color: #0071e3;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.checkin-mkt-policy-link:hover {
  color: #0071e3;
  border-bottom-color: #0071e3;
}

/* ========================================
   📱 RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 24px;
    --spacing-lg: 20px;
  }

  .checkin-mkt-user-profile-container {
    margin: 72px 12px 84px;
  }

  .checkin-mkt-header {
    padding: 10px 16px;
  }

  .checkin-mkt-logo {
    height: 40px;
  }

  .checkin-mkt-profile-header {
    padding: var(--spacing-lg);
  }

  .checkin-mkt-avatar-image {
    width: 100px;
    height: 100px;
  }

  .checkin-mkt-greeting,
  .checkin-mkt-display-name {
    font-size: 20px;
  }

  .checkin-mkt-tab-btn {
    font-size: 12px;
    padding: 10px 12px;
  }

  .checkin-mkt-tab-btn i {
    font-size: 12px;
  }

  .salary-filter {
    grid-template-columns: 1fr 1fr;
  }

  .salary-filter button {
    grid-column: 1 / -1;
  }

  #fb-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --spacing-xl: 20px;
    --spacing-lg: 16px;
    --spacing-md: 12px;
  }

  .checkin-mkt-header {
    padding: 8px 20px;
  }

  .checkin-mkt-logo {
    height: 36px;
  }

  .checkin-mkt-notification-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .checkin-mkt-profile-header {
    padding: var(--spacing-md);
  }

  .checkin-mkt-profile-header::before {
    height: 100px;
  }

  .checkin-mkt-user-role {
    font-size: 11px;
    padding: 6px 12px;
  }

  .checkin-mkt-logout-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .checkin-mkt-avatar-image {
    width: 90px;
    height: 90px;
  }

  .checkin-mkt-greeting,
  .checkin-mkt-display-name {
    font-size: 18px;
  }

  .checkin-mkt-user-email {
    font-size: 13px;
  }

  .checkin-mkt-user-details {
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .checkin-mkt-user-details .label {
    font-size: 11px;
  }

  .checkin-mkt-user-details span:not(.label),
  .checkin-mkt-user-details a {
    font-size: 13px;
  }

  .checkin-stats {
    gap: var(--spacing-sm);
  }

  .checkin-stats > div {
    padding: var(--spacing-md);
  }

  .checkin-stats .stat-label {
    font-size: 11px;
  }

  .checkin-stats .stat-value {
    font-size: 18px;
  }

  .checkin-mkt-tab-headers {
    grid-template-columns: 1fr;
  }

  .checkin-mkt-tab-btn {
    font-size: 12px;
    padding: 10px;
  }

  .checkin-mkt-popup {
    padding: var(--spacing-md);
  }

  .checkin-mkt-popup-content {
    padding: var(--spacing-lg);
    max-height: 85vh;
  }

  .checkin-mkt-popup-close {
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .checkin-mkt-login-modal-content {
    padding: var(--spacing-lg);
  }

  /* Mobile-Optimized Modal Tabs */
  .checkin-mkt-edit-tabs {
    margin-bottom: 24px;
    padding: 5px;
    gap: 6px;
  }

  .checkin-mkt-edit-tab-btn {
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 10px;
  }

  .checkin-mkt-edit-tab-pane form {
    gap: 18px;
  }

  /* Mobile Form Groups */
  .form-group {
    gap: 8px;
  }

  .form-group label {
    font-size: 11px;
  }

  .form-group input,
  .form-group select,
  .checkin-mkt-input {
    padding: 13px 15px;
    font-size: 15px;
    border-radius: 12px;
  }

  .form-group input[type='file'] {
    padding: 12px;
    font-size: 13px;
  }

  .form-group img {
    max-width: 160px;
    border-radius: 12px;
  }

  .checkin-mkt-save-btn,
  .checkin-mkt-login-btn {
    padding: 14px 24px;
    font-size: 14px;
    border-radius: 12px;
  }

  .salary-filter {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .salary-filter select,
  .salary-filter button {
    padding: 12px 14px;
    font-size: 13px;
  }

  .checkin-card {
    padding: var(--spacing-md);
  }

  .checkin-mkt-nav-bar {
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }

  .checkin-mkt-nav-item {
    font-size: 10px;
    padding: 6px 8px;
    min-width: 50px;
  }

  .checkin-mkt-nav-item i {
    font-size: 18px;
  }

  #fb-tabs {
    grid-template-columns: 1fr;
  }

  #fb-tabs .tab {
    padding: 10px 12px;
    font-size: 12px;
  }

  .checkin-mkt-policy-links {
    font-size: 11px;
    padding: var(--spacing-sm);
  }
}

/* ========================================
   GLASSMORPHISM LOADER (Shared with app-tho)
   ======================================== */
.checkin-glassmorphism-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.checkin-glass-container {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: checkin-fade-in-scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkin-spinner-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkin-spinner-wrapper::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.9);
  border-right-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: checkin-spin 1s linear infinite;
}

.checkin-spinner-wrapper::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: checkin-pulse-scale 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.checkin-spinner-inner {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.checkin-spinner-inner::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 3px solid transparent;
  border-top-color: var(--primary-color, #00d4aa);
  border-right-color: var(--primary-color, #00d4aa);
  border-radius: 50%;
  animation: checkin-spin 0.6s linear infinite;
}

.checkin-loader-text {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes checkin-fade-in-scale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes checkin-pulse-scale {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* ========================================
   🌙 DARK MODE SUPPORT FOR MODAL
   ======================================== */
@media (prefers-color-scheme: dark) {
  .checkin-mkt-edit-tabs {
    background: rgba(0, 113, 227, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .checkin-mkt-edit-tab-btn {
    color: rgba(255, 255, 255, 0.7);
  }

  .checkin-mkt-edit-tab-btn:hover {
    color: rgba(255, 255, 255, 0.95);
  }

  .checkin-mkt-edit-tab-btn.active {
    color: #fff;
  }

  .form-group label {
    color: rgba(255, 255, 255, 0.9);
  }

  .form-group input,
  .form-group select {
    background: rgba(30, 30, 30, 0.9);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 113, 227, 0.2);
  }

  .form-group input:hover,
  .form-group select:hover {
    border-color: rgba(0, 113, 227, 0.35);
    background: rgba(35, 35, 35, 0.95);
  }

  .form-group input:focus,
  .form-group select:focus {
    background: rgba(40, 40, 40, 1);
    border-color: #0071e3;
  }

  .form-group input[type='file'] {
    background: rgba(0, 113, 227, 0.08);
    border-color: rgba(0, 113, 227, 0.4);
    color: rgba(255, 255, 255, 0.9);
  }

  .form-group input[type='file']:hover {
    background: rgba(0, 113, 227, 0.12);
  }

  .form-group img {
    border-color: rgba(0, 113, 227, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(0, 113, 227, 0.2);
  }

  .toggle-password {
    background: rgba(0, 113, 227, 0.15);
    border-color: rgba(0, 113, 227, 0.25);
  }

  .toggle-password:hover {
    background: rgba(0, 113, 227, 0.25);
    border-color: rgba(0, 113, 227, 0.4);
  }

  .verified-icon {
    background: rgba(52, 199, 89, 0.15);
    border-color: rgba(52, 199, 89, 0.4);
  }
}

/* ========================================
   📱 ADDITIONAL RESPONSIVE ENHANCEMENTS
   ======================================== */
@media (max-width: 480px) {
  .form-group input,
  .form-group select {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .checkin-mkt-popup-content {
    padding: 20px;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
  }

  .checkin-mkt-save-btn {
    padding: 16px 28px;
    font-size: 15px;
    width: 100%;
  }

  /* Mobile optimizations */
  .form-group {
    gap: 6px;
  }

  .form-group input[type='file'] {
    font-size: 12px;
  }

  .toggle-password {
    width: 38px;
    height: 38px;
    right: 10px;
  }

  .verified-icon {
    font-size: 14px;
    padding: 4px 8px;
  }
}

@media (max-width: 768px) {
  .checkin-mkt-popup-content {
    max-width: 95vw;
    max-height: 85vh;
    padding: 24px;
    border-radius: 24px;
  }

  .checkin-mkt-edit-tabs {
    margin-bottom: 10px;
  }

  .checkin-mkt-save-btn {
    margin-top: 20px;
    padding: 15px 28px;
  }
}

@media (min-width: 1024px) {
  .form-group input,
  .form-group select {
    padding: 16px 20px;
    font-size: 15px;
  }

  .checkin-mkt-save-btn {
    padding: 16px 36px;
  }
}

/* ========================================
   ✨ SMOOTH TRANSITIONS & MICRO-INTERACTIONS
   ======================================== */
/* Focus ring animation */
@keyframes focusRing {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
  }
}

.form-group input:focus,
.form-group select:focus {
  animation: focusRing 0.3s ease-out forwards;
}

/* ========================================
   🎬 ENHANCED ANIMATIONS & INTERACTIONS
   ======================================== */

/* File Input Drag & Drop Hover */
.form-group input[type='file']::-webkit-file-upload-button {
  background: #0071e3;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 12px;
}

.form-group input[type='file']::-webkit-file-upload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 113, 227, 0.4);
}

.form-group input[type='file']::-webkit-file-upload-button:active {
  transform: translateY(0);
}

/* Avatar Preview Animation */
@keyframes avatarLoad {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

#edit-avatar-preview,
#edit-cccd-front-preview,
#edit-cccd-back-preview {
  animation: avatarLoad 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Form Group Stagger Animation */
.form-group {
  animation: formGroupSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.form-group:nth-child(1) {
  animation-delay: 0.05s;
}
.form-group:nth-child(2) {
  animation-delay: 0.1s;
}
.form-group:nth-child(3) {
  animation-delay: 0.15s;
}
.form-group:nth-child(4) {
  animation-delay: 0.2s;
}
.form-group:nth-child(5) {
  animation-delay: 0.25s;
}
.form-group:nth-child(6) {
  animation-delay: 0.3s;
}
.form-group:nth-child(7) {
  animation-delay: 0.35s;
}
.form-group:nth-child(8) {
  animation-delay: 0.4s;
}
.form-group:nth-child(9) {
  animation-delay: 0.45s;
}

@keyframes formGroupSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Button Loading State */
.checkin-mkt-save-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.checkin-mkt-save-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

/* Input Field Success/Error State - Removed (using HTML5 validation) */

/* Label Float Animation */
.form-group label {
  position: relative;
  transform-origin: left center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label {
  transform: translateY(-24px) scale(0.85);
  color: #0071e3;
}

/* Tab Indicator Line */
.checkin-mkt-edit-tabs::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #0071e3;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.checkin-mkt-edit-tab-btn.active ~ .checkin-mkt-edit-tabs::after {
  width: 50%;
}

/* Smooth Select Dropdown */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 42px;
}

/* ========================================
   🔔 NOTIFICATIONS TAB STYLES
   ======================================== */
.notification-section {
  background: var(--bg-primary);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-base);
}

.notification-section:hover {
  box-shadow: var(--shadow-md);
}

.notification-section-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.notification-icon {
  width: 48px;
  height: 48px;
  background: #0071e3;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon i {
  font-size: 20px;
  color: white;
}

.notification-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Status Badge */
.notification-status {
  margin-bottom: var(--spacing-md);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--border-radius-full);
  font-size: 13px;
  font-weight: 500;
}

.status-badge.status-subscribed {
  background: #dcfce7;
  color: #166534;
}

.status-badge.status-unsubscribed {
  background: #fff3e0;
  color: #8a5200;
}

.status-badge.status-denied {
  background: #ffe5e3;
  color: #a32a24;
}

.status-badge.status-unknown,
.status-badge.status-not-asked {
  background: #f2f2f7;
  color: #475569;
}

/* Toggle Row - combines toggle and status badge */
.notification-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
}

.notification-toggle-row .notification-toggle-main {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 0;
  background: none;
  margin-bottom: 0;
}

.notification-toggle-row .status-badge {
  flex-shrink: 0;
}

/* Test notification button - align right */
.test-notification-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--spacing-md);
}

/* Toggle Switch */
.notification-toggle-main {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  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: #c7c7cc;
  transition: var(--transition-base);
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--transition-base);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: #0071e3;
}

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

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

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Warning Box */
.notification-warning {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: #fff3e0;
  border: 1px solid #fcd34d;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
}

.notification-warning.error {
  background: #ffe5e3;
  border-color: #fca5a5;
}

.notification-warning i {
  font-size: 20px;
  color: #e28400;
  flex-shrink: 0;
}

.notification-warning.error i {
  color: #e0352b;
}

.notification-warning strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-warning p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Notification Types */
.notification-types {
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
}

.notification-types h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-types h5 i {
  color: #0071e3;
}

.notification-type-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notification-type-item:hover {
  border-color: #0071e3;
  background: #f8f8ff;
}

.notification-type-item:last-child {
  margin-bottom: 0;
}

.notification-type-item input[type='checkbox'] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.type-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.type-icon i {
  font-size: 16px;
}

/* Different colors for each notification type */
.type-icon.icon-booking {
  background: #dbeafe;
}
.type-icon.icon-booking i {
  color: #0071e3;
}

.type-icon.icon-invoice {
  background: #e3f7e9;
}
.type-icon.icon-invoice i {
  color: #2aa14a;
}

.type-icon.icon-review {
  background: #fff3e0;
}
.type-icon.icon-review i {
  color: #e28400;
}

.type-icon.icon-approval {
  background: #e3f0fc;
}
.type-icon.icon-approval i {
  color: #0071e3;
}

.type-icon.icon-salary {
  background: #fce7f3;
}
.type-icon.icon-salary i {
  color: #db2777;
}

.type-icon.icon-general {
  background: #f3e8ff;
}
.type-icon.icon-general i {
  color: #9333ea;
}

.type-info {
  flex: 1;
}

.type-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.type-info small {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Test Notification Button */
#test-notification-container {
  margin-top: var(--spacing-md);
}

.modern-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #0071e3;
  border-radius: var(--border-radius-md);
  color: #0071e3;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.modern-btn-secondary:hover {
  background: #0071e3;
  color: white;
}

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

.modern-btn-secondary i {
  font-size: 14px;
}

/* Mobile Responsive for Notifications */
@media (max-width: 768px) {
  .notification-section {
    padding: var(--spacing-md);
  }

  .notification-section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .notification-toggle-main {
    flex-direction: column;
    text-align: center;
  }

  .notification-type-item {
    padding: var(--spacing-sm);
  }

  .type-icon {
    width: 32px;
    height: 32px;
  }

  .type-info strong {
    font-size: 13px;
  }

  .type-info small {
    font-size: 11px;
  }
}
