/* =============================================================================
   PROJETO: NEXO - Sistema Pessoal de Produtividade e Gestão
   ARQUIVO: assets/css/custom.css
   DESCRIÇÃO: Estilização visual inspirada em interfaces minimalistas premium,
              superfícies ultra-arredondadas, dock em cápsula e inputs com linha base
   ============================================================================= */

/* -----------------------------------------------------------------------------
   SESSÃO 1: VARIÁVEIS DE TEMA, CORES E SAFE AREA INSETS (PWA)
   ----------------------------------------------------------------------------- */
:root {
  --nexo-bg-canvas: #090a0f;
  --nexo-bg-surface: #12141c;
  --nexo-bg-surface-elevated: #171923;
  --nexo-bg-card: rgba(18, 20, 28, 0.85);
  --nexo-bg-card-hover: rgba(24, 27, 38, 0.95);
  
  --nexo-border-subtle: rgba(255, 255, 255, 0.07);
  --nexo-border-active: rgba(56, 189, 248, 0.45);
  --nexo-border-glow: 0 0 20px -3px rgba(56, 189, 248, 0.25);
  
  --nexo-blue-primary: #38bdf8;
  --nexo-blue-deep: #0284c7;
  --nexo-blue-glow: rgba(56, 189, 248, 0.35);
  
  --nexo-text-headline: #f8fafc;
  --nexo-text-muted: #94a3b8;
  --nexo-text-dim: #64748b;
  
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* -----------------------------------------------------------------------------
   SESSÃO 2: RESET DE CORPO, RENDERIZAÇÃO DE FONTES E TOQUE MOBILE
   ----------------------------------------------------------------------------- */
html, body {
  background-color: var(--nexo-bg-canvas);
  color: var(--nexo-text-headline);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  touch-action: manipulation;
}

/* -----------------------------------------------------------------------------
   SESSÃO 3: SUPERFÍCIES ULTRA-ARREDONDADAS E GLASSMORPHISM PREMIUM
   ----------------------------------------------------------------------------- */
.nexo-card {
  background: var(--nexo-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--nexo-border-subtle);
  border-radius: 28px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexo-card-interactive {
  background: var(--nexo-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--nexo-border-subtle);
  border-radius: 24px;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexo-card-interactive:hover {
  background: var(--nexo-bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.nexo-card-interactive:active {
  transform: scale(0.985);
}

/* -----------------------------------------------------------------------------
   SESSÃO 4: DOCK INFERIOR MOBILE EM FORMATO DE CÁPSULA FLUTUANTE
   Elimina a barra reta inferior e introduz a cápsula isolada e ergonômica
   ----------------------------------------------------------------------------- */
.nexo-dock-capsule {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(1rem + var(--safe-area-bottom));
  width: calc(100% - 2rem);
  max-width: 420px;
  background: rgba(18, 20, 28, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.8), 0 0 20px -3px rgba(56, 189, 248, 0.1);
  z-index: 40;
}

.nexo-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexo-dock-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--nexo-blue-primary);
}

/* -----------------------------------------------------------------------------
   SESSÃO 5: MICROTIPOGRAFIA E CAMPOS DE ENTRADA ESTILO GETSOCIALLINK
   Rótulos superiores técnicos e inputs com linha base sutil
   ----------------------------------------------------------------------------- */
.nexo-label-technical {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nexo-text-dim);
  display: block;
  margin-bottom: 0.5rem;
}

.nexo-input-line {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.75rem 0.25rem;
  font-size: 0.875rem;
  color: var(--nexo-text-headline);
  transition: all 0.2s ease;
}

.nexo-input-line:focus {
  outline: none;
  border-bottom-color: var(--nexo-blue-primary);
  box-shadow: 0 1px 0 0 var(--nexo-blue-primary), 0 10px 15px -8px var(--nexo-blue-glow);
}

.nexo-input-line::placeholder {
  color: rgba(148, 163, 184, 0.35);
}

/* Inputs em bloco arredondado para caixas de diálogo */
.nexo-input-box {
  width: 100%;
  background: rgba(12, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--nexo-text-headline);
  transition: all 0.2s ease;
}

.nexo-input-box:focus {
  outline: none;
  border-color: var(--nexo-blue-primary);
  background: rgba(15, 18, 26, 0.95);
  box-shadow: 0 0 15px -3px var(--nexo-blue-glow);
}

.nexo-input-box::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

/* -----------------------------------------------------------------------------
   SESSÃO 6: BOTÕES EM PÍLULA ERGONÔMICA (PILL BUTTONS)
   ----------------------------------------------------------------------------- */
.nexo-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #080b11;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.nexo-btn-primary:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, #0369a1 100%);
  box-shadow: 0 12px 30px -4px rgba(2, 132, 199, 0.6);
  transform: translateY(-1px);
}

.nexo-btn-primary:active {
  transform: scale(0.98);
}

.nexo-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--nexo-text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.nexo-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

/* -----------------------------------------------------------------------------
   SESSÃO 7: UTILITÁRIOS DE ROLAGEM E SCROLLBARS
   ----------------------------------------------------------------------------- */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* -----------------------------------------------------------------------------
   SESSÃO 8: ANIMAÇÕES DE ENTRADA, MODAL E PULSOS
   ----------------------------------------------------------------------------- */
@keyframes nexoFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nexoScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes nexoToastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-25px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nexoToastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-25px) scale(0.95);
  }
}

@keyframes nexoPulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.25);
  }
}

.animate-nexo-fade-in {
  animation: nexoFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-nexo-scale-up {
  animation: nexoScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-nexo-toast-in {
  animation: nexoToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-nexo-toast-out {
  animation: nexoToastSlideOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-nexo-pulse {
  animation: nexoPulseDot 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* -----------------------------------------------------------------------------
   SESSÃO 9: ESPAÇAMENTO DO CONTEÚDO PRINCIPAL (SAFE AREA + DOCK FLUTUANTE)
   ----------------------------------------------------------------------------- */
.nexo-main-content {
  padding-bottom: calc(6.5rem + var(--safe-area-bottom));
  padding-top: calc(0.75rem + var(--safe-area-top));
}

@media (min-width: 768px) {
  .nexo-main-content {
    padding-bottom: 2.5rem;
    padding-top: 2rem;
  }
}

