/* ==========================================================================
   YOUR LABOR - Worker Phone Mockup Frame & Bottom Navigation
   ========================================================================== */

/* Top Simulator Control Bar */
.simulator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: #e2e8f0;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.sim-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
}

.sim-brand span {
  color: var(--worker-primary-light);
}

.sim-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.15s ease;
}

.sim-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.sim-btn.btn-test-alert {
  background: var(--worker-gradient);
  color: white;
}

/* Smartphone Mockup Wrapper */
.device-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 860px;
  background: #000000;
  border-radius: 54px;
  padding: 12px;
  box-shadow: 
    0 0 0 2px #334155,
    0 0 0 6px #0f172a,
    0 25px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(234, 88, 12, 0.25);
  transition: all 0.3s ease;
}

body.fullscreen-mode .simulator-toolbar {
  max-width: 1000px;
}

body.fullscreen-mode .device-wrapper {
  max-width: 820px;
  height: 92vh;
  border-radius: 28px;
  padding: 0;
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-app);
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.fullscreen-mode .device-screen {
  border-radius: 28px;
}

/* Phone Status Bar */
.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  z-index: 50;
  pointer-events: none;
}

.notch-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 51;
}

.notch-camera {
  width: 10px;
  height: 10px;
  background: #111827;
  border: 2px solid #1f2937;
  border-radius: 50%;
}

.notch-speaker {
  width: 38px;
  height: 4px;
  background: #1f2937;
  border-radius: 4px;
}

.notch-sensor {
  width: 8px;
  height: 8px;
  background: #064e3b;
  border-radius: 50%;
  opacity: 0.6;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

/* Viewport Scroll Container */
.app-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  margin-top: 44px;
  margin-bottom: 74px;
  scroll-behavior: smooth;
}

/* App Views */
.app-view {
  display: none;
  padding: 16px 16px 24px;
  animation: viewFade 0.2s ease forwards;
}

.app-view.active {
  display: block;
}

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

/* Worker Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 12px;
  z-index: 45;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  transition: 0.15s ease;
  flex: 1;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--worker-primary);
}

.nav-item.active svg {
  transform: translateY(-2px);
  stroke-width: 2.3;
}

.nav-badge-pill {
  position: absolute;
  top: 4px;
  right: 18px;
  width: 8px;
  height: 8px;
  background: var(--danger-red);
  border-radius: 50%;
  border: 2px solid white;
}

/* iPhone Home Bar */
.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 4px;
  z-index: 55;
  pointer-events: none;
}
