/* WMS Ubic Center — Mobile-first CSS */
:root {
  --bg: #0a0a0f;
  --surface: #14141f;
  --surface2: #1e1e2e;
  --border: #2a2a3a;
  --text: #e0e0e0;
  --text2: #888;
  --accent: #00e5a0;
  --accent2: #00b880;
  --danger: #ff4444;
  --warning: #ffaa00;
  --success: #00e5a0;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  min-height: 100vh;
  -webkit-user-select: text;
  user-select: text;
}

/* App Layout */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.app-content { flex: 1; padding: 16px; padding-bottom: 80px; }

/* Header */
.header {
  background: var(--surface);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header h1 { font-size: 18px; font-weight: 700; }
.header .user-badge {
  font-size: 12px;
  color: var(--accent);
  background: rgba(0,229,160,0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--text2);
  text-decoration: none;
  font-size: 11px;
  cursor: pointer;
  border: none;
  background: none;
}
.nav-item.active { color: var(--accent); }
.nav-item .icon { font-size: 22px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  outline: none;
}
input:focus { border-color: var(--accent); }
input[type="number"] { font-size: 24px; text-align: center; font-weight: 700; }

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Scanner feedback */
.scan-ok {
  position: fixed; inset: 0;
  background: rgba(0,229,160,0.95);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: #000;
  font-size: 32px;
  font-weight: 900;
  z-index: 999;
  animation: fadeout 1.5s forwards;
}
.scan-error {
  position: fixed; inset: 0;
  background: rgba(255,68,68,0.95);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  z-index: 999;
}

@keyframes fadeout {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* Scanner input */
.scanner-input {
  border: 3px dashed var(--accent);
  text-align: center;
  font-size: 20px;
  letter-spacing: 2px;
  font-family: monospace;
}
.scanner-input:focus { border-style: solid; background: rgba(0,229,160,0.05); }

/* Lists */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }

/* Badges */
.badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.badge-success { background: rgba(0,229,160,0.15); color: var(--success); }
.badge-warning { background: rgba(255,170,0,0.15); color: var(--warning); }
.badge-danger { background: rgba(255,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(100,100,255,0.15); color: #88f; }

/* Zone colors */
.zone-PICKING { border-left: 4px solid #00e5a0; }
.zone-RACKS { border-left: 4px solid #4488ff; }
.zone-BUFFER { border-left: 4px solid #ffaa00; }
.zone-DISENO { border-left: 4px solid #ff66aa; }
.zone-DIGITAL { border-left: 4px solid #aa66ff; }
.zone-MEZZANINE { border-left: 4px solid #66ccff; }

/* Qty display */
.qty { font-size: 28px; font-weight: 900; font-family: monospace; }
.qty-label { font-size: 12px; color: var(--text2); }

/* Loading */
.loading { text-align: center; padding: 40px; color: var(--text2); }

/* Utility */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.text-center { text-align: center; }
.text-muted { color: var(--text2); }
.text-sm { font-size: 13px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.grow { flex-grow: 1; }