/* ============================================================
   ACELERE ASSESSORIA — style.css
   Design System: dark mode, verde neon, Plus Jakarta Sans
   ============================================================ */

/* ─── Keyframes ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── Custom scrollbars ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f1412;
}
::-webkit-scrollbar-thumb {
  background: #1f2d24;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2b3e32;
}

/* ─── Custom selection ──────────────────────────────────────── */
::selection {
  background-color: #22c55e;
  color: #000000;
}

/* ─── Site logo ─────────────────────────────────────────────── */
.site-logo {
  height: 40px;
  width: auto;
  max-width: 45vw;
  object-fit: contain;
}
@media (min-width: 640px) {
  .site-logo { height: 44px; }
}
@media (min-width: 768px) {
  .site-logo { height: 44px; }
}

/* ─── Mobile drawer ─────────────────────────────────────────── */
#mobileDrawer {
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  will-change: transform;
}
#mobileDrawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
}
#mobileDrawerOverlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobileDrawerOverlay.show {
  opacity: 1;
  pointer-events: auto;
}
body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

/* ─── Buttons (touch friendly) ──────────────────────────────── */
button,
.nav-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-btn:active,
.header-action:active {
  transform: scale(0.97);
}

/* ─── Mobile nav active states ──────────────────────────────── */
#drawerNavAdmin.active,
#drawerNavClient.active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* ─── Tables (horizontal scroll safety on small screens) ────── */
@media (max-width: 640px) {
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}

/* ─── Reduced safe-area padding for notched phones ──────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #mobileDrawer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
/* ─── Apple Frosted Glass / VisionOS Design System ──────────── */
.glass-panel {
  background: rgba(14, 20, 17, 0.72) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), 0 20px 45px -12px rgba(0, 0, 0, 0.6) !important;
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(14, 20, 17, 0.68) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18), 0 12px 30px -8px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-card:hover {
  border-color: rgba(34, 197, 94, 0.35) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.25), 0 16px 36px -8px rgba(34, 197, 94, 0.15) !important;
  transform: translateY(-2px);
}

.glass-btn-primary {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.95) 0%, rgba(34, 197, 94, 0.88) 100%) !important;
  color: #051409 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px -4px rgba(34, 197, 94, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-btn-primary:hover {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.75), 0 12px 28px -2px rgba(34, 197, 94, 0.6) !important;
  transform: translateY(-1px) scale(1.01);
}

.glass-btn-primary:active {
  transform: scale(0.98);
}

.glass-btn-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.25), 0 6px 16px -2px rgba(0, 0, 0, 0.35) !important;
  color: #f1f5f9 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-btn-secondary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.35), 0 8px 20px -2px rgba(0, 0, 0, 0.45) !important;
}

.glass-btn-secondary:active {
  transform: scale(0.98);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-input {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.2s ease !important;
}

.glass-input:focus {
  border-color: rgba(34, 197, 94, 0.6) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(34, 197, 94, 0.18) !important;
}

/* Glass shine on hover */
.glass-shine {
  position: relative;
  overflow: hidden;
}
.glass-shine::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
  pointer-events: none;
}
.glass-shine:hover::before {
  left: 150%;
}

/* ─── Executive PDF Report Styles ───────────────────────────── */
#pdfReportCanvas {
  background-color: #080d12 !important;
  color: #f1f5f9 !important;
  box-sizing: border-box;
}

#pdfReportCanvas * {
  box-sizing: border-box;
}

.pdf-glass-card {
  background: rgba(20, 28, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.pdf-glass-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

/* ─── Client Role UI Isolation (Enforced) ───────────────────── */
body.role-client #desktopNav,
body.role-client #backToAdminBtn,
body.role-client #headerReportPdfBtn,
body.role-client #drawerNavAdmin,
body.role-client #drawerNavClient,
body.role-client #drawerDivider,
body.role-client #drawerNewClient,
body.role-client #btnNewClientDesktop,
body.role-client #clientPortalSelect,
body.role-client #clientPortalBadge,
body.role-client #clientMetaStatusBadge {
  display: none !important;
}

/* ─── Mobile Map Touch Pass-Through ─────────────────────────── */
#cityMap {
  touch-action: pan-y !important;
}

/* ─── Print Styles ──────────────────────────────────────────── */
@media print {
  body * {
    visibility: hidden !important;
  }
  #pdfReportModal,
  #pdfReportModal * {
    visibility: visible !important;
  }
  #pdfReportCanvas,
  #pdfReportCanvas * {
    visibility: visible !important;
  }
  #pdfReportCanvas {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #080d12 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 1.5rem !important;
  }
}

