/* ============================================================================
   HARDWARE SHOP MANAGEMENT SYSTEM - DESIGN SYSTEM & STYLES
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(99, 102, 241, 0.3);
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  --glow-accent: 0 0 20px rgba(99, 102, 241, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0f172a;
  background-color: var(--bg-primary);
  color: #f8fafc;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.12) 0%, transparent 40%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

code, pre {
  font-family: 'Fira Code', monospace;
}

/* Header & Navigation */
.navbar {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1.5rem 0.4rem 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #334155;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 0.5rem;
}

.navbar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-nav-row {
  display: flex;
  align-items: center;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.4rem;
  overflow-x: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: #10b981;
  color: var(--accent-success);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-item {
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
  color: #f8fafc;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  background: #6366f1;
  background: var(--accent-primary);
  box-shadow: var(--glow-accent);
}

/* User & Location Widget in Navbar */
.user-header-widget {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(30, 41, 59, 0.85);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  border: 1px solid #6366f1;
  border: 1px solid var(--border-highlight);
  flex-shrink: 0;
}

.header-location-select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #6366f1;
  border: 1px solid var(--border-highlight);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.header-location-select option {
  background: #0f172a;
  background: var(--bg-primary);
  color: #f8fafc;
  color: var(--text-main);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-info));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn-logout:hover {
  background: #ef4444;
  background: var(--accent-danger);
  color: white;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* FULL-SCREEN LOGIN OVERLAY */
.login-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.login-card {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid #6366f1;
  border: 1px solid var(--border-highlight);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  border-radius: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--glow-accent);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-header {
  text-align: center;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.demo-account-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-demo-acc {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
  color: #94a3b8;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-demo-acc:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #f8fafc;
  color: var(--text-main);
  border-color: #6366f1;
  border-color: var(--accent-primary);
}

/* Layout Container */
.container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  flex: 1;
}

/* Metric Cards - Compact Header Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: #1e293b;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #6366f1;
  background: var(--accent-primary);
}

.stat-card.warning::before { background: #f59e0b; }
.stat-card.warning::before { background: var(--accent-warning); }
.stat-card.danger::before { background: #ef4444; }
.stat-card.danger::before { background: var(--accent-danger); }
.stat-card.success::before { background: #10b981; }
.stat-card.success::before { background: var(--accent-success); }

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  border-color: var(--border-highlight);
  background: #334155;
  background: var(--bg-card-hover);
}

.stat-info .stat-label {
  font-size: 0.725rem;
  color: #94a3b8;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.stat-info .stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Control Toolbar */
.toolbar-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background: #1e293b;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
}

.search-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  flex: 1;
}

.search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  border-radius: var(--radius-md);
  color: #f8fafc;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: #6366f1;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-box i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  color: var(--text-muted);
}

.select-control {
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  border-radius: var(--radius-md);
  color: #f8fafc;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.select-control option {
  background: #0f172a;
  background: var(--bg-primary);
  color: #f8fafc;
  color: var(--text-main);
}

/* Buttons */
.btn {
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  outline: none;
}

.btn-primary {
  background: #6366f1;
  background: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #4f46e5;
  background: var(--accent-primary-hover);
  box-shadow: var(--glow-accent);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-success {
  background: #10b981;
  background: var(--accent-success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-icon-only {
  padding: 0.5rem;
  border-radius: 6px;
  border-radius: var(--radius-sm);
}

/* Table Design */
.table-card {
  background: #1e293b;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid #334155;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Badges */
.badge {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-primary { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }

/* POS LAYOUT STYLES */
.pos-container {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 1.5rem;
}

.pos-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.pos-item-card {
  background: #1e293b;
  background: var(--bg-card);
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 140px;
}

.pos-item-card:hover {
  transform: translateY(-3px);
  border-color: #6366f1;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.pos-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #f8fafc;
  color: var(--text-main);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pos-item-code {
  font-size: 0.75rem;
  color: #6366f1;
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 0.25rem;
}

.pos-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.pos-item-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #10b981;
  color: var(--accent-success);
}

/* Counter Billing Cart Panel - Distinct Color Styling */
.pos-cart-panel {
  background: linear-gradient(165deg, rgba(24, 28, 56, 0.95) 0%, rgba(30, 27, 75, 0.92) 50%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(99, 102, 241, 0.45);
  border-radius: 16px;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: fit-content;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.pos-cart-panel h3 {
  color: #a5b4fc;
  text-shadow: 0 0 12px rgba(165, 180, 252, 0.3);
}

.cart-items-list {
  max-height: 280px;
  overflow-y: auto;
  margin: 1rem 0;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  font-size: 0.85rem;
}

.cart-row:hover {
  background: rgba(99, 102, 241, 0.1);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-qty {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  color: var(--text-main);
  cursor: pointer;
}

/* Thermal Receipt Styling */
.receipt-paper {
  background: #ffffff;
  color: #000000;
  font-family: 'Fira Code', monospace;
  width: 320px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-size: 0.8rem;
  line-height: 1.4;
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #000;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}

.receipt-table th, .receipt-table td {
  padding: 0.25rem 0;
}

.receipt-footer {
  border-top: 1px dashed #000;
  padding-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #1e293b;
  background: var(--bg-secondary);
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 680px;
  border-radius: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid #334155;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid #334155;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  color: var(--text-muted);
}

.form-input, .form-select {
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  border-radius: var(--radius-md);
  color: #f8fafc;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: #6366f1;
  border-color: var(--accent-primary);
}

/* Code Viewer Tab */
.code-viewer {
  background: #090d16;
  border: 1px solid #334155;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #e2e8f0;
  max-height: 500px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .pos-container { grid-template-columns: 1fr; }
  .toolbar-section { flex-direction: column; align-items: stretch; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
}

/* POS Barcode Scan Search Box - Vivid Neon Cyan Styling */
.pos-barcode-search {
  position: relative;
}

.pos-barcode-search input {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(14, 116, 144, 0.26) 100%);
  border: 1.5px solid rgba(34, 211, 238, 0.55);
  border-radius: 10px;
  border-radius: var(--radius-md);
  color: #ecfeff;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.22);
  transition: all 0.25s ease;
}

.pos-barcode-search input::placeholder {
  color: rgba(165, 243, 252, 0.75);
  font-weight: 400;
}

.pos-barcode-search input:focus {
  border-color: #06b6d4;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.24) 0%, rgba(14, 116, 144, 0.38) 100%);
  box-shadow: 0 0 0 3.5px rgba(6, 182, 212, 0.32), 0 0 22px rgba(34, 211, 238, 0.45);
}

.pos-barcode-search i {
  color: #22d3ee;
  font-size: 1.15rem;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.65));
  animation: barcodePulse 2.5s infinite ease-in-out;
}

@keyframes barcodePulse {
  0%, 100% { transform: translateY(-50%) scale(1); filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.65)); }
  50% { transform: translateY(-50%) scale(1.1); filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.95)); }
}

/* English / Sinhala Language Switcher Pill */
.lang-switcher-pill {
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #6366f1;
  border: 1px solid var(--border-highlight);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  padding: 0.15rem;
  gap: 0.15rem;
  flex-shrink: 0;
}

.btn-lang {
  background: transparent;
  border: none;
  color: #94a3b8;
  color: var(--text-muted);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-lang:hover {
  color: #f8fafc;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.btn-lang.active {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Floating Item Image Hover Popover (Only Image & Item Code) */
.item-image-preview-popover {
  position: fixed;
  z-index: 10000;
  display: none;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid #6366f1;
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(6, 182, 212, 0.35);
  width: 170px;
  text-align: center;
  transition: opacity 0.15s ease-in-out;
  opacity: 0;
}

.item-image-preview-popover.visible {
  display: block;
  opacity: 1;
}

.popover-image-wrapper {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.4rem;
}

.popover-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popover-code {
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Hover indicator styling on item code */
.pos-item-code, .hover-image-trigger {
  cursor: pointer;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.pos-item-code:hover, .hover-image-trigger:hover {
  color: #38bdf8 !important;
  text-decoration: underline;
}




/* ============================================================================
   INTERNET EXPLORER 11 & EMBEDDED BROWSER COMPATIBILITY FIXES
   ============================================================================ */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  body { background-color: #0f172a; color: #f8fafc; }
  .navbar { background-color: #0f172a; position: relative; }
  .navbar-top-row { display: block; clear: both; overflow: hidden; margin-bottom: 0.5rem; }
  .brand { float: left; }
  .navbar-actions { float: right; }
  .navbar-nav-row { display: block; clear: both; overflow: hidden; padding-top: 0.5rem; border-top: 1px solid #334155; }
  .nav-item { display: inline-block; float: left; margin-right: 0.5rem; padding: 0.5rem 1rem; color: #94a3b8; background-color: #1e293b; border-radius: 6px; }
  .nav-item.active { color: #ffffff; background-color: #6366f1; }
  .stats-grid { display: block; clear: both; overflow: hidden; margin-bottom: 1.5rem; }
  .stat-card { display: block; float: left; width: 23%; margin-right: 2%; background-color: #1e293b; padding: 1rem; border-radius: 10px; border: 1px solid #334155; }
  .stat-card:last-child { margin-right: 0; }
  .pos-container { display: block; clear: both; overflow: hidden; }
  .pos-main { display: block; float: left; width: 68%; }
  .pos-sidebar { display: block; float: right; width: 30%; background-color: #1e293b; padding: 1rem; border-radius: 10px; }
  .pos-grid { display: block; clear: both; overflow: hidden; }
  .pos-item-card { display: block; float: left; width: 31%; margin: 1%; background-color: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 1rem; box-sizing: border-box; }
  input, select, textarea, button { background-color: #1e293b; color: #f8fafc; border: 1px solid #334155; }
  .btn-primary { background-color: #6366f1; color: #ffffff; }
  .modal-content { background-color: #1e293b; color: #f8fafc; border: 1px solid #6366f1; }
  .table-container table { width: 100%; border-collapse: collapse; }
  .table-container th, .table-container td { padding: 0.75rem; border-bottom: 1px solid #334155; color: #f8fafc; }
  .table-container th { background-color: #0f172a; }
}