/* ==========================================================================
   ZEntry Theme Stylesheet: Dark Glassmorphic Design System
   ========================================================================== */

:root {
  /* Premium light theme colors */
  --bg-main: #f8fafc;
  --bg-panel: #ffffff;
  --bg-sidebar: #0f172a; /* Slate 900 matching HRM Pro theme */
  
  --border-glass: #e2e8f0;
  --border-glass-hover: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  /* Custom colors */
  --accent-primary: #4f46e5; /* Indigo brand active nav */
  --accent-blue: #4f46e5;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-teal: #06b6d4;
  --accent-purple-color: #6366f1;
  --accent-danger-color: #ef4444;
  --border-light: #e5e7eb;
  --border-color: #d1d5db;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Base resets & scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  height: 100vh;
  overflow: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom glow scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Master Layout Framework */
.app-container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  background-image: none;
}

/* Header styling */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 17, 32, 0.7);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.logo-glow {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(var(--accent-cyan), 0.8), transparent);
  filter: blur(10px);
  opacity: 0.7;
}

.logo-box {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 17px !important;
}

.logo-icon {
  width: 22px;
  height: 22px;
  color: rgb(var(--accent-cyan));
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, rgb(var(--accent-cyan)), #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.live-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background: rgb(var(--accent-emerald));
  border-radius: 50%;
  box-shadow: 0 0 10px rgb(var(--accent-emerald));
  animation: pulse-glow 1.8s infinite;
}

.ticker-text {
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Role Selector Styles */
.role-selector-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.role-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 3px;
  border-radius: 8px;
}

.role-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.role-btn i {
  width: 14px;
  height: 14px;
}

.role-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.role-btn[data-role="superadmin"].active {
  border-color: rgba(var(--accent-cyan), 0.3);
  box-shadow: 0 0 10px rgba(var(--accent-cyan), 0.15);
}

.role-btn[data-role="companyadmin"].active {
  border-color: rgba(var(--accent-purple), 0.3);
  box-shadow: 0 0 10px rgba(var(--accent-purple), 0.15);
}

.role-btn[data-role="guard"].active {
  border-color: rgba(var(--accent-emerald), 0.3);
  box-shadow: 0 0 10px rgba(var(--accent-emerald), 0.15);
}

.role-btn[data-role="visitor"].active {
  border-color: rgba(var(--accent-gold), 0.3);
  box-shadow: 0 0 10px rgba(var(--accent-gold), 0.15);
}

/* App Body and Sidebar */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
}

.side-nav::-webkit-scrollbar {
  width: 4px;
}
.side-nav::-webkit-scrollbar-track {
  background: transparent;
}
.side-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  margin-bottom: 3px;
}

.nav-item div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item i {
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
}

.nav-item.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45) !important;
  font-weight: 700 !important;
}

.nav-item.active i, .nav-item.active svg {
  color: #ffffff !important;
}

.badge {
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-error {
  background: rgba(var(--accent-danger), 0.2);
  color: rgb(var(--accent-danger));
  border: 1px solid rgba(var(--accent-danger), 0.4);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.1);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-widget .avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgb(var(--accent-cyan)), rgb(var(--accent-purple)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(var(--accent-cyan), 0.3);
}

.user-profile-widget .info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.user-profile-widget .info p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Main Content Workspace */
.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  position: relative;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Glass panel components */
.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
}

.panel-header {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.panel-header .subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.metric-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--glow-accent), 0.4);
  box-shadow: 0 0 20px rgba(var(--glow-accent), 0.15);
}

.card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.18;
  pointer-events: none;
  background: rgb(var(--glow-accent));
}

.metric-card.cyan { --glow-accent: var(--accent-cyan); }
.metric-card.purple { --glow-accent: var(--accent-purple); }
.metric-card.emerald { --glow-accent: var(--accent-emerald); }
.metric-card.gold { --glow-accent: var(--accent-gold); }

.metric-info span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-info h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-top: 4px;
  color: var(--text-primary);
  line-height: 1;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--glow-accent), 0.12);
  border: 1px solid rgba(var(--glow-accent), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon i {
  color: rgb(var(--glow-accent));
  width: 22px;
  height: 22px;
}

/* Dashboard layouts charts & feeds */
.dashboard-layouts {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.chart-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.activity-item .icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-item.success .icon-box {
  background: rgba(var(--accent-emerald), 0.1);
  border: 1px solid rgba(var(--accent-emerald), 0.3);
  color: rgb(var(--accent-emerald));
}

.activity-item.info .icon-box {
  background: rgba(var(--accent-cyan), 0.1);
  border: 1px solid rgba(var(--accent-cyan), 0.3);
  color: rgb(var(--accent-cyan));
}

.activity-item.warning .icon-box {
  background: rgba(var(--accent-gold), 0.1);
  border: 1px solid rgba(var(--accent-gold), 0.3);
  color: rgb(var(--accent-gold));
}

.activity-item.danger .icon-box {
  background: rgba(var(--accent-danger), 0.1);
  border: 1px solid rgba(var(--accent-danger), 0.3);
  color: rgb(var(--accent-danger));
}

.activity-item i {
  width: 16px;
  height: 16px;
}

.activity-content {
  flex: 1;
}

.activity-content h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.activity-content p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.activity-item .time {
  font-size: 0.65rem;
  color: var(--text-muted);
  align-self: flex-start;
}

/* Table styling for entries */
.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 8px 12px;
  gap: 8px;
  width: 320px;
}

.search-bar i {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  width: 100%;
  outline: none;
}

.btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(var(--accent-cyan), 0.85), rgba(var(--accent-purple), 0.85));
  border-color: rgba(var(--accent-cyan), 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgb(var(--accent-cyan)), rgb(var(--accent-purple)));
  box-shadow: 0 0 15px rgba(var(--accent-cyan), 0.3);
}

.btn-emerald {
  background: rgb(var(--accent-emerald));
  border-color: rgba(var(--accent-emerald), 0.3);
}

.btn-emerald:hover {
  background: rgb(var(--accent-emerald));
  box-shadow: 0 0 15px rgba(var(--accent-emerald), 0.4);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

/* User identity inside table cell */
.visitor-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.visitor-meta .photo-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.visitor-meta h4 {
  font-weight: 600;
  font-size: 0.82rem;
}

.visitor-meta p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status-pill.pending {
  background: rgba(var(--accent-gold), 0.1);
  color: rgb(var(--accent-gold));
  border: 1px solid rgba(var(--accent-gold), 0.3);
}

.status-pill.approved {
  background: rgba(var(--accent-cyan), 0.1);
  color: rgb(var(--accent-cyan));
  border: 1px solid rgba(var(--accent-cyan), 0.3);
}

.status-pill.checked_in {
  background: rgba(var(--accent-emerald), 0.1);
  color: rgb(var(--accent-emerald));
  border: 1px solid rgba(var(--accent-emerald), 0.3);
}

.status-pill.checked_out {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-pill.rejected {
  background: rgba(var(--accent-danger), 0.1);
  color: rgb(var(--accent-danger));
  border: 1px solid rgba(var(--accent-danger), 0.3);
}

/* Grid layout for Contractors and Approvals */
.contractors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.contractor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contractor-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contractor-card .card-head h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.contractor-card .card-head p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.contractor-card .card-body {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}

.contractor-card .card-body div {
  display: flex;
  justify-content: space-between;
}

.contractor-card .card-body div span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.contractor-card .card-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workers-badge {
  font-size: 0.7rem;
  color: rgb(var(--accent-cyan));
  font-weight: 600;
}

/* Approvals page layouts */
.approvals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.approval-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.approval-type-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(var(--accent-cyan));
  border: 1px solid rgba(var(--accent-cyan), 0.3);
  background: rgba(var(--accent-cyan), 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.approval-card.material .approval-type-badge {
  color: rgb(var(--accent-purple));
  border-color: rgba(var(--accent-purple), 0.3);
  background: rgba(var(--accent-purple), 0.08);
}

.approval-main-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.approval-main-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.approval-meta-list {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15);
  padding: 8px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.approval-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-reject {
  background: rgba(var(--accent-danger), 0.1);
  border: 1px solid rgba(var(--accent-danger), 0.3);
  color: rgb(var(--accent-danger));
  flex: 1;
}

.btn-reject:hover {
  background: rgba(var(--accent-danger), 0.2);
}

.btn-approve {
  background: rgba(var(--accent-emerald), 0.1);
  border: 1px solid rgba(var(--accent-emerald), 0.3);
  color: rgb(var(--accent-emerald));
  flex: 1;
}

.btn-approve:hover {
  background: rgba(var(--accent-emerald), 0.2);
}

/* Guard scanner simulation layouts */
.scanner-simulation-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}

.scan-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.scanner-viewport {
  position: relative;
  width: 260px;
  height: 260px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.scan-laser {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, rgb(var(--accent-cyan)), transparent);
  box-shadow: 0 0 8px rgb(var(--accent-cyan));
  top: 0;
  animation: laser-bounce 2.2s infinite ease-in-out;
}

.scan-markers .marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgb(var(--accent-cyan));
}

.marker.top-left { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.marker.top-right { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.marker.bottom-left { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.marker.bottom-right { bottom: 15px; right: 15px; border-left: none; border-top: none; }

.scan-success-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.3s;
}

.scan-success-indicator .feedback-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.feedback-icon.success { color: rgb(var(--accent-emerald)); display: none; }
.feedback-icon.denied { color: rgb(var(--accent-danger)); display: none; }

.scan-success-indicator h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.scan-success-indicator p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.scanner-controls {
  width: 100%;
}

.scan-input-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.scan-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition-smooth);
}

.scan-input-row input:focus {
  border-color: rgb(var(--accent-cyan));
  box-shadow: 0 0 10px rgba(var(--accent-cyan), 0.15);
}

.scan-info-panel .panel-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}

.scan-empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

.scan-empty-state i {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.scan-empty-state p {
  font-size: 0.8rem;
}

/* Scanned Pass Details */
.scanned-pass-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.4s;
}

.result-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 14px;
}

.result-card-head .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.result-card-head h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.result-card-head p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.result-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.75rem;
}

.result-data-item span {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.result-data-item p {
  color: var(--text-primary);
  font-weight: 600;
}

.result-card-foot {
  background: rgba(0, 0, 0, 0.15);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Visitor portal self pass registration style */
.visitor-portal-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.form-panel {
  padding: 24px;
}

.responsive-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgb(var(--accent-cyan));
  box-shadow: 0 0 10px rgba(var(--accent-cyan), 0.15);
}

/* Ticket Canvas download styles */
.ticket-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.digital-pass-card {
  width: 100%;
  max-width: 290px;
  background: linear-gradient(145deg, #111a2e, #070d1a);
  border: 1px solid rgba(var(--accent-cyan), 0.25);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--accent-cyan), 0.08);
  position: relative;
  overflow: hidden;
}

.digital-pass-card::after {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(var(--accent-cyan), 0.15), transparent);
  filter: blur(20px);
}

.pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.pass-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, rgb(var(--accent-cyan)), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pass-status-badge {
  font-size: 0.55rem;
  font-weight: 800;
  background: rgba(var(--accent-gold), 0.15);
  color: rgb(var(--accent-gold));
  border: 1px solid rgba(var(--accent-gold), 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

.pass-status-badge.approved {
  background: rgba(var(--accent-cyan), 0.15);
  color: rgb(var(--accent-cyan));
  border-color: rgba(var(--accent-cyan), 0.4);
}

.pass-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.qr-container {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.qr-container canvas {
  width: 130px;
  height: 130px;
  display: block;
}

.pass-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-group span {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
}

.detail-group h4 {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1px;
}

.detail-group p {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 1px;
  line-height: 1.3;
}

.pass-footer {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 15px;
  text-align: center;
}

.pass-footer p {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pass-footer small {
  font-size: 0.52rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* Modals general */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.modal-content {
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--border-glass-hover);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.empty-state i {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 0.8rem;
  margin-top: 4px;
}

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

@keyframes scaleIn {
  from { transform: scale(0.9) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(var(--accent-emerald), 0.5); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 8px rgba(var(--accent-emerald), 0); }
  100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(var(--accent-emerald), 0); }
}

@keyframes laser-bounce {
  0%, 100% { top: 15px; }
  50% { top: calc(100% - 18px); }
}

/* ============================================================
   DAILY SUMMARY BAR
   ============================================================ */
.daily-summary-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 20px;
  overflow-x: auto;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.5s ease;
}

.daily-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 120px;
  padding: 0 16px;
}

.daily-stat i {
  width: 18px;
  height: 18px;
  color: rgb(var(--accent-cyan));
  opacity: 0.7;
  flex-shrink: 0;
}

.daily-stat div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.daily-stat span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  white-space: nowrap;
}

.daily-stat strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.daily-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-glass);
  flex-shrink: 0;
}

/* ============================================================
   TOAST NOTIFICATION SYSTEM
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 14px 18px;
  min-width: 280px;
  max-width: 380px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toastSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--toast-accent, rgb(var(--accent-cyan)));
  border-radius: 10px 0 0 10px;
}

.toast.success { --toast-accent: rgb(var(--accent-emerald)); border-color: rgba(var(--accent-emerald), 0.2); }
.toast.error   { --toast-accent: rgb(var(--accent-danger)); border-color: rgba(var(--accent-danger), 0.2); }
.toast.warning { --toast-accent: rgb(var(--accent-gold)); border-color: rgba(var(--accent-gold), 0.2); }
.toast.info    { --toast-accent: rgb(var(--accent-cyan)); border-color: rgba(var(--accent-cyan), 0.2); }

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--toast-accent, rgb(var(--accent-cyan)));
  margin-top: 1px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
  flex-shrink: 0;
}

.toast-close:hover { color: var(--text-primary); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--toast-accent, rgb(var(--accent-cyan)));
  opacity: 0.5;
  animation: toastProgress linear forwards;
}

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

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes toastFadeOut {
  to { transform: translateX(110%); opacity: 0; height: 0; padding: 0; margin: 0; }
}

/* ============================================================
   EXTRA STATUS PILLS & UTILITIES
   ============================================================ */
.status-pill.active {
  background: rgba(var(--accent-emerald), 0.1);
  color: rgb(var(--accent-emerald));
  border: 1px solid rgba(var(--accent-emerald), 0.3);
}

.status-pill.dispatched {
  background: rgba(var(--accent-cyan), 0.1);
  color: rgb(var(--accent-cyan));
  border: 1px solid rgba(var(--accent-cyan), 0.3);
}

.status-pill.pending_renewal {
  background: rgba(var(--accent-gold), 0.1);
  color: rgb(var(--accent-gold));
  border: 1px solid rgba(var(--accent-gold), 0.3);
}

.status-pill.emerald {
  background: rgba(var(--accent-emerald), 0.1);
  color: rgb(var(--accent-emerald));
  border: 1px solid rgba(var(--accent-emerald), 0.3);
}

.status-pill.purple {
  background: rgba(var(--accent-purple), 0.1);
  color: rgb(var(--accent-purple));
  border: 1px solid rgba(var(--accent-purple), 0.3);
}

.status-pill.cyan {
  background: rgba(var(--accent-cyan), 0.1);
  color: rgb(var(--accent-cyan));
  border: 1px solid rgba(var(--accent-cyan), 0.3);
}

.status-pill.gold {
  background: rgba(var(--accent-gold), 0.1);
  color: rgb(var(--accent-gold));
  border: 1px solid rgba(var(--accent-gold), 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Scanner input row */
.scan-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.scan-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 10px 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.scan-input-row input:focus {
  border-color: rgba(var(--accent-cyan), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--accent-cyan), 0.08);
}

/* Auto-refresh indicator */
.refresh-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 12px;
}

.refresh-indicator .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(var(--accent-emerald));
  animation: pulse-glow 2s infinite;
}

/* Approval enriched card extras */
.approval-enriched-detail {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.approval-enriched-detail .det-item span {
  font-size: 0.63rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  font-weight: 600;
}

.approval-enriched-detail .det-item p {
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 1px;
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Section-header refresh button */
.section-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header-actions .section-header {
  margin-bottom: 0;
}

/* ==========================================================================
   ZEntry Light Theme Layout & Screenshot Refactoring Overrides
   ========================================================================== */

/* Structure Adjustments */
.app-container {
  display: flex !important;
  flex-direction: row !important;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-main);
  background-image: none !important;
}

.sidebar {
  width: 260px;
  background: var(--bg-sidebar) !important;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.sidebar-header .logo-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}

.sidebar-header .logo-text-s {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff !important;
}

.sidebar-header .brand-text h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1;
}

.sidebar-header .brand-text p {
  font-size: 0.58rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 2px;
  overflow-y: auto;
  flex-grow: 1;
}

.nav-category {
  font-size: 0.68rem;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 1px;
  padding: 14px 12px 6px;
  text-transform: uppercase;
  opacity: 0.85;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  color: #9ca3af;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: var(--transition-smooth);
}

.nav-item div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item i {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
  color: #6b7280;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #f3f4f6;
}

.nav-item:hover i {
  color: #f3f4f6;
}

.nav-item.active {
  background-color: var(--accent-primary) !important;
  color: #ffffff !important;
}

.nav-item.active i {
  color: #ffffff !important;
}

.nav-item .chevron-icon {
  width: 14px;
  height: 14px;
  color: #4b5563;
  transition: var(--transition-smooth);
}

.nav-item:hover .chevron-icon {
  color: #f3f4f6;
}

.app-body-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
}

/* Header Styling */
.main-header {
  height: 70px;
  background: #ffffff !important;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  flex-shrink: 0;
  backdrop-filter: none !important;
}

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

.menu-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.menu-toggle-btn i {
  width: 22px;
  height: 22px;
}

.title-section h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.title-section p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.branch-selector {
  background: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.branch-selector i {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
}

.notification-icon {
  position: relative;
  background: #f9fafb;
  border: 1px solid var(--border-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  cursor: pointer;
}

.notification-icon i {
  width: 18px;
  height: 18px;
}

.bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-danger-color);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile-widget .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #061b40 !important;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-light);
  box-shadow: none !important;
}

.user-profile-widget .info h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.user-profile-widget .info p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Dev Role Switcher FAB Style */
.dev-role-switcher-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.dev-role-switcher-fab .fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(27, 91, 247, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dev-role-switcher-fab .fab-btn i {
  width: 18px;
  height: 18px;
}
.dev-role-switcher-fab .role-switcher-panel {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 180px;
}
.dev-role-switcher-fab:hover .role-switcher-panel {
  display: block;
}
.dev-role-switcher-fab .panel-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.dev-role-switcher-fab .role-switcher {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.dev-role-switcher-fab .role-btn {
  background: #f9fafb !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-primary) !important;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  width: 100%;
}
.dev-role-switcher-fab .role-btn:hover {
  background: #f3f4f6 !important;
}
.dev-role-switcher-fab .role-btn.active {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
}

/* Main Content Workspace */
.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg-main);
  position: relative;
}

/* Dashboard Filter Row */
.dashboard-filter-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.date-picker-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.date-picker-box i {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
}

/* Metrics Grid Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 12px;
  padding: 16px 16px 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-light) !important;
  height: 115px !important;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: none !important;
}

.metric-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08) !important;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.metric-card .metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-card.card-purple .metric-icon { background: rgba(147, 51, 234, 0.08) !important; color: var(--accent-purple-color) !important; }
.metric-card.card-blue .metric-icon { background: rgba(37, 99, 235, 0.08) !important; color: var(--accent-blue) !important; }
.metric-card.card-green .metric-icon { background: rgba(16, 185, 129, 0.08) !important; color: var(--accent-green) !important; }
.metric-card.card-orange .metric-icon { background: rgba(249, 115, 22, 0.08) !important; color: var(--accent-orange) !important; }
.metric-card.card-teal .metric-icon { background: rgba(6, 182, 212, 0.08) !important; color: var(--accent-teal) !important; }

.metric-card.card-purple { border-color: rgba(147, 51, 234, 0.1) !important; }
.metric-card.card-blue { border-color: rgba(37, 99, 235, 0.1) !important; }
.metric-card.card-green { border-color: rgba(16, 185, 129, 0.1) !important; }
.metric-card.card-orange { border-color: rgba(249, 115, 22, 0.1) !important; }
.metric-card.card-teal { border-color: rgba(6, 182, 212, 0.1) !important; }

.metric-info {
  flex-grow: 1;
}

.metric-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
  display: block;
}

.metric-value-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.metric-value-row h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827 !important;
  line-height: 1;
}

.trend-indicator {
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.trend-indicator.up { color: var(--accent-green); }
.trend-indicator.down { color: var(--accent-danger); }
.trend-indicator i { width: 10px; height: 10px; stroke-width: 3px; }

.metric-subtext {
  font-size: 0.68rem;
  color: var(--text-muted) !important;
  display: block;
  margin-top: 2px;
}

.metric-link {
  font-size: 0.68rem;
  color: var(--accent-primary);
  font-weight: 700;
  cursor: pointer;
  display: block;
  margin-top: 2px;
}

.card-chart {
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: -2px;
  height: 35px;
}

/* Dashboard Grid Layout Row 2 */
.dashboard-grid-row2 {
  display: grid;
  grid-template-columns: 1.6fr 1.3fr 1.1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
}

.panel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px;
}

.panel-card-header h3 {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: #111827;
}

.view-all-link {
  font-size: 0.74rem;
  color: var(--accent-primary);
  font-weight: 700;
  cursor: pointer;
}

.header-dropdown {
  background: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-dropdown i {
  width: 12px;
  height: 12px;
}

.chart-legend-top {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 10px;
}

.legend-dot {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.purple::before { background-color: var(--accent-purple-color); }
.legend-dot.blue::before { background-color: var(--accent-blue); }
.legend-dot.green::before { background-color: var(--accent-green); }

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 250px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.activity-item:hover {
  background: #f3f4f6;
}

.activity-item .icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-item.success .icon-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.activity-item.info .icon-box {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-blue);
}

.activity-item.warning .icon-box {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--accent-orange);
}

.activity-item.danger .icon-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-danger-color);
}

.activity-item i {
  width: 16px;
  height: 16px;
}

.activity-content {
  flex: 1;
}

.activity-content h5 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
}

.activity-content p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.activity-item .time {
  font-size: 0.68rem;
  color: var(--text-muted);
  align-self: flex-start;
}

/* Donut Chart Layout styling */
.donut-chart-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  height: 100%;
}

.donut-chart-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.donut-center-text .number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.donut-center-text .label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

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

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-color.purple { background-color: var(--accent-purple-color); }
.legend-color.blue { background-color: var(--accent-blue); }
.legend-color.green { background-color: var(--accent-green); }

.legend-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.legend-text .name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-text .val {
  font-size: 0.7rem;
  font-weight: 700;
  color: #111827;
}

/* Dashboard Grid Layout Row 3 */
.dashboard-grid-row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.stacked-col-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-items-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 215px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Pass Expiry Alert List Item */
.alert-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 14px;
}

.alert-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-list-item.item-red .alert-icon-box { background: rgba(239, 68, 68, 0.08); color: var(--accent-danger-color); }
.alert-list-item.item-orange .alert-icon-box { background: rgba(249, 115, 22, 0.08); color: var(--accent-orange); }
.alert-list-item.item-yellow .alert-icon-box { background: rgba(234, 179, 8, 0.08); color: #ca8a04; }

.alert-icon-box i {
  width: 18px;
  height: 18px;
}

.alert-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  width: 26px;
  text-align: center;
}

.alert-info h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.alert-info p {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Recent Approvals Item */
.approval-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.approval-list-item .check-icon {
  color: var(--accent-green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.approval-info {
  flex-grow: 1;
  line-height: 1.2;
}

.approval-info h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
}

.approval-info p {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.approval-list-item .time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Top Visiting Companies */
.company-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.company-item {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 4px 0;
  border-bottom: 1px solid #f9fafb;
}

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

.company-item .rank {
  font-weight: 700;
  color: var(--text-secondary);
  width: 18px;
}

.company-item .name {
  flex-grow: 1;
  font-weight: 600;
  color: #374151;
}

.company-item .count {
  font-weight: 700;
  color: #111827;
}

/* Security Alerts Item */
.security-alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.security-alert-item:last-child {
  margin-bottom: 0;
}

.security-alert-item .alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fee2e2;
  color: var(--accent-danger-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-alert-item .alert-icon i {
  width: 16px;
  height: 16px;
}

.security-alert-item .alert-info {
  flex-grow: 1;
  line-height: 1.2;
}

.security-alert-item .alert-info h4 {
  font-size: 0.76rem;
  font-weight: 700;
  color: #991b1b;
}

.security-alert-item .alert-info p {
  font-size: 0.68rem;
  color: #b91c1c;
}

.security-alert-item .time {
  font-size: 0.68rem;
  color: #f87171;
  font-weight: 600;
}

/* Glass panel light overrides for list views */
.glass-panel {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-primary) !important;
  backdrop-filter: none !important;
  box-shadow: var(--shadow-light) !important;
}

.panel-header {
  border-bottom: 1px solid var(--border-light) !important;
}

.panel-header h3 {
  color: #111827 !important;
}

.panel-header .subtext {
  color: var(--text-secondary) !important;
}

table {
  color: var(--text-primary) !important;
}

th {
  background: #f9fafb !important;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--border-light) !important;
}

td {
  border-bottom: 1px solid #f3f4f6 !important;
  color: var(--text-primary) !important;
}

tr:hover td {
  background: #f9fafb !important;
}

.visitor-meta h4 {
  color: #111827 !important;
}

.visitor-meta p {
  color: var(--text-secondary) !important;
}

code {
  background: #f3f4f6 !important;
  color: var(--accent-purple-color) !important;
}

/* Buttons */
.btn {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  color: #374151 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.btn:hover {
  background: #f9fafb !important;
  color: #111827 !important;
}

.btn-primary {
  background: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(27, 91, 247, 0.2) !important;
}

.btn-primary:hover {
  background: #1d4ed8 !important;
}

.btn-secondary {
  background: #ffffff !important;
  border-color: var(--border-color) !important;
  color: #374151 !important;
}

.btn-reject {
  background: #fee2e2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}

.btn-reject:hover {
  background: #fca5a5 !important;
}

.btn-approve {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #065f46 !important;
}

.btn-approve:hover {
  background: rgba(16, 185, 129, 0.2) !important;
}

.search-bar {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
}

.search-bar input {
  color: var(--text-primary) !important;
}

/* Form controls overrides */
input, select, textarea {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: 6px;
  padding: 8px 12px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-primary) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(27, 91, 247, 0.15);
}

label {
  color: var(--text-secondary) !important;
  font-weight: 600;
}

/* Modals */
.modal-content {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.modal-header {
  border-bottom: 1px solid var(--border-light) !important;
}

.modal-header h3 {
  color: #111827 !important;
}

.modal-close {
  color: var(--text-muted) !important;
}

.modal-close:hover {
  color: var(--text-primary) !important;
}

.modal-footer {
  border-top: 1px solid var(--border-light) !important;
}

/* Ticket panel self service */
.ticket-panel {
  background: #ffffff !important;
}

.digital-pass-card {
  background: #f9fafb !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-light) !important;
}

.pass-brand {
  color: #061b40 !important;
  font-weight: 800 !important;
}

.pass-details h4 {
  color: #111827 !important;
}

.pass-details p {
  color: var(--text-secondary) !important;
}

/* Toast container override */
.toast {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  color: var(--text-primary) !important;
}

.toast.success { border-left: 4px solid var(--accent-green) !important; }
.toast.error { border-left: 4px solid var(--accent-danger-color) !important; }
.toast.warning { border-left: 4px solid var(--accent-orange) !important; }
.toast.info { border-left: 4px solid var(--accent-blue) !important; }

.toast-title { color: #111827 !important; font-weight: 700 !important; }
.toast-message { color: var(--text-secondary) !important; }
.toast-close { color: var(--text-muted) !important; }
.toast-close:hover { color: var(--text-primary) !important; }

/* Enriched approval details */
.approval-enriched-detail {
  background: #f9fafb !important;
  border: 1px solid var(--border-light) !important;
}
.approval-enriched-detail .det-item p {
  color: #111827 !important;
}

/* ============================================================
   FLOATING AI ASSISTANT CHATBOT WIDGET STYLES
   ============================================================ */
.chatbot-container {
  position: fixed;
  bottom: 85px; /* Floats above the role switcher */
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-body);
}

.chatbot-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.chatbot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.45);
}

.chatbot-fab i {
  width: 24px;
  height: 24px;
  color: #ffffff !important;
}

.chatbot-fab .pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgba(79, 70, 229, 0.4);
  border-radius: 50%;
  animation: chatbot-pulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes chatbot-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0; }
}

.chatbot-panel {
  display: none;
  flex-direction: column;
  width: 360px;
  height: 480px;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15) !important;
  overflow: hidden;
  margin-bottom: 12px;
  animation: chatbot-slide-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px) !important;
}

.chatbot-panel.active {
  display: flex;
}

@keyframes chatbot-slide-in {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.chatbot-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bot-avatar i {
  width: 18px;
  height: 18px;
}

.bot-avatar .status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  border: 1.5px solid #0f172a;
  box-shadow: 0 0 8px #10b981;
}

.chatbot-header h3 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.2;
}

.chatbot-header p {
  font-size: 0.68rem;
  color: #94a3b8 !important;
  margin: 0;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 4px;
}

.chatbot-close-btn:hover {
  color: #ffffff;
}

.chatbot-body {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.chat-message {
  display: flex;
  width: 100%;
}

.chat-message.bot {
  justify-content: flex-start;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message .message-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.4;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-message.bot .message-bubble {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  border-top-left-radius: 2px;
}

.chat-message.user .message-bubble {
  background: linear-gradient(135deg, #1d4ed8, #4f46e5) !important;
  color: #ffffff !important;
  border-top-right-radius: 2px;
}

/* Scrollbar styling for chatbot body */
.chatbot-body::-webkit-scrollbar {
  width: 4px;
}
.chatbot-body::-webkit-scrollbar-track {
  background: transparent;
}
.chatbot-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.chatbot-quick-replies {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  overflow-x: auto;
  white-space: nowrap;
}

.chatbot-quick-replies::-webkit-scrollbar {
  height: 3px;
}
.chatbot-quick-replies::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 2px;
}

.quick-reply-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: none !important;
}

.quick-reply-btn:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.chatbot-footer {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot-footer input {
  flex-grow: 1;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 8px 14px !important;
  font-size: 0.78rem !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  outline: none;
}

.chatbot-footer input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.chatbot-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2) !important;
}

.chatbot-send-btn:hover {
  transform: scale(1.06);
}

.chatbot-send-btn i {
  width: 14px;
  height: 14px;
  color: #ffffff !important;
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.chatbot-mic-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: none !important;
}

.chatbot-mic-btn:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.chatbot-mic-btn.listening {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
  animation: mic-pulse 1.5s infinite ease-in-out;
}

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

.chatbot-mic-btn i {
  width: 16px;
  height: 16px;
  color: inherit !important;
}


