/* ==============================================================
   ALL BLACK DESIGN SYSTEM — PORCELAIN LUXE & STEALTH FINTECH
   Inspired by ultra-refined modern payment platforms
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Light Theme (Porcelain Luxe - Matches Screenshots) */
  --bg-app: #f9f9fb;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-card-subtle: #f4f4f6;
  --border-card: #eaeaee;
  --border-card-subtle: #f0f0f4;
  --border-divider: #e4e4e9;

  --text-main: #0c0c0e;
  --text-secondary: #71717a;
  --text-muted: #a1a1aa;
  --text-brand: #0c0c0e;

  --btn-primary-bg: #0c0c0e;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: #e4e4e7;
  --btn-secondary-text: #18181b;

  --badge-green-bg: #f4f4f5;
  --badge-green-text: #18181b;
  --badge-green-border: #e4e4e7;

  --badge-amber-bg: #fafafa;
  --badge-amber-text: #71717a;
  --badge-amber-border: #e4e4e7;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-floating: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-plaque: 0 20px 30px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);

  --chart-line: #0c0c0e;
  --chart-gradient-top: rgba(12, 12, 14, 0.16);
  --chart-gradient-bottom: rgba(12, 12, 14, 0.0);
}

/* Dark Mode Tokens (Stealth All Black) */
html.dark {
  --bg-app: #08080a;
  --bg-sidebar: #0d0d10;
  --bg-card: #111115;
  --bg-card-hover: #16161c;
  --bg-card-subtle: #141419;
  --border-card: #1f1f26;
  --border-card-subtle: #1a1a20;
  --border-divider: #24242d;

  --text-main: #ffffff;
  --text-secondary: #9496a1;
  --text-muted: #5b5d6b;
  --text-brand: #ffffff;

  --btn-primary-bg: #ffffff;
  --btn-primary-text: #0c0c0e;
  --btn-secondary-bg: #16161c;
  --btn-secondary-border: #272732;
  --btn-secondary-text: #f4f4f5;

  --badge-green-bg: #1c1c22;
  --badge-green-text: #f4f4f5;
  --badge-green-border: #2e2e38;

  --badge-amber-bg: #18181f;
  --badge-amber-text: #a1a1aa;
  --badge-amber-border: #2e2e38;

  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-floating: 0 16px 36px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-plaque: 0 25px 40px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.15);

  --chart-line: #ffffff;
  --chart-gradient-top: rgba(255, 255, 255, 0.15);
  --chart-gradient-bottom: rgba(255, 255, 255, 0.0);
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 9999px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #272732;
}

/* Monospace font */
.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
  font-feature-settings: "tnum" 1, "zero" 1;
}

/* Card Styling */
.platform-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-card:hover {
  box-shadow: var(--shadow-floating);
}

/* Nav Item Styling */
.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  width: 100%;
}

.nav-item-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-card-subtle);
}

.nav-item-btn.active {
  color: var(--text-main);
  font-weight: 700;
  background-color: var(--bg-card-subtle);
  position: relative;
}

.nav-item-btn.active::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 25%;
  bottom: 25%;
  width: 3.5px;
  background-color: var(--text-main);
  border-radius: 9999px;
}

/* Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill-auto-d1 {
  background-color: var(--badge-green-bg);
  color: var(--badge-green-text);
  border: 1px solid var(--badge-green-border);
}

.pill-pending {
  background-color: var(--badge-amber-bg);
  color: var(--badge-amber-text);
  border: 1px solid var(--badge-amber-border);
}

/* 3D Physical Plaque Award ("Meta de Faturamento R$ 100.000") */
.plaque-3d-scene {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.plaque-3d-card {
  position: relative;
  width: 160px;
  height: 228px;
  border-radius: 18px;
  background: linear-gradient(145deg, #32323e 0%, #111116 35%, #242430 70%, #0a0a0d 100%);
  padding: 3px;
  box-shadow: 
    0 24px 40px -10px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(255, 255, 255, 0.06),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.9);
  flex-shrink: 0;
}

.plaque-3d-card:hover {
  box-shadow: 
    0 28px 45px -10px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(255, 255, 255, 0.1);
}

.plaque-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(255, 255, 255, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, #1b1b24 0%, #0d0d12 45%, #050507 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0.85rem;
  overflow: hidden;
  text-align: center;
}

.plaque-3d-sheen {
  position: absolute;
  top: 0;
  left: -160%;
  width: 260%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 80%
  );
  animation: plaqueSheen 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes plaque3DFloat {
  0% {
    transform: perspective(1000px) rotateY(-9deg) rotateX(5deg) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(9deg) rotateX(-5deg) translateY(-9px);
  }
  100% {
    transform: perspective(1000px) rotateY(-9deg) rotateX(5deg) translateY(0px);
  }
}

@keyframes plaqueSheen {
  0% {
    left: -160%;
  }
  45% {
    left: 160%;
  }
  100% {
    left: 160%;
  }
}

.black-award-plaque {
  position: relative;
  background: linear-gradient(135deg, #18181d 0%, #08080a 50%, #15151a 100%);
  border: 3px solid #2b2b34;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-plaque), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.black-award-plaque::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transition: left 0.8s ease;
  pointer-events: none;
}

.black-award-plaque:hover::before {
  left: 100%;
}

.black-award-plaque:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Plaque Silver Emblem */
.plaque-emblem-svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

/* Responsive Table */
.table-container-porcelain {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: var(--bg-card);
}

.table-porcelain {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-porcelain th {
  background-color: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

.table-porcelain td {
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid var(--border-card-subtle);
  font-size: 0.78rem;
}

.table-porcelain tr:hover td {
  background-color: var(--bg-card-hover);
}

.table-porcelain tr:last-child td {
  border-bottom: none;
}

/* Buttons */
.btn-solid-black {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.btn-solid-black:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-pill-subtle {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-pill-subtle:hover {
  background-color: var(--bg-card-subtle);
  border-color: #d4d4d8;
}

/* Modals */
.modal-backdrop-porcelain {
  background-color: rgba(12, 12, 14, 0.65);
  backdrop-filter: blur(8px);
}

.modal-content-porcelain {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ============================================================== */
/* MENU LATERAL SLIM RECOLHIDO POR PADRÃO (ÍCONES CENTRALIZADOS) */
/* EXPANSÃO EXCLUSIVAMENTE NO :hover                              */
/* ============================================================== */
#main-sidebar,
#main-sidebar.sidebar-rail {
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  transform: translateX(0) !important;
  visibility: visible !important;
  display: flex !important;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-radius 0.22s ease;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  white-space: nowrap !important;
  z-index: 50 !important;
}

/* Expansão flutuante estritamente quando o cursor estiver em cima do menu lateral */
#main-sidebar:hover,
#main-sidebar.sidebar-rail:hover {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  border-radius: 0 20px 20px 0 !important;
  box-shadow: 15px 0 40px -10px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(16px);
}

/* Ocultação absoluta de textos no estado recolhido padrão */
#main-sidebar:not(:hover) .sidebar-label,
#main-sidebar:not(:hover) .sidebar-category-header,
#main-sidebar:not(:hover) .sidebar-app-text,
#main-sidebar:not(:hover) .sidebar-expanded-content {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Exibição fluida dos textos e rótulos estritamente no :hover */
#main-sidebar:hover .sidebar-label,
#main-sidebar:hover .sidebar-category-header,
#main-sidebar:hover .sidebar-app-text,
#main-sidebar:hover .sidebar-expanded-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  width: auto !important;
  height: auto !important;
  transition: opacity 0.16s ease 0.03s;
}

/* Ícones perfeitamente centralizados quando o menu está recolhido */
#main-sidebar:not(:hover) .nav-item-btn {
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 44px !important;
  margin: 0 auto !important;
}

/* Botões alinhados com texto no hover */
#main-sidebar:hover .nav-item-btn {
  justify-content: flex-start !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  width: 100% !important;
}

/* Box da placa na sidebar quando recolhido */
#main-sidebar:not(:hover) #sidebar-plaque-box:not(.hidden) {
  padding: 4px !important;
  width: 44px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
}

#sidebar-plaque-box.hidden,
#main-sidebar.sidebar-rail #sidebar-plaque-box.hidden,
#main-sidebar #sidebar-plaque-box.hidden {
  display: none !important;
}

/* O conteúdo principal reserva o espaço fixo da barra slim (68px) */
#main-content-wrapper {
  padding-left: 68px !important;
}

/* ============================================================== */
/* REALISTIC FRAMED LUXURY PLAQUE (Titanium / Obsidian)          */
/* ============================================================== */
.plaque-frame-container {
  perspective: 1000px;
}

.plaque-frame {
  position: relative;
  background: #09090b;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.plaque-frame:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 28px 55px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.22);
}

.plaque-plate {
  position: relative;
  border-radius: 4px;
  background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 40%, #cbd5e1 70%, #94a3b8 100%);
  overflow: hidden;
  box-shadow: 
    inset 0 0 8px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.15);
}

.plaque-plate::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.45) 45%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.45) 55%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: plaqueSheen 8s infinite ease-in-out;
}

@keyframes plaqueSheen {
  0%, 70% { transform: translateY(-100%) rotate(25deg); opacity: 0; }
  75% { opacity: 1; }
  90% { transform: translateY(100%) rotate(25deg); opacity: 1; }
  100% { transform: translateY(120%) rotate(25deg); opacity: 0; }
}

/* ============================================================== */
/* SLIDE-OVER DRAWER (Conquistas & Premiações)                     */
/* ============================================================== */
.drawer-slideover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.drawer-slideover.translate-x-full {
  transform: translateX(100%);
}
.drawer-slideover.translate-x-0 {
  transform: translateX(0);
}

/* ============================================================== */
/* 3D GLOBE CINEMATIC STAGE & GLASS FLOATING PANELS              */
/* ============================================================== */
/* Light Mode (Tema Claro: Elegante, Porcelana & Safira) */
.globe-viewport-container {
  position: relative;
  width: 100%;
  min-height: 580px;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f4f5f8 65%, #e6e8ee 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.globe-glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.globe-glass-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.globe-glass-pill:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
}

.neon-cyan-glow {
  color: #0284c7;
  text-shadow: 0 0 10px rgba(2, 132, 199, 0.3);
}

.neon-bar-active {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.neon-bar-dim {
  background: rgba(0, 0, 0, 0.07);
}

/* Dark Mode Overrides (Tema Escuro: Stealth Obsidian) */
html.dark .globe-viewport-container {
  background: radial-gradient(circle at 50% 50%, #0d121f 0%, #06080d 65%, #030406 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.dark .globe-glass-card {
  background: rgba(13, 17, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .globe-glass-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}

html.dark .globe-glass-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

html.dark .neon-cyan-glow {
  color: #22d3ee;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

html.dark .neon-bar-dim {
  background: rgba(255, 255, 255, 0.07);
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


