/* ==========================================================================
   ATTENDO HRMS & SHIFT ATTENDANCE SYSTEM - DESIGN SYSTEM
   Modeled after Attendo / Petpooja Payroll with Modern Enterprise Aesthetics
   ========================================================================== */

:root {
  --primary-blue: #0080ff;
  --primary-blue-hover: #006cd9;
  --primary-blue-light: #e6f2ff;
  --primary-blue-border: #b8dbff;

  --navy-dark: #0f172a;
  --navy-sidebar: #ffffff;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --emerald-600: #059669;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --rose-600: #e11d48;
  --rose-100: #ffe4e6;
  --rose-50: #fff1f2;

  --purple-600: #9333ea;
  --purple-100: #f3e8ff;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-family);
  background-color: #f4f7fa;
  color: var(--slate-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Base Layout */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: 240px;
  background-color: #ffffff;
  border-right: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
}

.sidebar-brand {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--slate-200);
}

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

.brand-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f172a, #0284c7);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: 0.8px;
  padding: 6px 14px;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease-in-out;
}

.nav-item:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
}

.nav-item.active {
  background-color: #0080ff;
  color: #ffffff;
  font-weight: 600;
}

.nav-item.active .nav-icon {
  filter: brightness(1.2);
}

.nav-icon {
  margin-right: 12px;
  font-size: 15px;
  width: 18px;
  display: inline-flex;
  justify-content: center;
}

.nav-label {
  flex: 1;
}

.badge-counter {
  background-color: var(--rose-600);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--slate-200);
  background-color: #f8fafc;
}

.agent-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald-600);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulseGreen 2s infinite;
}

/* ================= MAIN WRAPPER ================= */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* TOP HEADER */
.top-header {
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

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

.company-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
}

.dropdown-chevron {
  font-size: 10px;
  color: var(--slate-500);
}

.office-network-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--emerald-600);
}

.indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* DUAL TIMEZONE LIVE CLOCKS */
.dual-timezone-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 3px 6px;
}

.tz-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--slate-600);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.tz-chip.highlight {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-weight: 600;
}

.tz-flag {
  font-size: 13px;
}

.tz-name {
  font-weight: 600;
}

.tz-time {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ROLE SELECTOR SWITCHER */
.role-selector-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  border: 1px solid var(--slate-300);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.role-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.role-dropdown {
  background: transparent;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-800);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.role-dropdown:hover {
  color: var(--primary-blue);
}

.header-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: var(--slate-600);
  background: var(--slate-50);
  transition: background 0.15s ease;
}

.header-icon-btn:hover {
  background: var(--slate-100);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--rose-600);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--slate-200);
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0080ff);
  color: white;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 128, 255, 0.2);
}

.user-text-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.2;
}

.user-role-badge {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
}


/* CONTENT AREA */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

.tab-pane {
  display: none;
}

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

/* PAGE HEADER */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-title-group {
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-bubble {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-500);
}

.page-subtitle {
  font-size: 13.5px;
  color: var(--slate-500);
  margin-top: 2px;
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  box-shadow: 0 2px 4px rgba(0, 128, 255, 0.3);
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--slate-300);
  color: var(--slate-700);
}

.btn-outline:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12.5px;
}

.btn-simulator {
  background: linear-gradient(135deg, #4f46e5, #0080ff);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 5px rgba(79, 70, 229, 0.25);
  animation: gentlePulse 3s infinite;
}

@keyframes gentlePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* PERIOD TOGGLE BAR (DAY / WEEK / MONTH) */
.period-toggle-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.period-pills-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.period-pill-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.period-pill-btn:hover {
  color: var(--slate-900);
}

.period-pill-btn.active {
  background-color: #ffffff;
  color: #0080ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.period-status-text {
  font-size: 12.5px;
  color: var(--slate-500);
  font-weight: 500;
}

/* LOCKED APPLICANT BADGE */
.locked-applicant-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f8fafc;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

/* STAT CARDS ROW */
.summary-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon-wrapper.blue { background-color: #e0f2fe; color: #0284c7; }
.stat-icon-wrapper.emerald { background-color: #d1fae5; color: #059669; }
.stat-icon-wrapper.purple { background-color: #f3e8ff; color: #7c3aed; }
.stat-icon-wrapper.amber { background-color: #fef3c7; color: #d97706; }

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 1px 0;
}

.stat-sub {
  font-size: 11.5px;
  color: var(--slate-400);
}

/* ================= DATA TABLES (ATTENDO STYLE) ================= */
.table-container {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.data-table thead th {
  background-color: #f8fafc;
  color: var(--slate-600);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-200);
}

.th-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-icon, .filter-icon {
  font-size: 12px;
  color: var(--slate-400);
  cursor: pointer;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--slate-100);
  transition: background 0.15s ease;
}

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

.data-table td {
  padding: 16px;
  color: var(--slate-700);
}

.shift-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shift-title {
  font-weight: 600;
  color: var(--slate-900);
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.tag-default {
  background-color: #e0f2fe;
  color: #0284c7;
}

.tag-system {
  background-color: #f1f5f9;
  color: var(--slate-600);
  border: 1px solid var(--slate-300);
}

.timing-badge {
  display: inline-block;
  font-size: 12.5px;
  color: var(--slate-800);
}

.timing-badge.off {
  color: var(--slate-400);
  font-weight: 500;
}

.timing-badge.flex {
  color: var(--slate-500);
  font-style: italic;
}

.break-badge {
  display: inline-block;
  background-color: #f1f5f9;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
}

/* ================= PANEL CARDS ================= */
.panel-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
}

.panel-subtitle {
  font-size: 13px;
  color: var(--slate-500);
}

/* RULES GRID */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rule-box {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background-color: #fafbfc;
}

.rule-icon {
  font-size: 24px;
}

.rule-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.rule-body p {
  font-size: 12.5px;
  color: var(--slate-600);
  margin-bottom: 10px;
  line-height: 1.4;
}

.rule-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.rule-tag.active {
  background-color: #dcfce7;
  color: #15803d;
}

/* ================= LEAVES & POLICY STYLES ================= */
.leave-policy-alert {
  background-color: #eff6ff;
  border-left: 4px solid var(--primary-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.alert-icon {
  font-size: 22px;
}

.alert-content h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 6px;
}

.alert-content ul {
  padding-left: 18px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.6;
}

.quota-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.quota-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.quota-card.highlight {
  border-color: var(--primary-blue);
  background: linear-gradient(180deg, #f0f7ff, #ffffff);
}

.quota-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
}

.quota-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 4px 0;
}

.quota-card.highlight .quota-val {
  color: var(--primary-blue);
}

.quota-sub {
  font-size: 11.5px;
  color: var(--slate-400);
}

/* SMART LEAVE RULES & EXTENSIBLE SLOTS */
.rules-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.slot-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: #fafbfc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slot-card.blank-slot {
  border: 2px dashed var(--slate-300);
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-card.blank-slot:hover {
  border-color: var(--primary-blue);
  background-color: var(--primary-blue-light);
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.slot-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
}

.slot-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.slot-badge.active { background-color: #dcfce7; color: #15803d; }
.slot-badge.empty { background-color: #f1f5f9; color: var(--slate-500); }

.slot-desc {
  font-size: 12.5px;
  color: var(--slate-600);
  margin-bottom: 12px;
  line-height: 1.4;
}

.slot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate-500);
  border-top: 1px solid var(--slate-200);
  padding-top: 8px;
}

/* ================= CALENDAR GRID ================= */
.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--slate-600);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-box.au-holiday { background-color: #fee2e2; border: 1px solid #f87171; }
.legend-box.in-festival { background-color: #fef3c7; border: 1px solid #f59e0b; }
.legend-box.monday-rule { background-color: #ede9fe; border: 1px solid #8b5cf6; }
.legend-box.team-leave { background-color: #e0f2fe; border: 1px solid #38bdf8; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--slate-500);
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-200);
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 8px 0;
}

.calendar-day-cell {
  min-height: 85px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 6px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
  position: relative;
}

.calendar-day-cell:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.calendar-day-cell.other-month {
  background-color: #f8fafc;
  opacity: 0.45;
}

.calendar-day-cell.is-today {
  border: 2px solid var(--primary-blue);
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 4px;
}

.day-tag {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.day-tag.au-holiday {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.day-tag.in-festival {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.day-tag.monday-warning {
  background-color: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

.day-tag.team-leave {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

/* ================= LIVE PULSE & FLOOR GRID ================= */
.pulse-counts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pulse-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.pulse-card.green { border-left: 4px solid #10b981; }
.pulse-card.blue { border-left: 4px solid #0080ff; }
.pulse-card.orange { border-left: 4px solid #f59e0b; }
.pulse-card.purple { border-left: 4px solid #8b5cf6; }

.pulse-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--slate-900);
}

.pulse-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
}

.employees-floor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.employee-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.employee-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.emp-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.emp-details h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate-900);
}

.emp-details p {
  font-size: 12px;
  color: var(--slate-500);
}

.badge-status-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-status-pill.green { background-color: #dcfce7; color: #166534; }
.badge-status-pill.blue { background-color: #e0f2fe; color: #075985; }
.badge-status-pill.orange { background-color: #fef3c7; color: #92400e; }
.badge-status-pill.purple { background-color: #f3e8ff; color: #6b21a8; }
.badge-status-pill.gray { background-color: #f1f5f9; color: #475569; }

.emp-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-lbl {
  font-size: 11px;
  color: var(--slate-500);
}

.metric-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-800);
}

.emp-timeline-bar {
  display: flex;
  height: 12px;
  border-radius: var(--radius-full);
  overflow: hidden;
  gap: 2px;
}

.timeline-segment {
  height: 100%;
}

.timeline-segment.active { background-color: #10b981; }
.timeline-segment.meeting { background-color: #0080ff; }
.timeline-segment.break { background-color: #f59e0b; }
.timeline-segment.leave { background-color: #8b5cf6; }

/* ================= MODAL DIALOGS ================= */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-900);
}

.modal-subtitle {
  font-size: 12.5px;
  color: var(--slate-500);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--slate-400);
  cursor: pointer;
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
}

.form-control {
  padding: 9px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--slate-800);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15);
}

.rule-impact-box {
  background-color: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.impact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.impact-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.impact-cost {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
}

.impact-desc {
  font-size: 12px;
  color: var(--slate-600);
  line-height: 1.4;
}

.modal-footer {
  padding: 14px 24px;
  background-color: #f8fafc;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ================= FLOATING WINDOWS AGENT SIMULATOR ================= */
.agent-floating-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-floating-card {
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: agentFlyIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes agentFlyIn {
  0% { transform: translateY(20px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.agent-card-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.agent-ip-tag {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.agent-card-body {
  padding: 24px;
}

.agent-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0080ff);
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-welcome {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
}

.agent-time-text {
  font-size: 13.5px;
  color: var(--slate-600);
}

.highlight-time {
  font-weight: 700;
  color: var(--primary-blue);
}

.agent-prompt-box {
  background-color: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.agent-question {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 12px;
}

.agent-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-agent-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.btn-agent-choice:hover {
  border-color: var(--primary-blue);
  background-color: var(--primary-blue-light);
  transform: translateY(-1px);
}

.choice-icon {
  font-size: 22px;
  margin-right: 12px;
}

.choice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.choice-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-900);
}

.choice-desc {
  font-size: 11.5px;
  color: var(--slate-500);
}

.choice-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tag-green { background-color: #dcfce7; color: #166534; }
.tag-amber { background-color: #fef3c7; color: #92400e; }

.agent-notes-row {
  margin-bottom: 14px;
}

.agent-notes-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.agent-pool-info {
  font-size: 12px;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-card-footer {
  padding: 12px 24px;
  background-color: #f8fafc;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-footer-note {
  font-size: 11px;
  color: var(--slate-400);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .summary-cards-row, .quota-cards-row, .pulse-counts-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .employees-floor-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   OZCOAST LOGISTICS FOOTER & MULTI-TIMEZONE TICKER
   ========================================================================== */
.ozcoast-footer {
  flex-shrink: 0;
  padding: 10px 24px 14px;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.02);
}

.footer-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 5px;
  line-height: 1.4;
}

.footer-meta-line strong {
  color: #334155;
  font-weight: 600;
}

.oz-brand-text {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

.footer-pipe {
  color: #f97316;
  font-weight: 600;
  margin: 0 2px;
  user-select: none;
}

.footer-timezone-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.4;
}

.tz-block {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tz-state {
  font-weight: 700;
  color: #0f766e;
  letter-spacing: 0.1px;
}

.tz-val {
  font-weight: 700;
  color: #0d9488;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* ==========================================================================
   USER MANAGEMENT & CREDENTIALS STYLING
   ========================================================================== */
.logout-header-btn {
  margin-left: 8px;
  border-color: #cbd5e1;
  color: #475569;
  font-weight: 600;
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

.badge-dev-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
  margin-left: 6px;
}

.users-control-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.users-control-banner .banner-badge {
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
  white-space: nowrap;
}

.users-control-banner .banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
}

.users-control-banner .banner-text strong {
  color: #0f172a;
}

.badge-access-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-access-pill.manager {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-access-pill.employee {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-access-pill.developer {
  background-color: #ede9fe;
  color: #6b21a8;
  border: 1px solid #ddd6fe;
}

.role-tag-custom {
  display: inline-block;
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

.password-display-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #334155;
}

.btn-toggle-pwd {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.15s ease;
}

.btn-toggle-pwd:hover {
  opacity: 1;
  background-color: #e2e8f0;
  color: #0284c7;
}

/* ==========================================================================
   NOTIFICATIONS DROPDOWN MENU
   ========================================================================== */
.notifications-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  animation: slideDown 0.15s ease-out;
}

.notif-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.notif-menu-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.btn-clear-notif {
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-clear-notif:hover {
  background-color: #e0f2fe;
}

.notif-menu-body {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
}

.notif-empty-state {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.notif-item:hover {
  background-color: #f8fafc;
}

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

.notif-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.notif-msg {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

.notif-time {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 3px;
}

/* ==========================================================================
   UNASSIGNED WORKSTATIONS DISCOVERED VIA IP
   ========================================================================== */
.discovery-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #475569;
}

.discovery-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discovery-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: discoveryPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes discoveryPulse {
  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 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.discovery-active-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unassigned-device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px solid #0284c7;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.08);
}

.unassigned-device-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.unassigned-device-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.unassigned-device-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.unassigned-device-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.unassigned-device-meta {
  font-size: 12px;
  color: #475569;
}

.unassigned-device-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-counter.zero {
  display: none !important;
}

/* Role Badge Pill */
.role-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}


