/*
 * Modern Design System & UI Enhancement
 * Enterprise HRMS & OMS
 * Clean, Modern, Clear & High-Performance Enterprise HRMS UI
 ******************************************************************************/

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --card-radius: 14px;
  --input-radius: 10px;
  --btn-radius: 10px;
  --shadow-subtle: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.03), 0 10px 20px -3px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

html {
  font-size: 15px !important;
}

body {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #334155;
  background-color: #f8fafc;
  letter-spacing: -0.011em;
}

.bg-light {
  background-color: rgb(255 255 255) !important;
}

h1, .h1 { font-size: 1.45rem !important; }
h2, .h2 { font-size: 1.28rem !important; }
h3, .h3 { font-size: 1.15rem !important; }
h4, .h4 { font-size: 1.02rem !important; }
h5, .h5 { font-size: 0.92rem !important; }
h6, .h6 { font-size: 0.82rem !important; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #0f172a;
}

/* ==========================================
   LAYOUT, NAVBAR & SIDEBAR POLISH
   ========================================== */
.menu .app-brand.demo {
  height: 68px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 0 1rem;
  justify-content: center;
}

.app-brand-logo.demo img,
.app-brand-logo-img {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
  width: auto;
  transition: all 0.2s ease;
}

.layout-menu-collapsed:not(.layout-menu-hover) .app-brand-logo-img {
  max-width: 36px !important;
  max-height: 36px !important;
}

.app-brand-text.demo {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}

/* Modern Floating Blurred Navbar */
.layout-navbar {
  border-radius: var(--card-radius) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  margin-top: 12px;
  transition: all 0.3s ease;
}

/* Sidebar Styling */
.menu-vertical {
  border-right: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: none !important;
}

.menu-vertical .menu-inner {
  padding: 0.75rem 0.65rem !important;
}

.menu-header-text {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em !important;
  color: #94a3b8 !important;
  padding: 1.25rem 1rem 0.5rem !important;
}

.menu-vertical .menu-item .menu-link {
  border-radius: var(--input-radius) !important;
  margin: 2px 0 !important;
  padding: 0.55rem 0.95rem !important;
  font-size: 0.86rem !important;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-vertical .menu-item .menu-link:hover {
  background-color: rgba(241, 245, 249, 0.8);
  color: #0f172a;
}

.menu-vertical .menu-item.active > .menu-link {
  background: var(--bs-primary, #696cff) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb, 105, 108, 255), 0.35) !important;
  font-weight: 600;
}

.menu-vertical .menu-item.active > .menu-link i,
.menu-vertical .menu-item.active > .menu-link svg {
  color: #ffffff !important;
}

.menu-vertical .menu-sub .menu-item .menu-link {
  padding-left: 2.5rem !important;
  font-size: 0.82rem !important;
}

/* ==========================================
   CARDS & CONTAINERS
   ========================================== */
.card {
  border-radius: var(--card-radius) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  background-color: #ffffff;
  box-shadow: var(--shadow-card) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative;
  overflow: hidden;
}

.card-hover-lift:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
}

/* Glassmorphism Classes */
.glass-widget {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--card-radius);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--card-radius);
}

/* ==========================================
   HERO GRADIENT BANNERS
   ========================================== */
.card.dash-hero-banner,
.dash-hero-banner {
  background: linear-gradient(135deg, var(--bs-primary, #6366f1) 0%, #1e1b4b 100%) !important;
  color: #ffffff !important;
  border-radius: 18px !important;
  position: relative;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 10px 30px -5px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.35) !important;
}

.dash-hero-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dash-hero-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 140px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dash-hero-banner h1,
.dash-hero-banner h2,
.dash-hero-banner h3,
.dash-hero-banner h4,
.dash-hero-banner h5,
.dash-hero-banner h6,
.dash-hero-banner p {
  color: #ffffff !important;
}

/* ==========================================
   MODERN STAT METRIC CARDS
   ========================================== */
.stat-card-modern {
  padding: 1.25rem 1.15rem;
  border-radius: var(--card-radius);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

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

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform 0.25s ease;
}

.stat-card-modern:hover .stat-icon-wrap {
  transform: scale(1.08) rotate(-3deg);
}

.stat-icon-wrap.primary {
  background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.12);
  color: var(--bs-primary, #6366f1);
}

.stat-icon-wrap.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.stat-icon-wrap.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.stat-icon-wrap.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.stat-icon-wrap.info {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
}

.stat-icon-wrap.purple {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.stat-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==========================================
   BUTTONS & FORM CONTROLS
   ========================================== */
.btn {
  border-radius: var(--btn-radius) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.55rem 1.15rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background-color: var(--bs-primary, #6366f1) !important;
  border-color: var(--bs-primary, #6366f1) !important;
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.3) !important;
  color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus {
  filter: brightness(0.92);
  box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.4) !important;
}

.btn-outline-primary {
  color: var(--bs-primary, #6366f1) !important;
  border-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.4) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary, #6366f1) !important;
  border-color: var(--bs-primary, #6366f1) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.3) !important;
}

.btn-sm {
  padding: 0.38rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 8px !important;
}

.btn-lg {
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  border-radius: 12px !important;
}

.form-control, .form-select {
  border-radius: var(--input-radius) !important;
  border: 1px solid #cbd5e1;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  color: #1e293b;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--bs-primary, #6366f1) !important;
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.18) !important;
  outline: none;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.input-group-text {
  border-radius: var(--input-radius) !important;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.88rem;
}

/* ==========================================
   BADGES & PILLS
   ========================================== */
.badge {
  font-weight: 600;
  padding: 0.38rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.bg-label-primary {
  background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.12) !important;
  color: var(--bs-primary, #6366f1) !important;
}

.bg-label-success {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
}

.bg-label-warning {
  background-color: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
}

.bg-label-danger {
  background-color: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
}

.bg-label-info {
  background-color: rgba(6, 182, 212, 0.12) !important;
  color: #0891b2 !important;
}

.bg-label-secondary {
  background-color: rgba(100, 116, 139, 0.12) !important;
  color: #475569 !important;
}

/* ==========================================
   TABLES
   ========================================== */
.table {
  vertical-align: middle;
  border-color: rgba(226, 232, 240, 0.8) !important;
}

.table th {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background-color: #f8fafc;
  padding: 0.75rem 0.95rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.table td {
  padding: 0.75rem 0.95rem !important;
  font-size: 0.86rem;
  color: #334155;
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
}

.table-hover tbody tr {
  transition: background-color 0.15s ease;
}

.table-hover tbody tr:hover {
  background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.04) !important;
}

/* ==========================================
   PULSE & ANIMATION UTILITIES
   ========================================== */
.pulse-live-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Custom Thin Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================
   DARK MODE PALETTE
   ========================================== */
[data-bs-theme="dark"] body {
  background-color: #0b0f19 !important;
  color: #cbd5e1;
}

[data-bs-theme="dark"] .layout-navbar {
  background-color: rgba(17, 24, 39, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .menu-vertical {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .menu .app-brand.demo {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .app-brand-text.demo {
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .menu-vertical .menu-item .menu-link {
  color: #94a3b8;
}

[data-bs-theme="dark"] .menu-vertical .menu-item .menu-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

[data-bs-theme="dark"] .card {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="dark"] .stat-card-modern {
  background-color: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] h1, 
[data-bs-theme="dark"] h2, 
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4, 
[data-bs-theme="dark"] h5, 
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .stat-number,
[data-bs-theme="dark"] .text-dark {
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .stat-label {
  color: #94a3b8;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-bs-theme="dark"] .input-group-text {
  background-color: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

[data-bs-theme="dark"] .table th {
  background-color: #161f30;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .table td {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #334155;
}
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ==========================================
   RESPONSIVE MOBILE POLISH
   ========================================== */
@media (max-width: 767.98px) {
  .layout-navbar {
    margin-top: 6px;
    border-radius: 10px !important;
    padding: 0.5rem 0.75rem !important;
  }
  .stat-card-modern {
    padding: 1rem;
  }
  .stat-number {
    font-size: 1.35rem;
  }
}

/* ==============================================================================
   FIREHIRE ULTRA-MODERN WORKFORCE ENTERPRISE DESIGN SYSTEM
   Pixel-perfect match to reference UI (Pill Sidebar, Heatmap, Equalizer, KPI Strip)
   ============================================================================== */

:root {
  --firehire-blue: #1877f2;
  --firehire-blue-hover: #1464cc;
  --firehire-blue-subtle: #edf5ff;
  --firehire-canvas: #f6f8fb;
  --firehire-card-border: #edf0f5;
  --firehire-text-dark: #0f172a;
  --firehire-text-muted: #64748b;
  --firehire-pill-radius: 9999px;
  --firehire-card-radius: 18px;
}

body {
  background-color: var(--firehire-canvas) !important;
}

/* Sidebar Firehire Active Pill and Typography */
.menu-vertical .menu-inner {
  padding: 0.85rem 0.75rem !important;
}

.menu-vertical .menu-header-text {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #94a3b8 !important;
  padding: 1.15rem 1rem 0.4rem !important;
}

.menu-vertical .menu-item .menu-link {
  border-radius: 12px !important;
  margin: 2px 0 !important;
  padding: 0.58rem 0.95rem !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.menu-vertical .menu-item .menu-link:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.menu-vertical .menu-item.active > .menu-link {
  background: #1877f2 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.28) !important;
  font-weight: 600 !important;
}

.menu-vertical .menu-item.active > .menu-link i,
.menu-vertical .menu-item.active > .menu-link svg {
  color: #ffffff !important;
}

/* Sidebar Brand Firehire Styling */
.firehire-brand-flame {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1877f2 0%, #38bdf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(24, 119, 242, 0.3);
}

.firehire-brand-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

/* Sidebar Bottom User Profile Card */
.sidebar-user-footer {
  margin-top: auto;
  padding: 1rem 0.85rem;
  border-top: 1px solid #edf0f5;
  background: #ffffff;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #edf0f5;
  background: #f8fafc;
  transition: all 0.2s ease;
  text-decoration: none !important;
  color: inherit;
}

.sidebar-user-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: inherit;
}

/* Navbar Search Pill */
.firehire-search-container {
  max-width: 440px;
  width: 100%;
}

.firehire-search-pill {
  border-radius: 9999px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0.55rem 1.25rem !important;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.firehire-search-pill:focus-within {
  border-color: #1877f2 !important;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12) !important;
}

.firehire-search-input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 0.86rem !important;
  color: #334155 !important;
  width: 100%;
  padding-left: 0.5rem;
}

.firehire-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b !important;
  transition: all 0.2s ease;
}

.firehire-nav-btn:hover {
  background: #f8fafc !important;
  color: #1877f2 !important;
  border-color: #cbd5e1 !important;
}

/* Dashboard Top Header */
.dashboard-page-title {
  font-size: 1.48rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.dashboard-page-subtitle {
  color: #64748b;
  font-size: 0.88rem;
  margin-bottom: 0;
}

.date-range-pill {
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.48rem 1.05rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-export-pill {
  border-radius: 9999px !important;
  background: #1877f2 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.48rem 1.3rem !important;
  border: none;
  box-shadow: 0 3px 12px rgba(24, 119, 242, 0.25) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-export-pill:hover {
  background: #1464cc !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Row 1: Unified 4-Column KPI Strip */
.firehire-kpi-strip {
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  padding: 1.35rem 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.kpi-col-item {
  padding: 0.25rem 1.35rem;
  border-right: 1px solid #edf0f5;
}

.kpi-col-item:last-child {
  border-right: none;
}

@media (max-width: 991.98px) {
  .kpi-col-item {
    border-right: none;
    border-bottom: 1px solid #edf0f5;
    padding: 0.85rem 0.5rem;
  }
  .kpi-col-item:last-child {
    border-bottom: none;
  }
}

.kpi-col-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0;
}

.kpi-trend-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #10b981;
  background: #ecfdf5;
  border-radius: 9999px;
  padding: 2px 7px;
  line-height: 1.25;
}

.kpi-stat-number {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Firehire Elevated Rounded Cards */
.firehire-card {
  background: #ffffff;
  border: 1px solid #edf0f5 !important;
  border-radius: 16px !important;
  padding: 1.35rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  height: 100%;
}

.firehire-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.05rem;
}

.firehire-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.015em;
}

.firehire-action-dots {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.firehire-action-dots:hover {
  background: #f1f5f9;
  color: #334155;
}

/* Row 2: Attendance Heatmap Table & Tiles */
.heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
}

.heatmap-table th {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  padding-bottom: 4px;
}

.heatmap-time-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  padding-right: 6px;
}

.heatmap-tile {
  width: 44px;
  height: 42px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  position: relative;
}

.heatmap-tile:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.22);
  z-index: 2;
}

.heat-d-1 { background-color: #dbeafe; } /* ~60-70% light sky */
.heat-d-2 { background-color: #93c5fd; } /* ~70-85% medium sky */
.heat-d-3 { background-color: #3b82f6; } /* ~85-95% royal blue */
.heat-d-4 { background-color: #1877f2; } /* >95% deep brand blue */

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 1rem;
}

.legend-sq {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.legend-text {
  font-size: 0.7rem;
  color: #64748b;
}

/* Row 3: Equalizer Barcode Pill Strip */
.equalizer-barcode-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 46px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 12px;
  margin: 1.25rem 0;
  gap: 3px;
}

.eq-bar-item {
  width: 6px;
  border-radius: 3px;
  transition: height 0.3s ease;
}

.eq-bar-blue { background-color: #1877f2; }
.eq-bar-cyan { background-color: #38bdf8; }
.eq-bar-emerald { background-color: #10b981; }

.project-category-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

/* Row 3: Employee Leave Table */
.firehire-leave-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.firehire-leave-table thead th {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #edf0f5;
  padding: 0.5rem 0.75rem;
}

.firehire-leave-table tbody tr {
  transition: background-color 0.15s ease;
  border-radius: 8px;
}

.firehire-leave-table tbody tr:hover {
  background-color: #f8fafc;
}

.firehire-leave-table tbody td {
  padding: 0.7rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

/* Dark Mode Overrides for Firehire Design System */
[data-bs-theme="dark"] body {
  background-color: #0b0f19 !important;
}

[data-bs-theme="dark"] .firehire-kpi-strip,
[data-bs-theme="dark"] .firehire-card {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="dark"] .kpi-col-item {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .dashboard-page-title,
[data-bs-theme="dark"] .firehire-card-title,
[data-bs-theme="dark"] .kpi-stat-number,
[data-bs-theme="dark"] .firehire-brand-title {
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .date-range-pill,
[data-bs-theme="dark"] .firehire-search-pill,
[data-bs-theme="dark"] .firehire-nav-btn {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .firehire-search-input {
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .sidebar-user-footer {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .sidebar-user-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

[data-bs-theme="dark"] .equalizer-barcode-strip {
  background-color: #1e293b !important;
}

[data-bs-theme="dark"] .firehire-leave-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

[data-bs-theme="dark"] .firehire-leave-table tbody td {
  border-color: rgba(255, 255, 255, 0.05) !important;
}
