/* TransparênciaBR v11.0 — Design System Editorial & Layout Fixo com Menu Lateral */

:root {
  --sidebar-width: 256px;
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --border-subtle: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #059669;
  --accent-hover: #047857;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Estrutura Principal: Sidebar Fixa à Esquerda + Conteúdo Fluido à Direita */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: #0f172a;
  color: #e2e8f0;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
}

.app-sidebar-footer {
  padding: 16px;
  border-top: 1px solid #1e293b;
  background-color: #090e1a;
  margin-top: auto;
}

.app-main-area {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-content-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 32px 56px;
  flex: 1;
}

/* Navegação Lateral */
.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.sidebar-nav-item.is-active {
  background-color: rgba(16, 185, 129, 0.14);
  color: #34d399;
  font-weight: 600;
}

.sidebar-subnav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sidebar-subnav-item:hover {
  color: #f8fafc;
  background-color: rgba(255, 255, 255, 0.04);
}

/* Barra Mobile e Overlay (< 1024px) */
.app-mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  background-color: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 35;
}

@media (max-width: 719px) {
  .app-mobile-bar {
    display: flex;
  }
  .app-sidebar {
    transform: translateX(-100%);
  }
  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }
  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
  .app-main-area {
    margin-left: 0;
  }
  .app-content-container {
    padding: 20px 16px 40px;
  }
}

/* Scrollbar sutil */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.55);
}

/* Reset & Base Typography */
h1, h2, h3, h4, h5, p, dl, dd, pre { margin: 0; }
button, input, select { font-family: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* Layout & Positioning */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-5 { bottom: 1.25rem; }
.right-5 { right: 1.25rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Flex & Grid Alignment */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0px; }
.min-w-\[200px\] { min-width: 200px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Gaps & Space */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }

/* Sizing */
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-5 { width: 1.25rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-64 { width: 16rem; }
.h-full { height: 100%; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-72 { height: 18rem; }
.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[190px\] { max-width: 190px; }
.max-w-\[1180px\] { max-width: 1180px; }
.max-h-60 { max-height: 15rem; }
.max-h-96 { max-height: 24rem; }
.max-h-\[480px\] { max-height: 480px; }
.max-h-\[520px\] { max-height: 520px; }
.max-h-\[580px\] { max-height: 580px; }
.max-h-\[90vh\] { max-height: 90vh; }

/* Padding & Margin */
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-auto { margin-top: auto; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

/* Borders, Dividers & Radius */
.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8); }
.border-slate-900 { border-color: #0f172a; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-600 { border-color: #059669; }
.border-rose-200 { border-color: #fecdd3; }
.border-rose-600 { border-color: #e11d48; }

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top: 1px solid #e2e8f0; }
.divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: #f1f5f9; }
.divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: #e2e8f0; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Backgrounds */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-50\/60 { background-color: rgba(248, 250, 252, 0.6); }
.bg-slate-50\/70 { background-color: rgba(248, 250, 252, 0.7); }
.bg-slate-50\/80 { background-color: rgba(248, 250, 252, 0.8); }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-700 { background-color: #334155; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }
.bg-slate-950\/60 { background-color: rgba(2, 6, 23, 0.6); }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-50\/50 { background-color: rgba(236, 253, 245, 0.5); }
.bg-emerald-400 { background-color: #34d399; }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-700 { background-color: #047857; }
.bg-rose-50 { background-color: #fff1f2; }
.bg-rose-600 { background-color: #e11d48; }

/* Typography */
.text-\[10px\] { font-size: 10px; line-height: 1.3; }
.text-\[11px\] { font-size: 11px; line-height: 1.4; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

/* Text Colors */
.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-rose-800 { color: #9f1239; }

/* Misc & States */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.object-cover { object-fit: cover; }
.opacity-75 { opacity: 0.75; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25); }
.cursor-not-allowed { cursor: not-allowed; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.transition { transition: all 0.15s ease-in-out; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-slate-50\/70:hover { background-color: rgba(248, 250, 252, 0.7); }
.hover\:bg-slate-50\/80:hover { background-color: rgba(248, 250, 252, 0.8); }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:bg-slate-200:hover { background-color: #e2e8f0; }
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:bg-emerald-50\/30:hover { background-color: rgba(236, 253, 245, 0.3); }
.hover\:bg-emerald-600:hover { background-color: #059669; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.hover\:border-slate-300:hover { border-color: #cbd5e1; }
.hover\:border-emerald-500:hover { border-color: #10b981; }
.hover\:border-emerald-600:hover { border-color: #059669; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-slate-700:hover { color: #334155; }
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:text-emerald-700:hover { color: #047857; }
.hover\:text-emerald-900:hover { color: #064e3b; }
.hover\:underline:hover { text-decoration: underline; }
.group:hover .group-hover\:text-emerald-700 { color: #047857; }
.group:hover .group-hover\:underline { text-decoration: underline; }
.focus\:outline-none:focus { outline: none; }
.focus\:border-emerald-500:focus { border-color: #10b981; }
.focus\:border-emerald-600:focus { border-color: #059669; }


.border-collapse { border-collapse: collapse; }
.backdrop-blur-xs { backdrop-filter: blur(2px); }
.placeholder-slate-400::placeholder { color: #94a3b8; }
.placeholder-slate-500::placeholder { color: #64748b; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px #059669; }
.focus\:ring-emerald-600:focus { box-shadow: 0 0 0 1px #059669; }

.self-start { align-self: flex-start; }
/* Responsive Breakpoints */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:divide-y-0 > :not([hidden]) ~ :not([hidden]) { border-top-width: 0px; }
  .sm\:divide-x > :not([hidden]) ~ :not([hidden]) { border-left: 1px solid #e2e8f0; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:items-end { align-items: flex-end; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .md\:divide-y-0 > :not([hidden]) ~ :not([hidden]) { border-top-width: 0px; }
  .md\:divide-x > :not([hidden]) ~ :not([hidden]) { border-left: 1px solid #e2e8f0; }
  .md\:w-80 { width: 20rem; }
}
@media (min-width: 720px) {
  .lg\:hidden { display: none !important; }
}
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
