/* === WOMENE V2.1 DESIGN TOKENS === */
/* Locked-in palette — matches packing slip aesthetic */
:root {
    /* --- Surfaces & ink --- */
    --w-page-bg:      #FFFFFF;
    --w-surface:      #F8F3EC;   /* soft cream — primary card/panel */
    --w-surface-2:    #F3E9DD;   /* nude — buttons, secondary panels */
    --w-surface-3:    #FEE6D3;   /* Shell — accent panel (rare) */
    --w-ink:          #333131;   /* Ash — primary text & active accent */
    --w-ink-muted:    #8A7B6F;   /* warm grey — secondary text */
    --w-ink-soft:     #B8A89A;   /* disabled / placeholder */

    --w-border-soft:   rgba(51, 49, 49, 0.08);
    --w-border-medium: rgba(51, 49, 49, 0.25);
    --w-border-strong: rgba(51, 49, 49, 0.40);

    /* --- Brand accents --- */
    --w-fawn:    #D19E83;   /* warm brown — rare accent */
    --w-almond:  #D8B79E;   /* deeper beige — photo backdrops */
    --w-mallow:  #EDE7DA;   /* cool cream — editorial bg */
    --w-shell:   #FEE6D3;   /* soft peach — see --w-surface-3 */

    /* --- Semantic --- */
    --w-success: #6B8E5A;   /* sage tick */
    --w-warning: #D19E83;   /* Fawn doubles as warning */
    --w-danger:  #E55664;   /* Carmine — destructive only */

    /* --- Typography --- */
    --w-font-display: 'Shocka Serif', Georgia, serif;
    --w-font-body:    'Gotham Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --w-size-hero:    44px;   /* hero headlines */
    --w-size-h1:      28px;   /* page heading */
    --w-size-h2:      20px;   /* section heading */
    --w-size-h3:      16px;   /* subhead */
    --w-size-body:    15px;   /* body copy */
    --w-size-small:   13px;   /* secondary text */
    --w-size-tiny:    11px;   /* captions, button labels (all caps) */

    --w-weight-light:   300;
    --w-weight-regular: 400;
    --w-weight-medium:  500;
    --w-weight-bold:    700;
    --w-weight-black:   900;

    --w-leading-tight:  1.15;
    --w-leading-normal: 1.5;
    --w-tracking-button: 0.08em;
    --w-tracking-label:  0.06em;

    /* --- Spacing scale (4-based) --- */
    --w-space-1:  4px;
    --w-space-2:  8px;
    --w-space-3:  12px;
    --w-space-4:  16px;
    --w-space-5:  20px;
    --w-space-6:  24px;
    --w-space-8:  32px;
    --w-space-10: 40px;
    --w-space-12: 48px;
    --w-space-16: 64px;

    /* --- Radii --- */
    --w-radius-sm:    6px;
    --w-radius-md:    10px;
    --w-radius-lg:    12px;
    --w-radius-pill:  999px;
}

/* === Minimal global type rule ===
   Apply Gotham Pro everywhere by default. Shocka Serif only on display
   classes we opt into during the screen reskin (Days 3-5). */
body {
    font-family: var(--w-font-body);
    font-weight: var(--w-weight-regular);
    color: var(--w-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--w-font-body);  /* default to Gotham; opt into Shocka via .w-display class */
    color: var(--w-ink);
    font-weight: var(--w-weight-medium);
}

/* Opt-in display class — apply Shocka Serif where we want editorial weight */
.w-display {
    font-family: var(--w-font-display);
    font-weight: var(--w-weight-light);
    letter-spacing: -0.01em;
    line-height: var(--w-leading-tight);
}

/* Opt-in body class — for places that explicitly need brand body type */
.w-body {
    font-family: var(--w-font-body);
    line-height: var(--w-leading-normal);
}

/* === END WOMENE V2.1 DESIGN TOKENS === */

/* === WOMENE V2.1 COMPONENT LIBRARY === */
/* Reusable classes built on Day 1 design tokens.
   All prefixed .w-* so they don't collide with legacy styles. */

/* ---------- Page wrapper ---------- */
.w-page {
    background: var(--w-page-bg);
    color: var(--w-ink);
    min-height: 100vh;
    padding: var(--w-space-5);
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 20px) + var(--w-space-5));
    font-family: var(--w-font-body);
    font-size: var(--w-size-body);
    line-height: var(--w-leading-normal);
}

/* ---------- Cards & panels ---------- */
.w-card {
    background: var(--w-surface);
    border: 0.5px solid var(--w-border-soft);
    border-radius: var(--w-radius-lg);
    padding: var(--w-space-4) var(--w-space-5);
    margin-bottom: var(--w-space-4);
}
.w-card--tight   { padding: var(--w-space-3) var(--w-space-4); }
.w-card--nude    { background: var(--w-surface-2); }
.w-card--shell   { background: var(--w-surface-3); }
.w-card--white   { background: var(--w-page-bg); border: 0.5px solid var(--w-border-soft); }

.w-card__label {
    font-size: var(--w-size-tiny);
    color: var(--w-ink-muted);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-label);
    text-transform: uppercase;
    margin: 0 0 var(--w-space-2);
}
.w-card__title {
    font-size: var(--w-size-h3);
    color: var(--w-ink);
    font-weight: var(--w-weight-medium);
    margin: 0;
}
.w-card__meta {
    font-size: var(--w-size-small);
    color: var(--w-ink-muted);
    margin: var(--w-space-1) 0 0;
    line-height: var(--w-leading-normal);
}

/* ---------- List items (orders, items, addresses) ---------- */
.w-list-item {
    display: flex;
    align-items: center;
    gap: var(--w-space-3);
    background: var(--w-surface);
    border-radius: var(--w-radius-lg);
    padding: var(--w-space-3);
    margin-bottom: var(--w-space-2);
}
.w-list-item__thumb {
    width: 52px;
    height: 52px;
    background: var(--w-page-bg);
    border: 0.5px solid var(--w-border-soft);
    border-radius: var(--w-radius-md);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.w-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.w-list-item__body {
    flex: 1;
    min-width: 0;
}
.w-list-item__title {
    margin: 0;
    font-size: var(--w-size-body);
    font-weight: var(--w-weight-medium);
    color: var(--w-ink);
    overflow: hidden;
    text-overflow: ellipsis;
}
.w-list-item__meta {
    margin: var(--w-space-1) 0 0;
    font-size: var(--w-size-small);
    color: var(--w-ink-muted);
}
.w-list-item__right {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--w-ink-muted);
}
.w-list-item--done .w-list-item__title { color: var(--w-ink); }
.w-list-item--done .w-list-item__right { color: var(--w-success); }

/* ---------- Buttons ---------- */
.w-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--w-space-2);
    border: none;
    cursor: pointer;
    font-family: var(--w-font-body);
    transition: opacity 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.w-btn:disabled,
.w-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}
.w-btn:active:not(:disabled) { opacity: 0.85; }

/* Primary — Ash filled, all caps */
.w-btn-primary {
    background: var(--w-ink);
    color: var(--w-page-bg);
    padding: 14px var(--w-space-6);
    border-radius: var(--w-radius-pill);
    font-size: var(--w-size-tiny);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-button);
    text-transform: uppercase;
}
.w-btn-primary:hover:not(:disabled) { background: #1a1a1a; }
.w-btn-primary--block { width: 100%; }

/* Accent — Fawn, all caps. For warm-toned CTAs in the body of a page. */
.w-btn-accent {
    background: var(--w-fawn);
    color: var(--w-page-bg);
    padding: 14px var(--w-space-6);
    border-radius: var(--w-radius-pill);
    font-size: var(--w-size-tiny);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-button);
    text-transform: uppercase;
}
.w-btn-accent--block { width: 100%; }

/* Nude — subtle filled, all caps. For header / chrome actions. */
.w-btn-nude {
    background: var(--w-surface-2);
    color: var(--w-ink);
    padding: 8px var(--w-space-4);
    border-radius: var(--w-radius-pill);
    font-size: var(--w-size-tiny);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-button);
    text-transform: uppercase;
}

/* Secondary — outlined, sentence case. For inline actions. */
.w-btn-secondary {
    background: transparent;
    color: var(--w-ink);
    border: 0.5px solid var(--w-border-medium);
    padding: 10px var(--w-space-4);
    border-radius: var(--w-radius-md);
    font-size: var(--w-size-small);
    font-weight: var(--w-weight-medium);
}
.w-btn-secondary:hover:not(:disabled) { background: var(--w-surface); }

/* Ghost — minimal, text-only, sentence case. */
.w-btn-ghost {
    background: transparent;
    color: var(--w-ink-muted);
    padding: var(--w-space-2) var(--w-space-3);
    border-radius: var(--w-radius-md);
    font-size: var(--w-size-small);
    font-weight: var(--w-weight-medium);
}
.w-btn-ghost:hover:not(:disabled) { color: var(--w-ink); }

/* Pill — small inline, dashed border for "soft" affordances like override */
.w-btn-pill {
    background: transparent;
    color: var(--w-ink-muted);
    border: 0.5px dashed var(--w-border-medium);
    padding: 4px var(--w-space-3);
    border-radius: var(--w-radius-pill);
    font-size: var(--w-size-tiny);
    font-weight: var(--w-weight-medium);
}
.w-btn-pill:hover:not(:disabled) {
    color: var(--w-ink);
    border-color: var(--w-border-strong);
}

/* Danger — Carmine, all caps. Only for destructive actions. */
.w-btn-danger {
    background: var(--w-danger);
    color: var(--w-page-bg);
    padding: 12px var(--w-space-5);
    border-radius: var(--w-radius-pill);
    font-size: var(--w-size-tiny);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-button);
    text-transform: uppercase;
}

/* ---------- Inputs ---------- */
.w-input {
    width: 100%;
    background: var(--w-page-bg);
    border: 0.5px solid var(--w-border-medium);
    border-radius: var(--w-radius-md);
    padding: 12px var(--w-space-4);
    font-family: var(--w-font-body);
    font-size: var(--w-size-body);
    color: var(--w-ink);
    -webkit-appearance: none;
    appearance: none;
}
.w-input::placeholder { color: var(--w-ink-soft); }
.w-input:focus {
    outline: none;
    border-color: var(--w-ink);
}

.w-input-group {
    display: flex;
    gap: var(--w-space-2);
    align-items: center;
}

/* ---------- Progress bar ---------- */
.w-progress {
    height: 3px;
    background: var(--w-surface-2);
    border-radius: var(--w-radius-pill);
    overflow: hidden;
}
.w-progress__fill {
    height: 100%;
    background: var(--w-ink);
    transition: width 0.3s ease;
}
.w-progress--success .w-progress__fill { background: var(--w-success); }
.w-progress--accent  .w-progress__fill { background: var(--w-fawn); }

.w-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--w-space-2);
}
.w-progress-row__label {
    margin: 0;
    font-size: var(--w-size-small);
    color: var(--w-ink);
    font-weight: var(--w-weight-medium);
}
.w-progress-row__meta {
    margin: 0;
    font-size: var(--w-size-tiny);
    color: var(--w-ink-muted);
}

/* ---------- Badges (status chips) ---------- */
.w-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--w-space-1);
    padding: 3px var(--w-space-2);
    border-radius: var(--w-radius-pill);
    font-size: var(--w-size-tiny);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-label);
    text-transform: uppercase;
    background: var(--w-surface);
    color: var(--w-ink-muted);
}
.w-badge--ink     { background: var(--w-ink);       color: var(--w-page-bg); }
.w-badge--nude    { background: var(--w-surface-2); color: var(--w-ink); }
.w-badge--success { background: rgba(107, 142, 90, 0.12); color: var(--w-success); }
.w-badge--danger  { background: rgba(229, 86, 100, 0.12); color: var(--w-danger); }

/* ---------- Stat tiles (dashboard 0 NEW / 1 PICK / 1 PACK / 1 SHIP) ---------- */
.w-stat {
    background: var(--w-surface);
    border-radius: var(--w-radius-lg);
    padding: var(--w-space-4) var(--w-space-3);
    text-align: center;
}
.w-stat__value {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: var(--w-weight-bold);
    color: var(--w-ink);
}
.w-stat__label {
    margin: var(--w-space-2) 0 0;
    font-size: var(--w-size-tiny);
    color: var(--w-ink-muted);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-label);
    text-transform: uppercase;
}

.w-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--w-space-2);
}

/* ---------- Toast / inline alert ---------- */
.w-toast {
    background: var(--w-ink);
    color: var(--w-page-bg);
    padding: 12px var(--w-space-4);
    border-radius: var(--w-radius-md);
    font-size: var(--w-size-small);
    font-weight: var(--w-weight-medium);
    line-height: var(--w-leading-normal);
}
.w-toast--success { background: var(--w-success); }
.w-toast--danger  { background: var(--w-danger); }
.w-toast--warning { background: var(--w-warning); color: var(--w-ink); }

/* ---------- Section headers ---------- */
.w-section-label {
    margin: var(--w-space-6) 0 var(--w-space-3);
    font-size: var(--w-size-tiny);
    color: var(--w-ink-muted);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-label);
    text-transform: uppercase;
}
.w-section-label:first-child { margin-top: 0; }

/* ---------- Display headlines (opt-in Shocka Serif) ---------- */
.w-h1 {
    font-family: var(--w-font-display);
    font-weight: var(--w-weight-light);
    font-size: var(--w-size-h1);
    line-height: var(--w-leading-tight);
    color: var(--w-ink);
    letter-spacing: -0.01em;
    margin: 0 0 var(--w-space-3);
}
.w-h2 {
    font-family: var(--w-font-display);
    font-weight: var(--w-weight-bold);
    font-size: var(--w-size-h2);
    line-height: var(--w-leading-tight);
    color: var(--w-ink);
    margin: 0 0 var(--w-space-2);
}

/* ---------- Signature (the three-word italic close) ---------- */
.w-signature {
    font-family: var(--w-font-body);
    font-style: italic;
    font-size: var(--w-size-body);
    color: var(--w-ink-muted);
    margin: var(--w-space-4) 0 0;
}

/* === END WOMENE V2.1 COMPONENT LIBRARY === */



/* ============================================
   WOMENE.SHOP - MOBILE WAREHOUSE MANAGEMENT
   Modern Purple Design System with Inter Font
   ============================================ */

/* Import Inter Font (used by OpenAI, GitHub, Figma) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   DESIGN TOKENS - PURPLE BRAND PALETTE
   ============================================ */
:root {
    /* ===== PRIMARY BRAND - PURPLE ===== */
    --purple-900: #6B2D6B;
    --purple-800: #7A3A7A;
    --purple-700: #8B4A8B;
    --purple-600: #9D5A9D;
    --purple-500: #AD5CAD;  /* PRIMARY BRAND COLOR */
    --purple-400: #BD7DBD;
    --purple-300: #CA97CA;
    --purple-200: #DDB8DD;
    --purple-100: #EEDCEE;
    --purple-50:  #F9F2F9;
    
    /* ===== SEMANTIC COLORS ===== */
    --success: #10B981;
    --success-light: #D1FAE5;
    --success-dark: #059669;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --warning-dark: #D97706;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --error-dark: #DC2626;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    --info-dark: #2563EB;
    
    /* Legacy color mappings */
    --primary: var(--purple-500);
    --primary-dark: var(--purple-600);
    --primary-light: var(--purple-400);
    --danger: var(--error);
    --dark: var(--gray-900);
    --dark-soft: var(--gray-800);
    --light: var(--gray-50);
    --bg: var(--bg-app);
    --bg-soft: var(--gray-100);
    
    /* ===== NEUTRALS ===== */
    --gray-900: #1A1A2E;
    --gray-800: #2D2D3A;
    --gray-700: #4A4A5A;
    --gray-600: #6B6B7B;
    --gray-500: #8B8B9B;
    --gray-400: #ABABBB;
    --gray-300: #CBCBD6;
    --gray-200: #E5E5EB;
    --gray-100: #F4F4F7;
    --gray-50:  #FAFAFC;
    --white: #FFFFFF;
    
    /* ===== BACKGROUNDS ===== */
    --bg-app: #F8F5F9;
    --bg-card: #FFFFFF;
    --bg-input: #F4F4F7;
    --bg-header: #FFFFFF;
    
    /* ===== SHADOWS - Purple tinted ===== */
    --shadow-xs: 0 1px 2px rgba(107, 45, 107, 0.04);
    --shadow-sm: 0 2px 4px rgba(107, 45, 107, 0.06);
    --shadow-md: 0 4px 12px rgba(107, 45, 107, 0.08);
    --shadow-lg: 0 8px 24px rgba(107, 45, 107, 0.12);
    --shadow-xl: 0 16px 48px rgba(107, 45, 107, 0.16);
    --shadow-primary: 0 4px 14px rgba(173, 92, 173, 0.35);
    --shadow-primary-lg: 0 8px 25px rgba(173, 92, 173, 0.4);
    
    /* ===== BORDERS ===== */
    --border-light: #E5E5EB;
    --border-medium: #CBCBD6;
    --border-focus: var(--purple-500);
    
    /* ===== BORDER RADIUS ===== */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* ===== SPACING ===== */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* ===== TYPOGRAPHY ===== */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
    --font-primary: var(--font-sans);
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* ===== Z-INDEX ===== */
    --z-dropdown: 100;
    --z-header: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-overlay: 500;
    
    /* ===== LAYOUT ===== */
    --header-height: 60px;
    --bottom-nav-height: 64px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================
   DARK THEME VARIABLES
   ============================================ */
body[data-theme="dark"],
body.dark-theme {
    --purple-500: #BD7DBD;
}



/* === WOMENE V2.1 — KILL PURPLE (narrow) === */
/* Only redefine purple-family variables. Leave --bg-app, --success,
   --gray-* alone — they were doing fine and reflexive changes broke
   the dark-mode + success-card backgrounds. */
:root {
    --purple-900: #1a1a1a;
    --purple-800: #1a1a1a;
    --purple-700: #1a1a1a;
    --purple-600: #1a1a1a;
    --purple-500: #333131;       /* PRIMARY — was #AD5CAD */
    --purple-400: #5A4A40;
    --purple-300: #8A7B6F;
    --purple-200: #B8A89A;
    --purple-100: #F3E9DD;
    --purple-50:  #F8F3EC;

    /* Kill the last pinkish whisper of the legacy app background */
    --bg-app: #FFFFFF;
}


/* Font Size Scaling */
body[data-font-size="small"] { font-size: 14px; }
body[data-font-size="medium"] { font-size: 16px; }
body[data-font-size="large"] { font-size: 18px; }
body[data-font-size="xlarge"] { font-size: 20px; }

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--bg-app);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* ============================================
   APP HEADER - Clean White Design
   ============================================ */
.app-header {
    background: var(--bg-header);
    height: var(--header-height);
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--space-md);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 44px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 44px;
    justify-content: flex-end;
}

.header-content h1 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--purple-500);
    letter-spacing: -0.02em;
    margin: 0;
    text-align: center;
    flex: 1;
}

/* Header Buttons */
.header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-btn:hover {
    background: var(--gray-100);
    color: var(--purple-500);
}

.header-btn svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 12px 6px 6px;
    background: var(--gray-50);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-700);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

.user-dropdown-btn:hover {
    background: var(--gray-100);
    border-color: var(--border-medium);
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semibold);
    font-size: var(--text-xs);
}

.user-name-short {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--gray-700);
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    color: var(--gray-500);
    transition: transform var(--transition-fast);
}

.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
}

.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-base);
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-user-info strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
}

.dropdown-role {
    font-size: var(--text-xs);
    color: var(--gray-500);
    font-weight: var(--font-medium);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-xs) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-700);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--purple-50);
    color: var(--purple-600);
}

.dropdown-icon {
    width: 18px;
    height: 18px;
}

.dropdown-item.logout-item {
    color: var(--error);
}

.dropdown-item.logout-item:hover {
    background: var(--error-light);
    color: var(--error-dark);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.app-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
    min-height: calc(100vh - 120px);
}

/* ============================================
   BOTTOM NAVIGATION BAR
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    padding-top: var(--space-sm);
    padding-bottom: var(--safe-area-bottom);
    z-index: var(--z-header);
    box-shadow: 0 -2px 10px rgba(107, 45, 107, 0.06);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: var(--space-xs) var(--space-md);
    min-width: 64px;
    text-decoration: none;
    color: var(--gray-500);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-item:hover {
    color: var(--purple-500);
}

.nav-item.active {
    color: var(--purple-500);
}

.nav-item.active .nav-icon-wrapper {
    background: var(--purple-50);
}

.nav-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.nav-label {
    font-size: 11px;
    font-weight: var(--font-medium);
    letter-spacing: -0.01em;
}

/* ============================================
   APP FOOTER
   ============================================ */
.app-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    text-align: center;
    padding: var(--space-lg);
    font-size: var(--text-sm);
    margin-top: var(--space-xl);
}

.app-footer p {
    margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-warning,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    min-height: 48px;
    width: 100%;
    margin: var(--space-xs) 0;
}

.btn-primary {
    background: var(--purple-500);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--purple-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--purple-500);
    border: 2px solid var(--purple-500);
}

.btn-secondary:hover {
    background: var(--purple-50);
    border-color: var(--purple-600);
    color: var(--purple-600);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-warning:hover {
    background: var(--warning-dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--error);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    background: var(--error-dark);
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-success:active,
.btn-warning:active,
.btn-danger:active,
.btn-secondary:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-large {
    font-size: 1.25rem;
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-sm) 0;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

body.dark-theme .glass-card {
    background: rgba(26, 26, 46, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.badge-primary {
    background: var(--purple-100);
    color: var(--purple-700);
}

.badge-success {
    background: var(--success-light);
    color: #047857;
}

.badge-warning {
    background: var(--warning-light);
    color: #B45309;
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.input,
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--gray-900);
    transition: all var(--transition-base);
}

.input:focus,
.form-input:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(173, 92, 173, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

.inline-input {
    padding: 10px 14px;
    font-size: var(--text-sm);
}

.inline-select {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--gray-700);
    cursor: pointer;
}

.barcode-input {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    text-align: center;
    letter-spacing: 0.05em;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */
.dashboard {
    padding: var(--space-md);
    padding-bottom: var(--space-xl);
    animation: fadeIn 0.4s ease;
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    height: 140px;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card:active {
    transform: translateY(0);
}

.dashboard-card.large {
    grid-column: span 2;
    height: 180px;
}

.dashboard-card.wide {
    grid-column: span 2;
    height: 120px;
}

.dashboard-card.tall {
    grid-row: span 2;
    height: calc(140px * 2 + var(--space-md));
}

/* Card Gradient Overlays */
.card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.95;
}

/* Card overlay colors */
.card-overlay.blue,
.dashboard-card.batch-picking .card-gradient {
    background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-700) 100%);
}

.card-overlay.green,
.dashboard-card.pack .card-gradient {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
}

.card-overlay.orange,
.dashboard-card.returns .card-gradient {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
}

.card-overlay.red {
    background: linear-gradient(135deg, var(--error) 0%, var(--error-dark) 100%);
}

.card-overlay.purple,
.dashboard-card.pending .card-gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

.card-overlay.teal,
.dashboard-card.inventory .card-gradient {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
}

.card-overlay.indigo,
.dashboard-card.orders .card-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.dashboard-card.cycle .card-gradient {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

.dashboard-card.stock .card-gradient {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 1;
    padding: var(--space-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dashboard-card .card-content {
    color: white;
}

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-sm);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.dashboard-card.large .card-icon {
    width: 48px;
    height: 48px;
}

.card-content h3 {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    letter-spacing: 0.03em;
    margin: 0;
    text-transform: uppercase;
}

.dashboard-card.large .card-content h3 {
    font-size: var(--text-base);
}

.card-subtitle {
    font-size: var(--text-xs);
    opacity: 0.9;
    margin-top: 2px;
}

.card-stat {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    font-family: var(--font-mono);
    margin-top: var(--space-xs);
}

.card-stats {
    margin-top: var(--space-sm);
}

.stat-primary {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

.stat-alert {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-top: var(--space-xs);
}

.stat-alert svg {
    width: 14px;
    height: 14px;
}

.card-alert {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-xl);
    display: inline-block;
    margin-top: var(--space-sm) !important;
    font-weight: var(--font-semibold);
}

/* ============================================
   ACTIVE BATCHES SECTION
   ============================================ */
.active-batches-section {
    margin-top: var(--space-xl);
}

.active-batches-section h3,
.section-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.batch-card-mini {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.batch-card-mini:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.batch-card-mini .batch-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--purple-500);
}

.batch-card-mini .batch-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.batch-info h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin: 0 0 2px 0;
}

.batch-info p {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin: 0;
}

.batch-action {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.action-badge {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.action-badge.picking {
    background: var(--purple-100);
    color: var(--purple-700);
}

.action-badge.ready {
    background: var(--success-light);
    color: #047857;
}

.action-badge.pending {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ============================================
   ORDERS LIST / CONTAINER
   ============================================ */
.orders-container {
    margin-top: var(--space-md);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-base);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ============================================
   LIST ITEMS
   ============================================ */
.list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.list-item:hover {
    background: var(--gray-50);
}

.list-item:active {
    background: var(--gray-100);
}

.list-item .thumbnail {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--gray-100);
    flex-shrink: 0;
}

.list-item .content {
    flex: 1;
    min-width: 0;
}

.list-item .title {
    font-weight: var(--font-medium);
    color: var(--gray-900);
    margin-bottom: 2px;
}

.list-item .subtitle {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.list-item .chevron {
    color: var(--gray-400);
}

/* ============================================
   SETTINGS STYLES
   ============================================ */
.settings-section,
.setting-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.section-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.section-icon-wrapper.primary-gradient {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
}

.section-icon-wrapper.success-gradient {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.section-icon-wrapper.warning-gradient {
    background: linear-gradient(135deg, var(--warning), var(--warning-dark));
}

.settings-group {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.settings-group:last-child {
    border-bottom: none;
}

.group-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    min-height: 48px;
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--gray-900);
    display: block;
}

.setting-description {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--purple-500);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Profile Section */
.profile-section {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: white;
    flex-shrink: 0;
}

.profile-avatar.admin-gradient {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
}

.profile-avatar.worker-gradient {
    background: linear-gradient(135deg, var(--info), var(--info-dark));
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin: 0 0 2px 0;
}

.profile-username {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0 0 var(--space-xs) 0;
}

.profile-edit-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-600);
}

.profile-edit-btn:hover {
    background: var(--purple-50);
    border-color: var(--purple-500);
    color: var(--purple-500);
}

.badge-admin {
    background: var(--purple-100);
    color: var(--purple-700);
}

.badge-worker {
    background: var(--info-light);
    color: var(--info-dark);
}

/* Station Input */
.station-input {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.station-input svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

.station-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: var(--text-sm);
    color: var(--gray-900);
}

.station-input input:focus {
    outline: none;
}

/* Action Buttons */
.actions-section {
    padding: var(--space-lg);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--gray-50);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--gray-700);
}

.action-btn:hover {
    background: var(--purple-50);
    border-color: var(--purple-300);
    color: var(--purple-600);
    transform: translateY(-2px);
}

.action-btn.primary-action {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    color: white;
    border: none;
}

.action-btn.primary-action:hover {
    box-shadow: var(--shadow-primary-lg);
}

/* System Section Links */
.system-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all var(--transition-fast);
}

.system-link:hover {
    background: var(--purple-50);
    padding-left: calc(var(--space-lg) + 4px);
}

.link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    flex-shrink: 0;
}

.link-info {
    flex: 1;
}

.link-title {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--gray-900);
    margin-bottom: 2px;
}

.link-description {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.link-arrow {
    color: var(--gray-400);
    transition: transform var(--transition-fast);
}

.system-link:hover .link-arrow {
    transform: translateX(3px);
    color: var(--purple-500);
}

/* Logout Button */
.logout-section {
    padding: var(--space-lg);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
    background: var(--error-light);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    color: var(--error);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
}

.logout-btn:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--purple-500);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

.loading-overlay p {
    color: white;
    margin-top: var(--space-lg);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-sm);
    width: calc(100% - var(--space-lg) * 2);
    max-width: 400px;
}

.toast {
    background: var(--gray-900);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toast-success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.toast-error {
    background: linear-gradient(135deg, var(--error), var(--error-dark));
}

.toast-warning {
    background: linear-gradient(135deg, var(--warning), var(--warning-dark));
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    border-left: 4px solid;
}

.alert-success {
    background: var(--success-light);
    border-color: var(--success);
    color: #047857;
}

.alert-error {
    background: var(--error-light);
    border-color: var(--error);
    color: #B91C1C;
}

.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: #B45309;
}

.alert-info {
    background: var(--info-light);
    border-color: var(--info);
    color: #1D4ED8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (min-width: 768px) {
    .dashboard-grid {
        gap: var(--space-lg);
    }
    
    .dashboard-card {
        height: 160px;
    }
    
    .dashboard-card.large {
        height: 200px;
    }
    
    .dashboard-card.tall {
        height: calc(160px * 2 + var(--space-lg));
    }
    
    .orders-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .user-name-short {
        display: none;
    }
}

@media (max-width: 360px) {
    .dashboard-card {
        height: 120px;
    }
    
    .dashboard-card.large {
        height: 160px;
    }
    
    .dashboard-card.tall {
        height: calc(120px * 2 + var(--space-md));
    }
    
    .card-content {
        padding: var(--space-md);
    }
    
    .card-icon {
        width: 32px;
        height: 32px;
    }
    
    .card-content h3 {
        font-size: var(--text-xs);
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-warning,
    .btn-danger,
    .setting-row {
        min-height: 48px;
    }
    
    .dashboard-card:hover {
        transform: none;
    }
    
    .dashboard-card:active {
        transform: scale(0.98);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body.reduce-motion,
body.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Dark theme adjustments */
body.dark-theme .app-header {
    background: var(--bg-header);
    border-bottom-color: var(--border-light);
}

body.dark-theme .dashboard-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .batch-card-mini {
    background: var(--bg-card);
}

body.dark-theme .batch-info h4 {
    color: var(--gray-900);
}

body.dark-theme .batch-info p {
    color: var(--gray-500);
}

body.dark-theme .section-title,
body.dark-theme .active-batches-section h3 {
    color: var(--gray-900);
}

body.dark-theme .input-card {
    background: var(--bg-card);
}

body.dark-theme .barcode-input {
    background: var(--bg-input);
    border-color: var(--border-medium);
    color: var(--gray-900);
}

body.dark-theme .app-footer {
    background: var(--gray-100);
    color: var(--gray-500);
}



/* === WOMENE V2.1 — DASHBOARD RESKIN === */
/* Restyles dashboard.html legacy classes to brand. HTML untouched. */

/* --- Page wrapper --- */
.dashboard-container {
    background: var(--w-page-bg);
    padding: var(--w-space-5) var(--w-space-4);
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 20px) + var(--w-space-6));
}

/* --- Stats pills (NEW / PICK / PACK / SHIP) --- */
.stats-section {
    margin-bottom: var(--w-space-6);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--w-space-2);
}
.stat-pill {
    background: var(--w-surface);
    border: 0.5px solid var(--w-border-soft);
    border-radius: var(--w-radius-lg);
    padding: var(--w-space-4) var(--w-space-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--w-space-2);
}
.stat-pill .stat-number {
    font-family: var(--w-font-body);
    font-size: 28px;
    line-height: 1;
    font-weight: var(--w-weight-bold);
    color: var(--w-ink);
}
.stat-pill .stat-label {
    font-size: var(--w-size-tiny);
    color: var(--w-ink-muted);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-label);
    text-transform: uppercase;
}

/* --- Section headers (Quick Actions / Inventory / History / Sync) --- */
.section-header {
    margin: var(--w-space-6) 0 var(--w-space-3);
}
.section-header .section-title {
    font-size: var(--w-size-tiny);
    color: var(--w-ink-muted);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-label);
    text-transform: uppercase;
    font-family: var(--w-font-body);
}

/* --- Info groups (containers for action rows) --- */
.info-group {
    background: var(--w-page-bg);
    border-radius: var(--w-radius-lg);
    overflow: hidden;
    /* No border, no shadow — rows handle their own surface */
}

/* --- Action rows --- */
.action-row {
    display: flex;
    align-items: center;
    gap: var(--w-space-3);
    padding: var(--w-space-3) var(--w-space-4);
    background: var(--w-surface);
    border: 0.5px solid var(--w-border-soft);
    border-radius: var(--w-radius-lg);
    margin-bottom: var(--w-space-2);
    text-decoration: none;
    color: var(--w-ink);
    transition: background 0.15s ease;
}
.action-row:hover { background: var(--w-surface-2); }
.action-row:last-child { margin-bottom: 0; }

.action-row .action-label {
    flex: 1;
    font-size: var(--w-size-body);
    font-weight: var(--w-weight-medium);
    color: var(--w-ink);
}
.action-row .action-value {
    font-size: var(--w-size-small);
    color: var(--w-ink-muted);
    margin-right: var(--w-space-2);
}
.action-row .action-chevron {
    color: var(--w-ink-soft);
    flex-shrink: 0;
}

/* Kill the row-divider — cream surfaces with margin handle separation */
.info-group .row-divider { display: none; }

/* --- Action icons — UNIFY all colour variants to cream + Ash --- */
.action-icon,
.action-icon.purple,
.action-icon.blue,
.action-icon.green,
.action-icon.orange,
.action-icon.gray,
.action-icon.red {
    width: 36px;
    height: 36px;
    background: var(--w-page-bg);
    border: 0.5px solid var(--w-border-soft);
    border-radius: var(--w-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--w-ink);
    flex-shrink: 0;
}
.action-icon svg {
    stroke: var(--w-ink);
    width: 18px;
    height: 18px;
}

/* === END WOMENE V2.1 — DASHBOARD RESKIN === */



/* === WOMENE V2.1 — SETTINGS/MORE RESKIN === */
/* Restyles more.html legacy classes to brand. HTML untouched. */

/* --- Page wrapper --- */
.more-container {
    background: var(--w-page-bg);
    padding: var(--w-space-5) var(--w-space-4);
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 20px) + var(--w-space-6));
}

/* --- Profile header (avatar + name + role) --- */
.profile-section {
    display: flex;
    align-items: center;
    gap: var(--w-space-3);
    background: var(--w-surface);
    border: 0.5px solid var(--w-border-soft);
    border-radius: var(--w-radius-lg);
    padding: var(--w-space-4);
    margin-bottom: var(--w-space-5);
}

.profile-avatar,
.profile-avatar.admin,
.profile-avatar.worker {
    width: 48px;
    height: 48px;
    background: var(--w-ink);
    color: var(--w-page-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--w-font-body);
    font-weight: var(--w-weight-bold);
    font-size: 18px;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}
.profile-name {
    margin: 0;
    font-family: var(--w-font-body);
    font-size: var(--w-size-h3);
    font-weight: var(--w-weight-medium);
    color: var(--w-ink);
}
.profile-username {
    margin: var(--w-space-1) 0 0;
    font-size: var(--w-size-small);
    color: var(--w-ink-muted);
}

/* Role badge — neutralise admin/worker variants */
.role-badge,
.role-badge.admin,
.role-badge.worker {
    background: var(--w-surface-2);
    color: var(--w-ink);
    border: none;
    padding: 3px var(--w-space-2);
    border-radius: var(--w-radius-pill);
    font-size: var(--w-size-tiny);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-label);
    text-transform: uppercase;
    flex-shrink: 0;
}

/* --- Section dividers — hide; spacing handles separation --- */
.section-divider { display: none; }

/* --- Menu sections (Main / Admin) --- */
.menu-section,
.admin-menu {
    background: var(--w-page-bg);
    border-radius: var(--w-radius-lg);
    margin-bottom: var(--w-space-3);
}

/* --- Admin section header (collapsible button) --- */
.admin-section {
    margin-top: var(--w-space-3);
}
.admin-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: var(--w-space-3) var(--w-space-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--w-ink-muted);
    font-family: var(--w-font-body);
}
.admin-header:hover { color: var(--w-ink); }

.admin-title {
    display: flex;
    align-items: center;
    gap: var(--w-space-2);
    font-size: var(--w-size-tiny);
    font-weight: var(--w-weight-bold);
    letter-spacing: var(--w-tracking-label);
    text-transform: uppercase;
    color: var(--w-ink-muted);
}
.admin-title svg { color: var(--w-ink-muted); }

.admin-chevron {
    color: var(--w-ink-soft);
    transition: transform 0.2s ease;
}

/* --- Menu items (Profile / Settings / Integrations / Users / Reports / etc) --- */
.menu-item {
    display: flex;
    align-items: center;
    gap: var(--w-space-3);
    padding: var(--w-space-3) var(--w-space-4);
    background: var(--w-surface);
    border: 0.5px solid var(--w-border-soft);
    border-radius: var(--w-radius-lg);
    margin-bottom: var(--w-space-2);
    text-decoration: none;
    color: var(--w-ink);
    transition: background 0.15s ease;
}
.menu-item:hover { background: var(--w-surface-2); }
.menu-item:last-child { margin-bottom: 0; }

.menu-label {
    flex: 1;
    font-size: var(--w-size-body);
    font-weight: var(--w-weight-medium);
    color: var(--w-ink);
}
.menu-arrow {
    color: var(--w-ink-soft);
    flex-shrink: 0;
}

/* Kill the divider lines — cream cards with margin handle separation */
.menu-divider { display: none; }

/* --- Menu icons — unify all colour variants --- */
.menu-icon,
.menu-icon.integration-icon,
.menu-icon.purple,
.menu-icon.blue,
.menu-icon.green,
.menu-icon.red,
.menu-icon.orange,
.menu-icon.gray {
    width: 36px;
    height: 36px;
    background: var(--w-page-bg);
    border: 0.5px solid var(--w-border-soft);
    border-radius: var(--w-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--w-ink);
    flex-shrink: 0;
}
.menu-icon svg {
    stroke: var(--w-ink);
    width: 18px;
    height: 18px;
}

/* Status indicator dot (the green dot next to "Integrations") */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--w-success);
    margin-right: var(--w-space-2);
    flex-shrink: 0;
}

/* === END WOMENE V2.1 — SETTINGS/MORE RESKIN === */


/* === stat-pill link styling === */
/* The .stat-pill became an <a> — kill default link styling */
a.stat-pill {
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
a.stat-pill:hover {
    background: var(--w-surface-2);
}
