/**
 * HexaInfo.Hexael.POS — Central Design System & Theme Stylesheet
 * File: docs/wireframes/css/pos-theme.css
 * Standard styling for POS Web, Edge Kiosks, and Setup Prototypes
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Hexael Corporate Brand Tokens (Derived from live https://hexael.in) */
  --brand-primary: #6E40FB;              /* Deep Royal Indigo / Iris Blue (Primary Brand Anchor) */
  --brand-primary-rgb: 110, 64, 251;
  --brand-primary-hover: #5d32e6;
  
  --brand-accent: #BD57FE;               /* Vivid Neon Violet / Purple (Primary Accent) */
  --brand-accent-rgb: 189, 87, 254;
  --brand-accent-hover: #ab3fea;

  --brand-ternary: #BC57FE;              /* Vibrant Violet (Gradient Complement) */
  --brand-primary-light: #F4E3FF;        /* Subtle Lilac Ice / Lavender Tint */
  --brand-primary-light-rgb: 244, 227, 255;

  /* Signature Brand Gradients (Official Hexael 243deg spectrum) */
  --brand-gradient: linear-gradient(243deg, #6E40FB 0%, #BD57FE 100%);
  --brand-gradient-reverse: linear-gradient(243deg, #BD57FE 0%, #6E40FB 100%);
  --brand-glow: rgba(110, 64, 251, 0.4);
  --brand-glow-accent: rgba(189, 87, 254, 0.4);

  /* Hexael Light Surface Accents (For Light Theme / Invoices / Reports) */
  --hexael-heading: #000000;
  --hexael-body: #303030;
  --hexael-muted: #545454;
  --hexael-section-bg: #F8F8F8;
  --hexael-border: #DFDFDF;

  /* Hexael Corporate Clean Light Surfaces (Default) */
  --bg-app: #f8fafc;              /* Slate-50 / Clean corporate canvas */
  --bg-surface: #ffffff;          /* Pure white card surface */
  --bg-surface-elevated: #ffffff; /* Elevated modal / dropdown surface */
  --bg-card: #ffffff;
  --bg-section-alt: #f1f5f9;      /* Slate-100 / Subtle contrast strip */
  
  /* Borders */
  --border-subtle: #e2e8f0;       /* Slate-200 / Subtle card divider */
  --border-medium: #cbd5e1;       /* Slate-300 / Input border */
  --border-focus: var(--brand-primary);

  /* Typography (High Contrast Corporate Dark Text) */
  --text-main: #0f172a;           /* Slate-900 / Headings pitch black-slate */
  --text-body: #334155;           /* Slate-700 / High readability body */
  --text-muted: #64748b;          /* Slate-500 / Subtitles & meta */
  --text-dim: #94a3b8;            /* Slate-400 / Disabled & placeholders */

  /* Operational Status Tokens */
  --status-online: #10b981;   /* Emerald */
  --status-offline: #f43f5e;  /* Rose */
  --status-warning: #f59e0b;  /* Amber */
  --status-info: #0284c7;     /* Sky */
}

/* Optional Dark Mode Overrides (Enabled via .dark or data-theme="dark") */
.dark, [data-theme="dark"] {
  --bg-app: #020617;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-card: #0f172a;
  --bg-section-alt: #0b1120;
  --border-subtle: #1e293b;
  --border-medium: #334155;
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

/* Base Document Styles */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  user-select: none;
  -webkit-user-select: none;
}

code, kbd, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars for Touch Terminals */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Animations */
.fade-in {
  animation: posFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Keypad & Touch Screen Button Press Feedback */
.key-press-active {
  transform: scale(0.92) !important;
  background-color: var(--brand-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px var(--brand-glow) !important;
}

/* Standard Top Application Header */
.pos-app-header {
  background-color: var(--bg-surface);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

/* Telemetry Chips (Terminal, Shift, Sync, Clock) */
.pos-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.625rem;
  background-color: var(--bg-section-alt);
  border: 1px solid var(--border-subtle);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.2s ease;
}

.pos-chip:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-surface);
}

/* Live Pulse Indicators */
.pos-pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  display: inline-block;
  position: relative;
}

.pos-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: inherit;
  opacity: 0.6;
  animation: posPulse 1.8s infinite ease-out;
}

@keyframes posPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.pos-pulse-green {
  background-color: var(--status-online);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.pos-pulse-amber {
  background-color: var(--status-warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.pos-pulse-rose {
  background-color: var(--status-offline);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

/* Standard POS Cards */
.pos-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* Form Inputs */
.pos-input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.pos-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

/* Action Buttons */
.pos-btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px var(--brand-glow);
}

.pos-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--brand-glow);
}

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

/* Hexael Brand Utility Classes */
.bg-brand-gradient {
  background: var(--brand-gradient) !important;
}

.bg-brand-gradient-reverse {
  background: var(--brand-gradient-reverse) !important;
}

.text-brand-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.border-brand {
  border-color: var(--brand-primary) !important;
}

.shadow-brand {
  box-shadow: 0 4px 20px var(--brand-glow) !important;
}

/* Operational Bottom Status Bar */
.pos-footer-status-bar {
  background-color: var(--bg-surface);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.45rem 1.25rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
  box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.02);
}
