/* OSPrimeApp - Apresentação 3D & Demonstração Interativa (Designer 2026 Refinado) */

/* Paleta 3D & Efeitos de Profundidade */
:root {
  --os3d-blue: #3b82f6;
  --os3d-cyan: #06b6d4;
  --os3d-indigo: #6366f1;
  --os3d-emerald: #10b981;
  --os3d-amber: #f59e0b;
  --os3d-purple: #a855f7;
  --os3d-glass-border: rgba(255, 255, 255, 0.12);
  --os3d-card-bg: rgba(15, 23, 42, 0.75);
}

/* Palco 3D do Hero */
#loginView .landing-depth {
  position: relative;
  min-width: 0;
  width: 100%;
  margin: 0 auto;
  padding: 35px 0 25px;
  perspective: 1600px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#loginView .hero-3d-stage-inner {
  position: relative;
  width: 100%;
  max-width: 650px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: transform;
}

/* Fundo com Brilho Holográfico / Aurora 3D */
#loginView .hero-3d-stage-inner::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(6, 182, 212, 0.15) 45%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  transform: translateZ(-60px);
}

/* Mockup 3D do Desktop / Bancada */
#loginView .depth-desktop {
  position: relative;
  width: 100%;
  background: linear-gradient(160deg, #101c30 0%, #0a1222 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.75),
    0 10px 25px -5px rgba(2, 6, 23, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform-style: preserve-3d;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: box-shadow 0.3s ease;
}

#loginView .depth-desktop:hover {
  box-shadow: 
    0 45px 85px -15px rgba(0, 0, 0, 0.8),
    0 0 45px -5px rgba(56, 189, 248, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

/* Reflexo Dinâmico de Luz / Glare */
#loginView .depth-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 30%), rgba(255, 255, 255, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

/* Barra Superior Estilo macOS / Chrome 3D */
#loginView .depth-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(28, 44, 70, 0.85) 0%, rgba(18, 30, 50, 0.8) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
}

#loginView .depth-window-lights {
  display: flex;
  gap: 6px;
}

#loginView .depth-window-lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
#loginView .depth-window-lights i:nth-child(1) { background: #ef4444; }
#loginView .depth-window-lights i:nth-child(2) { background: #f59e0b; }
#loginView .depth-window-lights i:nth-child(3) { background: #10b981; }

#loginView .depth-chrome-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 11px;
}
#loginView .depth-chrome-title strong {
  color: #f1f5f9;
  font-weight: 700;
}

#loginView .depth-live-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
#loginView .depth-live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Área de Trabalho Interna da Bancada */
#loginView .depth-workspace {
  display: flex;
  min-height: 280px;
  background: rgba(10, 18, 32, 0.65);
}

#loginView .depth-rail {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  padding: 16px 4px;
  background: rgba(13, 23, 40, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #8da2be;
  font-size: 10px;
  font-weight: 700;
}

#loginView .depth-rail img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

#loginView .depth-rail span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: default;
  transition: all 0.2s;
  color: #94a3b8;
}

#loginView .depth-rail .selected {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
}

#loginView .depth-main {
  min-width: 0;
  flex: 1;
  padding: 18px 18px 16px;
}

#loginView .depth-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

#loginView .depth-title h2 {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
#loginView .depth-title h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

#loginView .depth-title > span {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* Quadro Kanban 3D da Bancada - 2 Colunas Espaçosas no Desktop para não conflitar com o celular */
#loginView .depth-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  max-width: 440px; /* Deixa a área direita livre para o smartphone sobreposto */
}

#loginView .depth-col {
  display: flex;
  flex-direction: column;
}

#loginView .depth-board h3 {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0 0 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#loginView .depth-board h3 > span {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

#loginView .depth-board article {
  padding: 12px 11px;
  min-height: 112px;
  background: rgba(20, 34, 56, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

#loginView .depth-board article:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.15);
}

#loginView .depth-board small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 6px;
}

#loginView .depth-board b {
  display: block;
  font-size: 13px;
  color: #f8fafc;
  font-weight: 750;
  line-height: 1.25;
}

#loginView .depth-board p {
  font-size: 10px;
  color: #cbd5e1;
  margin: 5px 0 10px;
  line-height: 1.4;
}

#loginView .depth-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fde047;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

#loginView .depth-tag.blue {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

#loginView .depth-tag.green {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

#loginView .depth-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  color: #94a3b8;
}

/* Mockup 3D do Celular / Smartphone - Posicionado com elegância à direita */
#loginView .depth-phone {
  position: absolute;
  right: -14px;
  bottom: -16px;
  width: 185px;
  padding: 14px 12px 16px;
  border: 3.5px solid #334155;
  border-radius: 28px;
  background: linear-gradient(170deg, #101c30 0%, #070d18 100%);
  box-shadow: 
    0 30px 60px -10px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transform: translateZ(50px) rotateY(-8deg) rotateZ(3deg);
  color: #f1f5f9;
  z-index: 6;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

#loginView .depth-phone:hover {
  transform: translateZ(65px) rotateY(-4deg) rotateZ(1deg) scale(1.03);
  box-shadow: 
    0 35px 70px -10px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(56, 189, 248, 0.3);
}

#loginView .depth-speaker {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: #475569;
  margin: 0 auto 12px;
}

#loginView .depth-phone-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 10px;
}

#loginView .depth-phone > b {
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: block;
  color: #f8fafc;
}

#loginView .depth-phone-order {
  padding: 10px 9px;
  background: rgba(30, 48, 77, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-top: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#loginView .depth-phone-order small {
  display: block;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
}

#loginView .depth-phone-order strong {
  display: block;
  font-size: 13px;
  margin: 4px 0 6px;
  color: #f8fafc;
}

#loginView .depth-phone-order p {
  font-size: 9px;
  line-height: 1.45;
  color: #cbd5e1;
  margin: 6px 0 0;
}

#loginView .depth-phone-nav {
  display: block;
  font-size: 8px;
  color: #94a3b8;
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Badges Holográficos Flutuantes 3D (Popout Cards) */
#loginView .float-3d-card {
  position: absolute;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(15, 25, 45, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(59, 130, 246, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: blur(14px);
  pointer-events: auto;
  transition: transform 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

#loginView .float-3d-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.35);
}

/* Float Card 1: OS Aprovada (Topo Esquerdo) */
#loginView .float-3d-card.float-os {
  top: -18px;
  left: -18px;
  transform: translateZ(55px) rotateZ(-2deg);
}

/* Float Card 2: WhatsApp Bot (Topo Centro-Direito) */
#loginView .float-3d-card.float-wa {
  top: -20px;
  right: 40px;
  transform: translateZ(60px) rotateZ(2deg);
}

/* Float Card 3: Lucro / Caixa (Inferior Esquerdo) */
#loginView .float-3d-card.float-fin {
  bottom: 12px;
  left: -20px;
  transform: translateZ(45px) rotateZ(-1.5deg);
}

#loginView .float-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#loginView .float-icon.emerald {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}
#loginView .float-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
#loginView .float-icon.cyan {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
}

#loginView .float-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

#loginView .float-info b {
  font-size: 11px;
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.2;
}

#loginView .float-info small {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
}

#loginView .float-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* Barra de Controles de Ângulo 3D */
#loginView .hero-3d-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 30px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  z-index: 10;
}

#loginView .btn-3d-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

#loginView .btn-3d-ctrl:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

#loginView .btn-3d-ctrl.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.45);
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

#loginView .landing-depth figcaption {
  font-size: 11px;
  color: #64748b;
  margin-top: 12px;
  text-align: center;
  font-weight: 500;
}

/* Seção de Demonstração em Tempo Real (iFrame) */
#loginView .landing-demo-section {
  margin-bottom: 70px;
  position: relative;
  scroll-margin-top: 90px;
}

#loginView .landing-live-demo {
  min-width: 0;
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 20px;
  overflow: hidden;
  background: #090e18;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

#loginView .landing-demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: linear-gradient(90deg, #101c30 0%, #0d1626 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#loginView .landing-demo-toolbar b {
  display: block;
  font-size: 17px;
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: -0.01em;
}

#loginView .landing-demo-toolbar span {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 13px;
}

#loginView .landing-demo-controls {
  display: flex;
  gap: 8px;
}

#loginView .landing-demo-controls button,
#loginView .landing-demo-caption button {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

#loginView .landing-demo-controls button:hover,
#loginView .landing-demo-caption button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

#loginView .landing-demo-controls button[aria-pressed=true] {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

#loginView .landing-demo-hint {
  margin: 0;
  padding: 12px 24px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#loginView .landing-live-demo iframe {
  display: block;
  width: 100%;
  height: 660px;
  border: 0;
  background: #090e18;
}

#loginView .landing-demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: #0d1626;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 12px;
}

/* ==========================================================================
   RESPONSIVIDADE: TELAS MÉDIAS (TABLETS & LAPTOPS PEQUENOS)
   ========================================================================== */
@media (max-width: 1080px) {
  #loginView .landing-depth {
    padding: 20px 0;
  }
  #loginView .float-3d-card.float-wa {
    right: 15px;
  }
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE (SMARTPHONES < 768px)
   ========================================================================== */
@media (max-width: 768px) {
  #loginView .landing-depth {
    padding: 15px 0 25px;
    perspective: 1200px;
    overflow-x: hidden;
  }
  #loginView .hero-3d-stage-inner {
    max-width: 100%;
  }
  #loginView .depth-desktop {
    border-radius: 14px;
  }
  #loginView .depth-rail {
    display: none;
  }
  #loginView .depth-main {
    padding: 14px 12px;
  }
  #loginView .depth-board {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 8px;
  }
  #loginView .depth-board article {
    min-height: auto;
    padding: 10px;
  }
  #loginView .depth-phone {
    display: none; /* No mobile, esconde o mockup de smartphone sobreposto para focar na bancada sem cortes */
  }
  #loginView .float-3d-card.float-os {
    top: -12px;
    left: 8px;
    transform: translateZ(30px) scale(0.9);
  }
  #loginView .float-3d-card.float-wa {
    display: none;
  }
  #loginView .float-3d-card.float-fin {
    bottom: -10px;
    left: auto;
    right: 8px;
    transform: translateZ(30px) scale(0.9);
  }
  #loginView .hero-3d-controls {
    margin-top: 22px;
    gap: 4px;
  }
  #loginView .btn-3d-ctrl {
    padding: 5px 9px;
    font-size: 10px;
  }
  #loginView .landing-live-demo iframe {
    height: 520px;
  }
  #loginView .landing-demo-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  #loginView .landing-demo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  #loginView .landing-demo-controls button {
    flex: 1 1 120px;
    font-size: 12px;
    min-height: 38px;
    padding: 6px 10px;
    text-align: center;
    white-space: nowrap;
  }
  #loginView .landing-demo-caption {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 10px;
  }
  #loginView .landing-demo-caption button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loginView .hero-3d-stage-inner,
  #loginView .depth-desktop,
  #loginView .depth-phone,
  #loginView .float-3d-card {
    transition: none !important;
    transform: none !important;
  }
}
