/*
 * Factory ERP + HRMS + Attendance SaaS System - Custom Premium Theme
 * Welcome Page & Dashboard Styles (White and Blue palette)
 */

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

:root {
  /* Colors - White and Blue Only */
  --bg-primary: #020813;
  --bg-secondary: #061124;
  --bg-card: rgba(6, 17, 36, 0.7);
  --bg-card-hover: rgba(10, 27, 56, 0.85);
  --border-color: rgba(0, 140, 255, 0.15);
  --border-active: rgba(0, 140, 255, 0.5);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Accents */
  --primary: #008cff;
  /* Vivid Blue */
  --primary-glow: rgba(0, 140, 255, 0.2);
  --primary-hover: #0070cc;

  --success: #00b0ff;
  /* Bright Light Blue */
  --success-glow: rgba(0, 176, 255, 0.15);

  --warning: #00d2ff;
  /* Cyan */
  --warning-glow: rgba(0, 210, 255, 0.15);

  --danger: #0055ff;
  /* Deep Royal Blue */
  --danger-glow: rgba(0, 85, 255, 0.15);

  --info: #00e5ff;
  /* Light Cyan */
  --info-glow: rgba(0, 229, 255, 0.15);

  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(0, 140, 255, 0.3);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-width: 260px;
}

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

html,
body {
  overflow: hidden;
  height: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0, 140, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Welcome Overlay Page (Exactly matching screenshot) */
.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, #001233 0%, #000714 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.6s ease;
}

.welcome-screen.fade-out {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Top Right Action Button */
.top-action-bar {
  position: absolute;
  top: 40px;
  right: 60px;
  z-index: 10000;
}

.access-panel-btn {
  background: transparent;
  border: 1px solid rgba(0, 140, 255, 0.6);
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.1);
  font-family: var(--font-body);
}

.access-panel-btn:hover {
  background: rgba(0, 140, 255, 0.1);
  border-color: #008cff;
  box-shadow: 0 0 25px rgba(0, 140, 255, 0.4);
  transform: translateY(-2px);
}

/* Concentric Radar Graphic */
.radar-container {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -220px;
  margin-bottom: 24px;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 140, 255, 0.15);
  animation: pulse-radar 4s infinite linear;
}

.radar-circle:nth-child(1) {
  width: 120px;
  height: 120px;
  animation-delay: 0s;
}

.radar-circle:nth-child(2) {
  width: 190px;
  height: 190px;
  animation-delay: 1.3s;
}

.radar-circle:nth-child(3) {
  width: 260px;
  height: 260px;
  animation-delay: 2.6s;
}

.radar-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.25) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-icon-bg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #000c24;
  border: 2px solid rgba(0, 140, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.3rem;
  box-shadow: 0 0 25px rgba(0, 140, 255, 0.5), inset 0 0 15px rgba(0, 140, 255, 0.3);
  z-index: 2;
}

/* Radar Sweep Sweep Line */
.radar-sweep {
  position: absolute;
  width: 130px;
  height: 130px;
  background: conic-gradient(from 0deg, rgba(0, 140, 255, 0.2) 0deg, transparent 120deg);
  border-radius: 50%;
  top: 0;
  left: 0;
  transform-origin: bottom right;
  animation: sweep 4s infinite linear;
  pointer-events: none;
}

@keyframes sweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-radar {
  0% {
    transform: scale(0.9);
    opacity: 0.1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.05;
  }
}

/* Welcome Titles and Text styling */
.welcome-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 5rem;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -1.5px;
  text-shadow: 0 0 20px rgba(0, 140, 255, 0.5), 0 0 45px rgba(0, 140, 255, 0.2);
}

.welcome-tagline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  width: 80%;
  max-width: 650px;
}

.tagline-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 140, 255, 0.4), transparent);
}

.welcome-tagline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Bottom Factory Skyline */
.factory-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 250' fill='none'%3E%3Cpath d='M0 250V180H40V210H80V170H120V230H160V190H200V250H220V120H260L280 150V250H320V200H360V160H400V220H440V180H480V250H500V100L550 70V250H600V190H650V250H700V200L750 180H780L800 250H850V210H900V150H950L980 180V250H1020V220H1060V180H1100V230H1140V190H1180V250H1200V130H1240L1260 160V250H1320V200H1360V170H1400V230H1440V250H0Z' fill='%2300091a'/%3E%3Cpath d='M0 250V200H30V220H60V190H90V235H120V210H150V250H180V150H220L240 180V250H280V220H320V180H360V230H400V200H440V250H460V120L510 90V250H550V210H600V250H650V220L700 200H730L750 250H800V230H850V170H900L930 200V250H970V235H1010V200H1050V240H1090V210H1130V250H1150V150H1190L1210 180V250H1250V220H1290V190H1330V240H1370V250H1440V250H0Z' fill='%2300050d' fill-opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 100% auto;
  pointer-events: none;
  opacity: 0.7;
}

/* Dashboard Container Styles */
.app-container {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

/* Perspective Header Control Bar */
.role-control-bar {
  grid-column: 1 / -1;
  background: rgba(6, 17, 36, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.system-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--info));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-family: var(--font-title);
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.4);
}

.system-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.role-switcher-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 6px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.role-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-left: 10px;
  letter-spacing: 0.5px;
}

.role-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.role-btn.active[data-role="super_admin"] {
  background: var(--danger);
  color: white;
  box-shadow: 0 0 15px var(--danger-glow);
}

.role-btn.active[data-role="admin"] {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.role-btn.active[data-role="manager"] {
  background: var(--info);
  color: white;
  box-shadow: 0 0 15px var(--info-glow);
}

.role-btn.active[data-role="labour"] {
  background: var(--success);
  color: white;
  box-shadow: 0 0 15px var(--success-glow);
}

/* Sidebar Styles */
.sidebar {
  background: linear-gradient(135deg, rgb(9, 49, 112) 0%, rgb(3, 22, 56) 100%);
  border-right: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 61px);
  position: sticky;
  top: 61px;
  overflow: hidden;
}

.sidebar-scrollable-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.sidebar-scrollable-content::-webkit-scrollbar {
  width: 5px;
}

.sidebar-scrollable-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scrollable-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.sidebar-scrollable-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.user-profile-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 24px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--info));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.user-details h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-details span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sidebar-nav {
  flex-grow: 1;
}

.nav-group-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 18px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sidebar-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  border-left: 3px solid var(--primary);
  padding-left: 11px;
  background: rgba(0, 140, 255, 0.08);
  color: var(--primary);
}

.sidebar-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Main Dashboard Workspace */
.main-content {
  padding: 32px;
  overflow-y: auto;
  height: calc(100vh - 61px);
}

/* Top bar summary cards (KPI metrics) */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header-title h1 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-normal);
}

.kpi-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg);
}

.kpi-card.indigo:hover::before {
  background: var(--primary);
}

.kpi-card.emerald:hover::before {
  background: var(--success);
}

.kpi-card.amber:hover::before {
  background: var(--warning);
}

.kpi-card.rose:hover::before {
  background: var(--danger);
}

.kpi-card.cyan:hover::before {
  background: var(--info);
}

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

.kpi-info h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text-primary);
}

.kpi-trend {
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.kpi-trend.up {
  background: rgba(0, 140, 255, 0.1);
  color: var(--primary);
}

.kpi-trend.down {
  background: rgba(0, 85, 255, 0.1);
  color: var(--danger);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.kpi-card.indigo .kpi-icon {
  background: rgba(0, 140, 255, 0.1);
  color: var(--primary);
}

.kpi-card.emerald .kpi-icon {
  background: rgba(0, 176, 255, 0.1);
  color: var(--success);
}

.kpi-card.amber .kpi-icon {
  background: rgba(0, 210, 255, 0.1);
  color: var(--warning);
}

.kpi-card.rose .kpi-icon {
  background: rgba(0, 85, 255, 0.1);
  color: var(--danger);
}

.kpi-card.cyan .kpi-icon {
  background: rgba(0, 229, 255, 0.1);
  color: var(--info);
}

/* Grid Dashboard Sections */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.dashboard-grid.full-width {
  grid-template-columns: 1fr;
}

/* Card General layout */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(0, 140, 255, 0.25);
}

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

.card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 140, 255, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px rgba(0, 140, 255, 0.35);
}

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

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

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 85, 255, 0.2);
}

.btn-danger:hover {
  background: #0044cc;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(0, 176, 255, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 176, 255, 0.2);
}

.badge-warning {
  background: rgba(0, 210, 255, 0.1);
  color: var(--warning);
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.badge-danger {
  background: rgba(0, 85, 255, 0.1);
  color: var(--danger);
  border: 1px solid rgba(0, 85, 255, 0.2);
}

.badge-info {
  background: rgba(0, 229, 255, 0.1);
  color: var(--info);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

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

/* Custom CSS Charts */
.chart-container {
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 20px;
  position: relative;
}

.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.chart-bar {
  width: 60%;
  max-width: 45px;
  background: linear-gradient(to top, var(--primary), var(--info));
  border-radius: 8px 8px 0 0;
  min-height: 10px;
  transition: height 1s ease-out;
  position: relative;
}

.chart-bar-value {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-bar.sales {
  background: linear-gradient(to top, var(--success), var(--warning));
}

.chart-bar.purchases {
  background: linear-gradient(to top, var(--danger), var(--primary));
}

.chart-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
}

/* circular progress indicator */
.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.progress-ring-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-text {
  position: absolute;
  font-size: 1.25rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-primary);
}

/* Tables Section styling */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  border: 1px solid var(--border-color);
}

.custom-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--text-muted);
  position: relative;
  user-select: none;
}

.custom-table td {
  padding: 10px 14px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: var(--transition-fast);
}

.custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.table-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  cursor: col-resize;
  user-select: none;
  height: 100%;
  z-index: 10;
}

.table-resizer:hover,
.table-resizer.resizing {
  background-color: var(--primary);
  width: 4px;
}

/* Attendance Board Controls */
.attendance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.clocking-card {
  text-align: center;
  padding: 32px;
}

.clock-timer {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.clock-btn {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 4px solid var(--border-color);
  transition: var(--transition-normal);
  position: relative;
}

.clock-btn.in {
  background: linear-gradient(135deg, var(--success-glow), rgba(0, 176, 255, 0.02));
  border-color: var(--success);
  color: var(--success);
  box-shadow: 0 0 20px var(--success-glow);
}

.clock-btn.out {
  background: linear-gradient(135deg, var(--danger-glow), rgba(0, 85, 255, 0.02));
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 20px var(--danger-glow);
}

.clock-btn:hover {
  transform: scale(1.05);
}

.clock-btn span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
}

.clock-btn small {
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.8;
}

/* Task Board (Kanban style lists) */
.task-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.task-lane {
  background: rgba(6, 17, 36, 0.4);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 16px;
  min-height: 380px;
}

.lane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.lane-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.lane-count {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.75rem;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  cursor: grab;
  transition: var(--transition-fast);
}

.task-item:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  background: rgba(10, 27, 56, 0.6);
}

.task-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.task-tag.high {
  background: rgba(0, 85, 255, 0.15);
  color: var(--danger);
}

.task-tag.medium {
  background: rgba(0, 210, 255, 0.15);
  color: var(--warning);
}

.task-tag.low {
  background: rgba(0, 176, 255, 0.15);
  color: var(--success);
}

.task-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.task-item p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assignee-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
}

/* Modals styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  transform: scale(0.9);
  transition: var(--transition-normal);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

/* Form inputs styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(0, 140, 255, 0.05);
}

/* Tab Management View Router classes */
.role-section {
  display: none;
}

.role-section.active {
  display: block;
}

.tab-content {
  display: none;
}

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

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

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mt-4 {
  margin-top: 16px;
}

/* System Alerts */
.system-notification-bar {
  background: var(--warning-glow);
  border: 1px solid var(--warning);
  color: var(--warning);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Labour Shift Log Cards list */
.attendance-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.history-date {
  font-weight: 600;
  font-size: 0.85rem;
}

.history-times {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Responsive Layout Overrides */
@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .role-control-bar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .role-switcher-container {
    overflow-x: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .welcome-title {
    font-size: 3.8rem;
  }

  .welcome-tagline {
    font-size: 1.1rem;
  }

  .radar-container {
    margin-top: -120px;
  }
}

@media (max-width: 768px) {
  .welcome-title {
    font-size: 2.8rem;
    padding: 0 16px;
    text-align: center;
  }

  .welcome-tagline-container {
    gap: 12px;
    max-width: 85%;
  }

  .tagline-line {
    display: none;
  }

  .welcome-tagline {
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .radar-container {
    width: 200px;
    height: 200px;
    margin-top: -80px;
  }

  .radar-circle:nth-child(1) {
    width: 100px;
    height: 100px;
  }

  .radar-circle:nth-child(2) {
    width: 150px;
    height: 150px;
  }

  .radar-circle:nth-child(3) {
    width: 200px;
    height: 200px;
  }

  .radar-glow {
    width: 110px;
    height: 110px;
  }

  .radar-icon-bg {
    width: 72px;
    height: 72px;
  }

  .radar-icon-bg svg {
    width: 40px;
    height: 40px;
  }

  .radar-sweep {
    width: 100px;
    height: 100px;
  }

  .top-action-bar {
    top: 24px;
    right: 24px;
  }

  .access-panel-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .factory-skyline {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 2.1rem;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
  }

  .welcome-tagline {
    font-size: 0.85rem;
  }

  .radar-container {
    width: 150px;
    height: 150px;
    margin-top: -40px;
    margin-bottom: 16px;
  }

  .radar-circle:nth-child(1) {
    width: 75px;
    height: 75px;
  }

  .radar-circle:nth-child(2) {
    width: 112px;
    height: 112px;
  }

  .radar-circle:nth-child(3) {
    width: 150px;
    height: 150px;
  }

  .radar-glow {
    width: 80px;
    height: 80px;
  }

  .radar-icon-bg {
    width: 56px;
    height: 56px;
  }

  .radar-icon-bg svg {
    width: 50px;
    height: 50px;
  }

  .radar-sweep {
    width: 75px;
    height: 75px;
  }

  .top-action-bar {
    top: 16px;
    right: 16px;
  }

  .access-panel-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .factory-skyline {
    height: 120px;
  }
}

/* ==========================================================================
   DOUBLE-PANE LOGIN PAGE STYLING (Strictly White & Blue theme matching Image 2)
   ========================================================================== */

.login-body {
  background-color: #f0f4f8;
  color: #0c1a30;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  height: 100%;
}

.login-wrapper {
  display: flex;
  flex: 1;
  height: calc(100vh - 50px);
  width: 100%;
  overflow: hidden;
  position: relative;
}

.login-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(232, 242, 254, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%), url('/factory-skyline.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.3);
  /* Zoom in to crop top/bottom white space borders inside the image file */
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  /* Soften illustration to avoid design clashes */
}

/* Left Branding Side (Light Blueprint theme matching Image 2) */
.login-branding-panel {
  width: 60%;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-right: 1px solid rgba(0, 140, 255, 0.08);
}

/* Login Concentric Circle logo */
.login-logo-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.login-radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 140, 255, 0.25);
  width: 100%;
  height: 100%;
  animation: rotate-radar 12s infinite linear;
}

.login-radar-circle:nth-child(2) {
  width: 75%;
  height: 75%;
  border-style: solid;
  border-color: rgba(0, 140, 255, 0.12);
  animation-direction: reverse;
}

.login-logo-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.15) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(0, 140, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008cff;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 140, 255, 0.12);
}

@keyframes rotate-radar {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.login-brand-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 3.5rem;
  color: #003b95;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.login-tagline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 90%;
  max-width: 500px;
  margin-bottom: 40px;
}

.login-line-divider {
  flex-grow: 1;
  height: 1.5px;
  background: linear-gradient(to right, transparent, rgba(0, 140, 255, 0.25), transparent);
}

.login-brand-tagline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: #4a6b82;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Feature Grid Lists */
.login-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  width: 80%;
  max-width: 480px;
  margin-bottom: 40px;
  text-align: center;
}

.login-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 140, 255, 0.25);
  color: #008cff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 140, 255, 0.08);
}

.login-feature-item:hover .login-feature-icon {
  background: #008cff;
  border-color: #008cff;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 140, 255, 0.25);
}

.login-feature-item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #003b95;
}

/* Callout highlight card */
.login-callout-card {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 140, 255, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: stretch;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 59, 149, 0.06);
}

.login-callout-border {
  width: 4px;
  background: #008cff;
  border-radius: 2px;
}

.login-callout-content h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: #003b95;
  margin-bottom: 4px;
}

.login-callout-content p {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.4;
  font-weight: 500;
}

.login-panel-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 250' fill='none'%3E%3Cpath d='M0 250V180H40V210H80V170H120V230H160V190H200V250H220V120H260L280 150V250H320V200H360V160H400V220H440V180H480V250H500V100L550 70V250H600V190H650V250H700V200L750 180H780L800 250H850V210H900V150H950L980 180V250H1020V220H1060V180H1100V230H1140V190H1180V250H1200V130H1240L1260 160V250H1320V200H1360V170H1400V230H1440V250H0Z' fill='%23008cff'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 100% auto;
  pointer-events: none;
  opacity: 0.06;
}

/* Right Form Side */
.login-form-panel {
  width: 40%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(135deg, #093170 0%, #031638 100%);
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 16px 40px rgba(0, 31, 84, 0.3);
  border: 1px solid rgba(0, 140, 255, 0.3);
}

.login-card-title {
  font-family: var(--font-title);
  font-size: 1.95rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 6px;
}

.login-card-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 36px;
}

.login-field-group {
  margin-bottom: 22px;
}

.login-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  color: #008cff;
  font-size: 1.15rem;
}

.login-input-control {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 140, 255, 0.2);
  background: #f8fafc;
  color: #0c1a30;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.login-input-control::placeholder {
  color: #94a3b8;
}

.login-input-control:focus {
  border-color: #008cff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.15);
}

.login-input-toggle {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  font-size: 1.15rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.login-input-toggle:hover {
  color: #475569;
}

.login-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.login-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #008cff;
  cursor: pointer;
}

.login-forgot-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #38bdf8;
  transition: color 0.2s ease;
}

.login-forgot-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  padding: 13px;
  border-radius: 30px;
  background: #008cff;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 140, 255, 0.3);
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.login-submit-btn:hover {
  background: #0070cc;
  box-shadow: 0 6px 20px rgba(0, 140, 255, 0.45);
  transform: translateY(-1px);
}

.login-or-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-or-divider::before,
.login-or-divider::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.login-or-divider span {
  padding: 0 12px;
}

.login-role-btn {
  width: 100%;
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.login-role-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.login-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
}

.login-trust-footer i {
  color: #38bdf8;
  font-size: 0.95rem;
}

/* Page bottom dark blue footer */
.login-page-footer {
  background: #020813;
  border-top: 1px solid rgba(0, 140, 255, 0.1);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.login-page-footer i {
  color: #008cff;
  margin-right: 4px;
}

/* Responsive constraints for Login page */
@media (max-width: 1100px) {
  .login-brand-title {
    font-size: 2.8rem;
  }

  .login-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .login-feature-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
}

@media (max-width: 900px) {
  .login-body {
    overflow: auto;
    height: auto;
    min-height: 100vh;
  }

  .login-wrapper {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 72px);
    overflow: visible;
  }

  .login-branding-panel {
    display: none;
  }

  .login-form-panel {
    width: 100%;
    min-height: calc(100vh - 72px);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
  }

  .login-panel-skyline {
    display: none;
    /* Hide skyline on collapsed panel layout */
  }

  .login-page-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 16px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .login-card-title {
    font-size: 1.65rem;
  }

  .login-card-subtitle {
    margin-bottom: 24px;
  }

  .login-options-row {
    margin-bottom: 24px;
  }

  .login-field-group {
    margin-bottom: 18px;
  }

  .login-trust-footer {
    margin-top: 24px;
  }
}

/* WhatsApp Task Console Layout - Dark Theme */
.tasks-page-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 125px);
}

.task-tabs-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: flex-start;
}

.task-tabs-container {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  border: 1px solid var(--border-color);
}

.task-tab-btn {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.task-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.task-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.3);
}

.whatsapp-console-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  flex-grow: 1;
  box-shadow: var(--shadow-md);
  position: relative;
}

.chat-sidebar {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: rgba(2, 8, 19, 0.5);
}

.sidebar-search-box {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
  gap: 8px;
}

.search-input-wrapper i {
  color: var(--text-muted);
  font-size: 1rem;
}

.search-input-wrapper input {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.contact-list-container {
  overflow-y: auto;
  flex-grow: 1;
  padding: 8px 0;
}

.contact-item {
  display: flex;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.contact-item.active {
  background: rgba(0, 140, 255, 0.15);
}

.contact-avatar-wrapper {
  position: relative;
}

.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--info));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

.status-indicator.online {
  background: #00e5ff;
}

.contact-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.contact-header-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.contact-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.contact-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-snippet {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-badge {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 140, 255, 0.4);
}

.chat-area-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(2, 8, 19, 0.8);
  position: relative;
}

.chat-area-container.full-width {
  grid-column: 1 / -1;
}

.no-chat-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.no-chat-selected i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 12px;
  opacity: 0.8;
}

.chat-area-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

.active-contact-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-meta h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-subtext {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot-online {
  width: 6px;
  height: 6px;
  background: #00e5ff;
  border-radius: 50%;
  display: inline-block;
}

.chat-thread-feed {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #020813;
  background-image: radial-gradient(rgba(0, 140, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.empty-chat-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
}

.empty-chat-state i {
  font-size: 3rem;
  margin-bottom: 12px;
}

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

.message-row.incoming {
  justify-content: flex-start;
}

.message-row.outgoing {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 60%;
  padding: 10px 14px 22px 14px;
  border-radius: 12px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.message-row.incoming .message-bubble {
  background: #0a1b38;
  color: #ffffff;
  border-top-left-radius: 0;
}

.message-row.outgoing .message-bubble {
  background: rgba(0, 140, 255, 0.15);
  color: #ffffff;
  border-top-right-radius: 0;
}

.message-sender {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--info);
  margin-bottom: 4px;
}

.message-text-content {
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.message-time {
  position: absolute;
  bottom: 4px;
  right: 10px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.system-message-bubble {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.system-message-bubble span {
  background: rgba(0, 140, 255, 0.1);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Voice message player */
.voice-message-player {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 240px;
  padding: 4px 0;
}

.voice-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast);
}

.voice-play-btn:hover {
  transform: scale(1.05);
}

.voice-track-wrapper {
  flex-grow: 1;
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.waveform-mock {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  opacity: 0.35;
}

.waveform-mock span {
  display: inline-block;
  width: 3px;
  background: var(--text-primary);
  border-radius: 1px;
}

.voice-progress-bar {
  position: absolute;
  left: 0;
  top: 11px;
  height: 2px;
  background: var(--primary);
  width: 0%;
  pointer-events: none;
  z-index: 2;
}

.voice-duration {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* File components */
.file-image-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-attached-img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  border: 1px solid var(--border-color);
}

.file-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
  max-width: 280px;
}

.chat-attached-img-grid {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  border: 1px solid var(--border-color);
}

.file-name-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.file-document-card {
  display: flex;
  align-items: center;
  background: rgba(10, 27, 56, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  gap: 10px;
  width: 240px;
}

.file-doc-icon i {
  font-size: 1.8rem;
}

.text-green { color: #00e5ff; }
.text-red { color: #ff3b30; }

.file-doc-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.file-doc-details strong {
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-doc-details span {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.file-doc-download {
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.file-doc-download:hover {
  color: var(--primary);
}

/* Task Chat Card */
.task-chat-card {
  width: 260px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.task-chat-card.high { border-left-color: #ff3b30; }
.task-chat-card.medium { border-left-color: var(--primary); }
.task-chat-card.low { border-left-color: #00e5ff; }

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

.task-priority-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.task-priority-pill.high { background: rgba(255, 59, 48, 0.15); color: #ff3b30; }
.task-priority-pill.medium { background: rgba(0, 140, 255, 0.15); color: #008cff; }
.task-priority-pill.low { background: rgba(0, 229, 255, 0.15); color: #00e5ff; }

.task-id-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.task-title-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.task-details-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
  font-size: 0.72rem;
}

.task-due-date {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-status-badge {
  font-weight: 700;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
}

.task-status-badge.status-todo { background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.task-status-badge.status-progress { background: rgba(0, 140, 255, 0.15); color: var(--primary); }
.task-status-badge.status-done { background: rgba(0, 229, 255, 0.15); color: var(--info); }

.task-card-actions {
  margin-top: 4px;
}

.task-assigned-notify {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-style: italic;
}

.task-assigned-notify.text-blue { color: var(--primary); }

.task-done-banner {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.72rem;
  border-radius: 6px;
}

.w-full {
  width: 100%;
}

/* Chat footer */
.chat-input-footer-bar {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  gap: 12px;
  z-index: 5;
}

.chat-attachment-trigger {
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.chat-attachment-trigger:hover {
  color: var(--primary);
}

.chat-message-form {
  display: flex;
  flex-grow: 1;
  gap: 8px;
}

.chat-text-input-field {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
}

.chat-text-input-field:focus {
  border-color: var(--primary);
}

.chat-send-submit-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.chat-voice-record-btn {
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  transition: color var(--transition-fast);
}

.chat-voice-record-btn:hover {
  color: var(--primary);
}

/* Attachment Popover Menu */
.attachment-popover-menu {
  position: absolute;
  bottom: 68px;
  left: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.attachment-popover-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.attach-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  width: 200px;
  text-align: left;
}

.attach-item-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.attach-item-btn i {
  font-size: 1.1rem;
}

.attach-item-btn.image-btn i { color: #3b82f6; }
.attach-item-btn.doc-btn i { color: #10b981; }
.attach-item-btn.voice-btn i { color: #ec4899; }

/* Recording overlay */
.recording-state-overlay {
  position: absolute;
  bottom: 0;
  left: 60px;
  right: 60px;
  height: 64px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.recording-state-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.recording-pulse-circle {
  width: 12px;
  height: 12px;
  background: #ff3b30;
  border-radius: 50%;
  animation: pulse-mic 1s infinite alternate;
}

@keyframes pulse-mic {
  from { transform: scale(0.9); opacity: 0.4; }
  to { transform: scale(1.2); opacity: 1; }
}

.click-to-send-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Quick task drawer layout */
.task-deploy-panel-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 15;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.task-deploy-panel-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-title);
}

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

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-helper-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Kanban Board Styling fix */
.task-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

.task-lane {
  background: rgba(6, 17, 36, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 100%;
}

.lane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.lane-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.lane-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
}

.task-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.task-tag.high { background: rgba(255, 59, 48, 0.15); color: #ff3b30; }
.task-tag.medium { background: rgba(0, 140, 255, 0.15); color: #008cff; }
.task-tag.low { background: rgba(0, 229, 255, 0.15); color: #00e5ff; }

.task-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.task-item p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.task-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assignee-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 140, 255, 0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.6rem;
  border: 1px solid var(--border-color);
}

/* Image Lightbox */
.image-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(2, 8, 19, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* Welcome Screen Text Animations */
.falling-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(-100px);
  animation: fallDown 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fallDown {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-tagline-container {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

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

/* Page Loader Overlay - Dark Theme Premium */
.page-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(6, 17, 36, 0.9) 0%, rgba(2, 8, 19, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  visibility: visible;
}

.page-loader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Loader Card Container */
.page-loader-card {
  background: rgba(6, 17, 36, 0.6);
  border: 1px solid rgba(0, 140, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 140, 255, 0.15), inset 0 0 20px rgba(0, 140, 255, 0.05);
  padding: 40px 60px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Spinner Outer Container */
.page-loader-spinner-container {
  width: 90px;
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Double Ring System */
.page-loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
}

.page-loader-ring.outer-ring {
  width: 100%;
  height: 100%;
  border-top-color: var(--primary, #008cff);
  border-bottom-color: var(--primary, #008cff);
  animation: spinClockwise 1.5s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.page-loader-ring.inner-ring {
  width: 76%;
  height: 76%;
  border-left-color: #00d2ff;
  border-right-color: #00d2ff;
  animation: spinCounterClockwise 1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

/* Central Badge with Gradient */
.page-loader-logo-badge {
  font-family: var(--font-title, 'Outfit');
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--primary, #008cff);
  background: linear-gradient(135deg, #00d2ff 0%, var(--primary, #008cff) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: badgePulse 2s ease-in-out infinite alternate;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* Typography */
.page-loader-text-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-loader-title {
  font-family: var(--font-title, 'Outfit');
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.page-loader-subtitle {
  font-family: var(--font-body, 'Inter');
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Progress bar animation */
.page-loader-progress-track {
  width: 140px;
  height: 4px;
  background: rgba(0, 140, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.page-loader-progress-bar {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #00d2ff 0%, var(--primary, #008cff) 100%);
  border-radius: 2px;
  animation: indeterminateProgress 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

/* Animations */
@keyframes spinClockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes badgePulse {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 2px rgba(0, 210, 255, 0.1)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4)); }
}

@keyframes indeterminateProgress {
  0% {
    margin-left: -40%;
  }
  100% {
    margin-left: 100%;
  }
}