/* ═══════════════════════════════════════════
   WMS — RF SIMULATOR
   Premium handheld terminal styling
   ═══════════════════════════════════════════ */

/* ─── LAYOUT ─── */
.rf-container {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
}

.rf-info-panel {
  width: 340px;
  flex-shrink: 0;
}

/* ─── TERMINAL FRAME ─── */
.rf-terminal {
  width: 380px;
  flex-shrink: 0;
  border-radius: 32px;
  background: linear-gradient(165deg, #1a1d23 0%, #0d0f13 50%, #141720 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 4px 8px rgba(0,0,0,.3),
    0 12px 40px rgba(0,0,0,.5),
    0 30px 80px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
}
.rf-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* ─── BEZEL TOP ─── */
.rf-bezel-top {
  padding: 16px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.rf-speaker {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1a1d23, #2a2d35, #1a1d23);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
}
.rf-model {
  font-size: .6rem;
  font-weight: 700;
  font-family: var(--en);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.15);
}

/* ─── BEZEL BOTTOM ─── */
.rf-bezel-bottom {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.rf-scan-btn-hardware {
  width: 100px;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2a2d35, #1e2028);
  box-shadow:
    0 2px 4px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.rf-scan-btn-hardware:active {
  transform: scale(.96);
  box-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.rf-scan-trigger {
  width: 50px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #3a3d45, #2a2d35);
}
.rf-brand {
  font-size: .55rem;
  font-weight: 700;
  font-family: var(--en);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.08);
}

/* ─── SCREEN ─── */
.rf-screen {
  margin: 0 14px;
  border-radius: 16px;
  background: #0a0e14;
  border: 1px solid rgba(255,255,255,.04);
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow:
    inset 0 0 20px rgba(0,0,0,.5),
    0 0 12px rgba(0,0,0,.3);
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

/* ─── STATUS BAR ─── */
.rf-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .65rem;
  color: rgba(255,255,255,.4);
}
.rf-statusbar-left,
.rf-statusbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rf-statusbar-center {
  font-weight: 700;
  font-family: var(--en);
  letter-spacing: .5px;
  color: rgba(255,255,255,.5);
}
.rf-statusbar-right i {
  color: var(--green);
}

/* ─── CONTENT AREA ─── */
.rf-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  min-height: 420px;
  max-height: 420px;
}

/* ─── BOTTOM BAR ─── */
.rf-bottombar {
  display: flex;
  justify-content: space-around;
  padding: 8px 10px;
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.04);
}
.rf-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  transition: all .2s;
  font-family: var(--font);
}
.rf-bottom-btn:hover {
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.04);
}
.rf-bottom-btn i { font-size: .85rem; }
.rf-bottom-btn span { font-size: .58rem; }

/* ─── RF MENU ─── */
.rf-menu-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: .5px;
}
.rf-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rf-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  transition: all .2s var(--ease);
  color: var(--text2);
}
.rf-menu-btn:hover {
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.1);
  transform: translateY(-1px);
}
.rf-menu-btn:active {
  transform: scale(.96);
}
.rf-menu-btn i {
  font-size: 1.4rem;
}
.rf-menu-btn span {
  font-size: .78rem;
  font-weight: 600;
}
.rf-menu-btn.clr-blue i { color: #60a5fa; }
.rf-menu-btn.clr-amber i { color: #fbbf24; }
.rf-menu-btn.clr-green i { color: #4ade80; }
.rf-menu-btn.clr-purple i { color: #c084fc; }
.rf-menu-btn.clr-teal i { color: #2dd4bf; }
.rf-menu-btn.full-width {
  grid-column: 1 / -1;
}

/* ─── RF SUB-SCREENS ─── */
.rf-sub-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rf-sub-title i {
  color: var(--teal);
}

/* Scan input */
.rf-scan-group {
  position: relative;
  margin-bottom: 12px;
}
.rf-scan-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: .85rem;
  font-family: var(--en);
  outline: none;
  transition: all .25s var(--ease);
}
.rf-scan-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,.12);
  background: rgba(255,255,255,.06);
}
.rf-scan-input::placeholder {
  color: rgba(255,255,255,.2);
}
.rf-scan-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.25);
  font-size: .85rem;
}

/* List items */
.rf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.rf-list-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.rf-list-item:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}
.rf-list-item:active {
  transform: scale(.98);
}
.rf-list-item.selected {
  border-color: var(--teal);
  background: rgba(20,184,166,.06);
}
.rf-list-title {
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.rf-list-sub {
  font-size: .68rem;
  color: var(--muted);
}
.rf-list-badge {
  float: right;
  margin-top: 2px;
}

/* Action button */
.rf-action-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s var(--ease);
  font-family: var(--font);
}
.rf-action-btn:active { transform: scale(.97); }
.rf-action-btn.primary {
  background: linear-gradient(135deg, var(--teal), #0d9488);
  color: #fff;
  box-shadow: 0 4px 16px rgba(20,184,166,.25);
}
.rf-action-btn.primary:hover {
  box-shadow: 0 6px 24px rgba(20,184,166,.35);
}
.rf-action-btn.secondary {
  background: rgba(255,255,255,.06);
  color: var(--text2);
  border: 1px solid rgba(255,255,255,.08);
}
.rf-action-btn.secondary:hover {
  background: rgba(255,255,255,.1);
}

/* Info display */
.rf-info-box {
  padding: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 12px;
}
.rf-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: .75rem;
}
.rf-info-label {
  color: var(--muted);
}
.rf-info-value {
  font-weight: 600;
  font-family: var(--en);
  color: var(--text);
}

/* Step indicator */
.rf-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.rf-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transition: all .2s;
}
.rf-step-dot.active {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(20,184,166,.4);
}
.rf-step-dot.done {
  background: rgba(20,184,166,.3);
}

/* Result screen */
.rf-result {
  text-align: center;
  padding: 30px 10px;
}
.rf-result-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.rf-result-icon.success { color: var(--green); }
.rf-result-icon.error { color: var(--red); }
.rf-result-msg {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Qty input */
.rf-qty-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.rf-qty-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-family: var(--font);
}
.rf-qty-btn:hover { background: rgba(255,255,255,.08); }
.rf-qty-btn:active { transform: scale(.93); }
.rf-qty-input {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--en);
  text-align: center;
  outline: none;
}
.rf-qty-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,.12);
}

/* Empty state */
.rf-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--dim);
  font-size: .8rem;
}
.rf-empty i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  opacity: .3;
}

/* Scan flash animation */
@keyframes rfScanFlash {
  0% { box-shadow: inset 0 0 0 rgba(20,184,166,0); }
  30% { box-shadow: inset 0 0 30px rgba(20,184,166,.15); }
  100% { box-shadow: inset 0 0 0 rgba(20,184,166,0); }
}
.rf-screen.scan-flash {
  animation: rfScanFlash .4s ease-out;
}

/* ─── INFO PANEL (side) ─── */
.rf-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rf-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rf-info-item .rf-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: .8rem;
  flex-shrink: 0;
}
.rf-info-item strong {
  font-size: .78rem;
  display: block;
  margin-bottom: 2px;
}
.rf-info-item p {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}

/* RF Log */
.rf-log {
  max-height: 200px;
  overflow-y: auto;
}
.rf-log-empty {
  font-size: .75rem;
  color: var(--dim);
  text-align: center;
  padding: 16px;
}
.rf-log-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
}
.rf-log-item:last-child { border-bottom: none; }
.rf-log-time {
  color: var(--dim);
  font-family: var(--en);
  font-size: .65rem;
  white-space: nowrap;
  margin-top: 2px;
}
.rf-log-msg {
  color: var(--text2);
}
.rf-log-type {
  font-weight: 600;
  color: var(--teal);
  margin-right: 4px;
}

/* Label row */
.rf-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .rf-container {
    flex-direction: column;
    align-items: center;
  }
  .rf-info-panel {
    width: 380px;
  }
}
@media (max-width: 768px) {
  .rf-container{gap:16px}
}
@media (max-width: 480px) {
  .rf-terminal {
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
  }
  .rf-info-panel {
    width: 100%;
    max-width: 380px;
  }
}
