@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
  
    .bot-admin-page {
      --bot-bg: #0c0618;
      --bot-bg-2: #140a24;
      --bot-surface: rgba(36, 22, 58, 0.55);
      --bot-surface-border: rgba(255, 255, 255, 0.08);
      --bot-text: #f1f5f9;
      --bot-text-muted: #a8b4cf;
      --bot-gradient: linear-gradient(135deg, #c084fc 0%, #818cf8 45%, #22d3ee 100%);
      --bot-gradient-warm: linear-gradient(120deg, #f472b6, #c084fc, #818cf8, #22d3ee);
      --bot-glow-purple: rgba(168, 85, 247, 0.35);
      --bot-glow-cyan: rgba(34, 211, 238, 0.2);
      --bot-success: #34d399;
      --bot-warning: #fbbf24;
      --bot-danger: #f87171;
      --bot-radius: 16px;
      --bot-radius-lg: 22px;
  
      min-height: 100vh;
      margin: -1.5rem -0.75rem 0;
      padding: 0 0 11rem;
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      color: var(--bot-text);
      background: var(--bot-bg);
      position: relative;
      overflow-x: hidden;
    }
  
    .bot-admin-page::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background:
        radial-gradient(ellipse 70% 50% at 15% 20%, var(--bot-glow-purple), transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 75%, var(--bot-glow-cyan), transparent 50%),
        radial-gradient(ellipse 40% 30% at 60% 10%, rgba(244, 114, 182, 0.12), transparent 45%),
        linear-gradient(180deg, var(--bot-bg) 0%, var(--bot-bg-2) 100%);
    }
  
    .bot-admin-page::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      opacity: 0.04;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }
  
    .bot-admin-inner {
      position: relative;
      z-index: 1;
      max-width: 1320px;
      margin: 0 auto;
      padding: 0 1.25rem;
    }
  
    /* Header */
    .bot-admin-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.25rem 0 1rem;
      flex-wrap: wrap;
    }
  
    .bot-admin-brand {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      text-decoration: none;
      color: var(--bot-text);
    }
  
    .bot-admin-brand img {
      height: 36px;
      width: auto;
      filter: brightness(1.1);
    }
  
    .bot-admin-brand-text {
      font-weight: 700;
      font-size: 1rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      line-height: 1.2;
    }
  
    .bot-admin-brand-text span {
      display: block;
      font-size: 0.65rem;
      font-weight: 500;
      color: var(--bot-text-muted);
      letter-spacing: 0.12em;
    }
  
    .bot-admin-nav {
      display: none;
      align-items: center;
      gap: 0.25rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }
  
    @media (min-width: 992px) {
      .bot-admin-nav { display: flex; }
    }
  
    .bot-admin-nav a {
      color: var(--bot-text-muted);
      text-decoration: none;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 0.5rem 0.85rem;
      border-radius: 999px;
      transition: color 0.2s, background 0.2s;
    }
  
    .bot-admin-nav a:hover {
      color: var(--bot-text);
      background: rgba(255, 255, 255, 0.06);
    }
  
    .bot-admin-header-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-left: auto;
    }
  
    .bot-tagline {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      background: var(--bot-gradient-warm);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: botTaglineGradient 8s ease-in-out infinite;
      white-space: nowrap;
    }
  
    @keyframes botTaglineGradient {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }
  
    .bot-btn-outline {
      display: inline-flex;
      align-items: center;
      padding: 0.5rem 1.15rem;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 999px;
      color: var(--bot-text);
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-decoration: none;
      background: transparent;
      transition: background 0.2s, border-color 0.2s;
    }
  
    .bot-btn-outline:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.4);
      color: #fff;
    }
  
    .bot-btn-gradient {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.5rem 1.1rem;
      border: none;
      border-radius: 999px;
      font-weight: 600;
      font-size: 0.8125rem;
      color: #fff;
      background: var(--bot-gradient);
      box-shadow: 0 4px 20px rgba(129, 140, 248, 0.35);
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
  
    .bot-btn-gradient:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
    }
  
    .bot-btn-gradient:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
  
    .bot-btn-sm { padding: 0.4rem 0.9rem; font-size: 0.75rem; }
  
    /* Hero */
    .bot-admin-hero {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      padding: 1.5rem 0 2.5rem;
      align-items: center;
    }
  
    @media (min-width: 992px) {
      .bot-admin-hero {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
        padding: 2rem 0 3rem;
      }
    }
  
    .bot-hero-title {
      font-size: clamp(2.25rem, 6vw, 3.75rem);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.03em;
      margin: 0 0 1rem;
    }
  
    .bot-hero-title .bot-hero-ia {
      background: var(--bot-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
  
    .bot-hero-subtitle {
      font-size: 1.05rem;
      line-height: 1.65;
      color: var(--bot-text-muted);
      max-width: 32rem;
      margin: 0;
    }
  
    .bot-hero-card {
      padding: 1.75rem;
      border-radius: var(--bot-radius-lg);
      background: var(--bot-surface);
      border: 1px solid var(--bot-surface-border);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }
  
    .bot-hero-card-icon {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bot-gradient);
      margin-bottom: 1rem;
      font-size: 1.5rem;
      color: #fff;
    }
  
    .bot-hero-card h3 {
      font-size: 1.25rem;
      font-weight: 700;
      margin: 0 0 1rem;
    }
  
    .bot-hero-features {
      list-style: none;
      margin: 0;
      padding: 0;
    }
  
    .bot-hero-features li {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.45rem 0;
      font-size: 0.9375rem;
      color: var(--bot-text-muted);
    }
  
    .bot-hero-features li i {
      color: #c084fc;
      font-size: 1rem;
    }
  
    /* Workspace */
    .bot-admin-workspace {
      padding-bottom: 2rem;
    }
  
    .bot-admin-workspace .row {
      --bs-gutter-x: 1.25rem;
      --bs-gutter-y: 1.25rem;
    }
  
    .bot-section-label {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--bot-text-muted);
      margin: 0 0 0.75rem;
    }
  
    /* Glass cards — painel IA */
    .bot-glass-card {
      border-radius: var(--bot-radius-lg);
      background: var(--bot-surface);
      border: 1px solid var(--bot-surface-border);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
      animation: botPainelIn 0.4s ease-out;
    }
  
    @keyframes botPainelIn {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
  
    .bot-painel-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 1rem;
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--bot-surface-border);
      flex-wrap: wrap;
    }
  
    .bot-painel-title {
      font-size: 1.125rem;
      font-weight: 700;
      margin: 0 0 0.25rem;
      color: var(--bot-text);
    }
  
    .bot-painel-subtitle,
    .bot-painel-pergunta {
      font-size: 0.8125rem;
      color: var(--bot-text-muted);
      margin: 0.15rem 0 0;
    }
  
    .bot-painel-pergunta-label {
      color: #c084fc;
      font-weight: 600;
    }
  
    .bot-painel-body {
      padding: 1.25rem 1.5rem 1.5rem;
    }
  
    .bot-painel-hint {
      font-size: 0.875rem;
      color: var(--bot-text-muted);
      margin: 0 0 0.5rem;
    }
  
    .bot-metric-value {
      font-size: 2.5rem;
      font-weight: 800;
      background: var(--bot-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      line-height: 1.1;
    }
  
    .bot-metric-unit {
      font-size: 1rem;
      font-weight: 500;
      color: var(--bot-text-muted);
      -webkit-text-fill-color: var(--bot-text-muted);
    }
  
    .bot-painel-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }
  
    .bot-painel-list-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      padding: 0.75rem 0;
      border-bottom: 1px solid var(--bot-surface-border);
      font-size: 0.9375rem;
    }
  
    .bot-painel-list-item:last-child { border-bottom: none; }
  
    .bot-painel-list-item strong {
      color: #c4b5fd;
      font-weight: 700;
    }
  
    .bot-pie-layout {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1.5rem;
    }
  
    .bot-pie-chart {
      width: 200px;
      height: 200px;
      border-radius: 50%;
      flex-shrink: 0;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3);
    }
  
    .bot-pie-legend {
      list-style: none;
      margin: 0;
      padding: 0;
      flex: 1;
      min-width: 180px;
    }
  
    .bot-pie-legend-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0;
      font-size: 0.875rem;
      color: var(--bot-text-muted);
    }
  
    .bot-pie-swatch {
      width: 12px;
      height: 12px;
      border-radius: 4px;
      flex-shrink: 0;
    }
  
    .bot-pie-legend-label { flex: 1; }
  
    .bot-pie-legend-value {
      font-weight: 600;
      color: var(--bot-text);
      white-space: nowrap;
    }
  
    .bot-bar-row { margin-bottom: 1.1rem; }
    .bot-bar-row:last-child { margin-bottom: 0; }
  
    .bot-bar-meta {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.35rem;
      font-size: 0.8125rem;
      color: var(--bot-text-muted);
    }
  
    .bot-bar-value { font-weight: 600; color: var(--bot-text); }
  
    .bot-bar-track {
      height: 8px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 999px;
      overflow: hidden;
    }
  
    .bot-bar-fill {
      height: 100%;
      border-radius: 999px;
      background: var(--bot-gradient);
    }
  
    .bot-table-wrap {
      overflow-x: auto;
      border-radius: 12px;
      border: 1px solid var(--bot-surface-border);
    }
  
    .bot-data-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.8125rem;
    }
  
    .bot-data-table th,
    .bot-data-table td {
      padding: 0.65rem 0.85rem;
      text-align: left;
      border-bottom: 1px solid var(--bot-surface-border);
    }
  
    .bot-data-table th {
      background: rgba(255, 255, 255, 0.04);
      color: #c4b5fd;
      font-weight: 600;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
  
    .bot-data-table td { color: var(--bot-text-muted); }
    .bot-data-table tbody tr:hover td { color: var(--bot-text); }
  
    .bot-painel-text {
      margin: 0;
      line-height: 1.65;
      color: var(--bot-text-muted);
      font-size: 0.9375rem;
    }
  
    .bot-painel-empty {
      text-align: center;
      padding: 2.5rem 1.5rem;
    }
  
    .bot-painel-empty-icon {
      width: 56px;
      height: 56px;
      margin: 0 auto 1rem;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(129, 140, 248, 0.2);
      color: #a78bfa;
      font-size: 1.75rem;
    }
  
    .bot-painel-empty-title {
      font-size: 1.125rem;
      font-weight: 700;
      margin: 0 0 0.5rem;
    }
  
    .bot-painel-empty-text {
      margin: 0;
      font-size: 0.9rem;
      color: var(--bot-text-muted);
      max-width: 22rem;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.55;
    }
  
    /* Cards de análise */
    .bot-analise-stack {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
  
    .bot-analise-card {
      border-radius: var(--bot-radius);
      padding: 1.15rem 1.25rem;
      border: 1px solid var(--bot-surface-border);
      backdrop-filter: blur(12px);
      transition: opacity 0.25s;
    }
  
    .bot-analise-card.is-loading { opacity: 0.65; }
  
    .bot-analise-card--sucesso {
      background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.08));
      border-color: rgba(52, 211, 153, 0.25);
    }
  
    .bot-analise-card--atencao {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
      border-color: rgba(251, 191, 36, 0.25);
    }
  
    .bot-analise-card--cuidado {
      background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(239, 68, 68, 0.08));
      border-color: rgba(248, 113, 113, 0.25);
    }
  
    .bot-analise-card h5 {
      font-size: 0.95rem;
      font-weight: 700;
      margin: 0 0 0.35rem;
      color: var(--bot-text);
    }
  
    .bot-analise-card p {
      margin: 0;
      font-size: 0.8125rem;
      line-height: 1.5;
      color: var(--bot-text-muted);
    }
  
    .bot-analise-panel {
      padding: 1.25rem;
      border-radius: var(--bot-radius-lg);
      background: var(--bot-surface);
      border: 1px solid var(--bot-surface-border);
      backdrop-filter: blur(16px);
      height: 100%;
    }
  
    .bot-analise-panel-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
      padding-bottom: 0.85rem;
      border-bottom: 1px solid var(--bot-surface-border);
    }
  
    .bot-analise-panel-header h5 {
      margin: 0;
      font-size: 1rem;
      font-weight: 700;
    }
  
    .bot-analise-panel-header i {
      font-size: 1.25rem;
      color: #c084fc;
    }
  
    /* Barra inferior (referência visual da imagem) */
    .bot-admin-footer-hint {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 1085;
      pointer-events: none;
      padding: 0 1rem 5.5rem;
      text-align: center;
    }
  
    .bot-admin-footer-hint p {
      margin: 0;
      font-size: 0.7rem;
      color: rgba(168, 180, 207, 0.55);
    }
  
    .bot-admin-input-bar {
      display: none;
      max-width: 640px;
      margin: 0 auto 0.35rem;
      padding: 0.5rem 0.65rem 0.5rem 0.85rem;
      border-radius: 999px;
      background: rgba(20, 12, 36, 0.85);
      border: 1px solid var(--bot-surface-border);
      backdrop-filter: blur(12px);
      align-items: center;
      gap: 0.5rem;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
  
    @media (min-width: 768px) {
      .bot-admin-input-bar { display: flex; }
    }
  
    .bot-admin-input-bar span {
      flex: 1;
      font-size: 0.875rem;
      color: var(--bot-text-muted);
      text-align: left;
    }
  
    .bot-admin-input-pill {
      font-size: 0.65rem;
      font-weight: 600;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      background: rgba(129, 140, 248, 0.2);
      color: #c4b5fd;
      letter-spacing: 0.04em;
    }
  
    @media (max-width: 991.98px) {
      .bot-admin-header { flex-direction: column; align-items: flex-start; }
      .bot-admin-header-actions {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        flex-wrap: wrap;
      }
      .bot-tagline { white-space: normal; }
    }
  
    @media (prefers-reduced-motion: reduce) {
      .bot-tagline { animation: none; }
      .bot-glass-card { animation: none; }
    }

    [ng-cloak] { display: none !important; }