@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Light Theme Color System */
  --bg-main: #f4f6fb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --accent-cyan: #0ea5e9;
  --accent-teal: #0d9488;
  --accent-purple: #8b5cf6;
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --success-dark: #047857;
  
  --danger: #f43f5e;
  --danger-light: #fff1f2;
  --danger-dark: #be123c;

  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-dark: #b45309;

  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 28px -4px rgba(99, 102, 241, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -8px rgba(99, 102, 241, 0.14), 0 8px 18px -4px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.05) 0px, transparent 50%);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Entrance Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes pulseLiveDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.main-wrapper, .card-custom, .stat-widget {
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphic Navbar */
.app-header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 2rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #06b6d4 100%);
  color: white;
  font-weight: 800;
  font-size: 1.35rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-icon {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.45);
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #0f172a 30%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-link-custom {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.6rem 1.15rem;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  position: relative;
}

.nav-link-custom:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-1px);
}

.nav-link-custom.active {
  color: var(--primary-dark);
  background: var(--primary-light);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

/* User Profile Badge */
.user-pill {
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.user-pill:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.4);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Main Layout Wrapper */
.main-wrapper {
  flex: 1;
  padding: 2.25rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Cards System */
.card-custom {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.85rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Form inputs & controls */
.form-label-custom, .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

/* Gradient Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
  background-size: 200% auto;
  color: white;
  font-weight: 700;
  border: none;
  padding: 0.88rem 1.6rem;
  border-radius: 12px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
}

.btn-primary-custom:active {
  transform: translateY(0);
}

/* Clock & Geofence Card */
.clock-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}

.clock-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.clock-time {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.clock-date {
  font-size: 1.2rem;
  color: #a5b4fc;
  font-weight: 600;
  margin-top: 0.35rem;
}

/* Punch Action Buttons */
.btn-punch-in {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.38);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.btn-punch-in:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
}

.btn-punch-out {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: white;
  border: none;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.38);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.btn-punch-out:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.5);
}

/* Modern Table */
.table-custom {
  width: 100%;
  border-collapse: collapse;
}

.table-custom th {
  background: #f8fafc;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 1.15rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
  letter-spacing: 0.04em;
}

.table-custom td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.93rem;
  transition: background 0.15s ease;
}

.table-custom tr:hover td {
  background: #f8fafc;
}

/* Stat Widgets Grid */
.stat-widget {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-widget:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.3);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-icon-blue {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.stat-lbl {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* Status Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}

.chip-success {
  background: var(--success-light);
  color: var(--success-dark);
  border: 1px solid #a7f3d0;
}

.chip-danger {
  background: var(--danger-light);
  color: var(--danger-dark);
  border: 1px solid #fecdd3;
}

.chip-primary {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #c7d2fe;
}

.calendar-container {
  overflow-x: auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  min-width: 850px;
}

.calendar-weekday {
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.5rem;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.day-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  justify-content: center;
}

.calendar-day-card {
  min-height: 105px;
  border-radius: 12px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  background: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.calendar-day-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.12);
  z-index: 10;
}

.punch-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

/* Premium Login & Auth Screen */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  margin: 0;
}

.login-body::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.login-body::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.25);
  padding: 2.75rem 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header .brand-icon {
  margin: 0 auto 1.25rem auto;
  width: 58px;
  height: 58px;
  font-size: 1.75rem;
  border-radius: 18px;
}

.demo-chip {
  background: var(--primary-light);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-top: 1.25rem;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.demo-chip:hover {
  transform: translateY(-2px);
  background: #e0e7ff;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.18);
}

/* Premium Text Gradients & UI Aesthetics */
.text-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #4f46e5 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(99, 102, 241, 0.06) !important;
}

.card-header {
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
}

.btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.15rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45) !important;
}

.table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table thead th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.05em !important;
  padding: 0.95rem 1.15rem !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.table tbody td {
  padding: 0.95rem 1.15rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.92rem !important;
}

.badge {
  padding: 0.45em 0.85em !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  font-size: 0.78rem !important;
}

/* Responsive Header, Mobile Hamburger & Offcanvas Sidebar Drawer */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.mobile-nav-toggle {
  display: none;
  background: #f1f5f9;
  color: var(--primary);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.mobile-nav-toggle:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.desktop-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  min-width: 0; /* Prevents overflow pushing header-left or header-right out */
  margin: 0 0.75rem;
  padding: 0.2rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.notif-bell-btn {
  position: relative;
  background: #f1f5f9;
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-bell-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.notif-badge {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid white;
}

.notif-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 52px;
  width: 340px;
  max-height: 480px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.18);
  z-index: 9999;
  overflow: hidden;
  flex-direction: column;
}

/* Mobile Sidebar Drawer Specific Styling */
.mobile-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-section-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  padding-left: 0.75rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.mobile-nav-link i {
  width: 24px;
  font-size: 1.05rem;
}

/* Screen Breakpoint Adjustments for Mobile Header */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
  .desktop-nav {
    display: none !important;
  }
  .app-header {
    padding: 0.65rem 1rem !important;
  }
  .user-pill {
    padding: 0.25rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .desktop-logout-btn {
    display: none !important;
  }
  .main-wrapper {
    padding: 1.25rem 1rem !important;
  }
  .notif-dropdown {
    width: 300px !important;
    right: -40px !important;
  }
}

@media (max-width: 576px) {
  .brand-text {
    font-size: 1.25rem !important;
  }
  .brand-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.15rem !important;
  }
  .mobile-nav-toggle {
    width: 38px !important;
    height: 38px !important;
  }
  .notif-bell-btn {
    width: 38px !important;
    height: 38px !important;
  }
}

/* AI HR Bot Floating Widget & Glassmorphism Chat Drawer */
.ai-bot-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.75rem 1.35rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.ai-bot-trigger-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.55);
}

.ai-live-pulse {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLiveDot 1.8s infinite;
}

.ai-chat-window {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  height: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 110px);
  z-index: 10000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFade 0.3s ease-out forwards;
}

.ai-chat-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
}

.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #f8fafc;
}

.ai-msg {
  display: flex;
  width: 100%;
}

.ai-msg-bot {
  justify-content: flex-start;
}

.ai-msg-user {
  justify-content: flex-end;
}

.ai-msg-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ai-msg-bot .ai-msg-bubble {
  background: white;
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-chips-area::-webkit-scrollbar {
  display: none;
}

/* Print Styles */
@media print {
  body {
    background: white !important;
  }
  .app-header, footer, .nav-link-custom, button, #aiChatWidgetContainer {
    display: none !important;
  }
  .main-wrapper {
    padding: 0 !important;
    max-width: 100% !important;
  }
  #printablePayslip {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}