/* ==========================================================================
   1. GENÉRICO & CONFIGURAÇÕES (VARIABLES, RESET, BASE)
   ========================================================================== */

/* 1.1 VARIÁVEIS GLOBAIS */
:root {
  --bg-app: #f3f4ff;
  --bg-sidebar: #474648; /* Cor original do seu .sidebar */
  --bg-sidebar-soft: #111827;
  --bg-card: #ffffff;
  --bg-soft: #f9fafb;
  --accent-pink: #f43f5e;
  --accent-pink-soft: rgba(244, 63, 94, 0.14);
  --accent-purple: #6366f1;
  --accent-purple-soft: rgba(99, 102, 241, 0.12);
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: 1.75rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --transition-fast: 160ms ease-out;
}

/* 1.2 RESET / BOX-MODEL */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 1.3 BASE (ESTILOS PARA TAGS HTML) */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #F2F2F2;
  color: var(--text-main);
}

a {
  text-decoration: none;
  cursor: pointer;
}

/* ==========================================================================
   2. LAYOUT PRINCIPAL (SHELL, MAIN, SIDEBAR, FOOTER)
   ========================================================================== */

/* 2.1 APP SHELL & MAIN CONTENT WRAPPER */
.app-shell {
  /* Vazio no original */
}

.main {
  flex: 1;
  margin-left: 260px; /* Offset da Sidebar */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  padding: 1.5rem 2.25rem 2.25rem;
  width: 100%;
 
}


/* 2.2 TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1rem 2.25rem 0.7rem;
  background: #F2F2F2;
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  
}

.topbar-title-group {
  display: flex;
  flex-direction: column;
}

.topbar-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.topbar-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 2.3 SIDEBAR (NAVEGAÇÃO LATERAL) */
.sidebar {
  position: fixed;
  left: 0px;
  width: 260px;
  height: 100vh;
  background: #474648;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.4rem 1.4rem;
  padding-right: 0;
  inset: 0 auto 0 0;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  z-index: 1600;
  will-change: transform;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(.2,.9,.2,1);
  font-family: 'Montserrat', sans-serif;
}

.sidebar-brand {display: flex; align-items: center; gap: 0.8rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(148, 163, 184, 0.35);}
.sidebar-logo {width: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem;}
.sidebar-brand-title {font-weight: 700; font-size: 1rem; display: block;}
.sidebar-brand-title span {color: #a5b4fc;}
.sidebar-brand-subtitle {font-size: 0.7rem; color: #9ca3af;}
.sidebar-nav {flex: 1; margin-top: 0.9rem; overflow-y: auto; padding-right: 0.2rem;}
.sidebar-group {margin-bottom: 2px !important; font-family: 'Montserrat', sans-serif;}
.sidebar-section-title {display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.13em; color: #9ca3af; margin-bottom: 0.4rem;}
.sidebar-item {width: 100%; border: none; outline: none; background: transparent; border-radius: 999px; padding: 0.55rem 0.6rem; font-size: 0.7rem; color: #e5e7eb; display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.15rem; cursor: pointer; opacity: 0.85; transition: background .15s, opacity .15s, transform .15s, box-shadow .15s;}
.sidebar-item-main {margin-bottom: 0.4rem;}
.sidebar-item-icon {width: 18px; text-align: center; font-size: 0.9rem;}
.sidebar-item-active {background: #666666; opacity: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; border-left: 4px solid #e11d48; font-family: 'Montserrat', sans-serif;} /* vermelho */
.sidebar-item-active:hover {color:#E33C44 ;}

.sidebar-item:not(.sidebar-item-active):hover {background: rgba(15, 23, 42, 0.85); opacity: 1; transform: translateY(-1px);}
.sidebar-cta {margin-top: 0.5rem; padding: 0.95rem; border-radius: 1.3rem; background: radial-gradient(circle at 0 0, #f43f5e, #020617 80%); box-shadow: 0 20px 35px rgba(15, 23, 42, 0.85); font-size: 0.75rem;}
.sidebar-cta-title {font-weight: 700; margin-bottom: 0.15rem;}
.sidebar-cta-text {color: #e5e7eb; margin-bottom: 0.5rem;}
.btn-cta {background: #f9fafb; color: #111827; border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.75rem; font-weight: 600; border: none; cursor: pointer; transition: background .15s, transform .15s;}
.btn-cta:hover {background: #e5e7eb; transform: translateY(-1px);}

.sidebar-titulo {
  position: relative;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.sidebar-titulo a {
  position: relative;
  color: #fff;
  font-size: 16px;
}

.sidebar-titulo a:hover {
	color:#E33C44;
}


/* Alvo específico no texto quando o botão recebe hover */
.sidebar-titulo:hover {
   color:#E33C44;
}

.sidebar-links a:hover {
   color:#E33C44;
}


/* Estilo para quando o mouse passar por cima do botão */
.sidebar-item-main:hover {
   /* background-color: #f0f0f0; /* Altera a cor do fundo */
   color:#E33C44;            /* Altera a cor do texto "Home" */
    cursor: pointer;           /* Transforma a seta em "mãozinha" */
    transition: 0.3s;          /* Deixa a mudança suave */
}

/* Se quiser mudar também a imagem quando passar o mouse */
.sidebar-item-main:hover img {
    opacity: 0.8; 
    filter: brightness(1.2);
}

.sidebar-links {
  position: relative;
  border-left: 1px solid #7D7D7D;
  padding-left: 1.4em;
  
  /* ALTERAÇÕES AQUI: */
  max-height: none !important; /* Remove o limite de altura 0 */
  overflow: visible !important; /* Permite que o conteúdo apareça */
  display: block !important;    /* Garante que não seja escondido por JS */
  opacity: 1 !important;        /* Garante visibilidade total */
  
  transition: none; /* Remove transição para não haver "pulo" ao carregar */
}

.sidebar-links a {
  text-decoration: none;
  font-size: 13px;
  line-height: 18px !important;
  color: #CCC;
  text-align: left;
  margin-top: 8px;
  margin-bottom: 8px;
  display: block;
}

/* Modificador Sidebar Links (Acordeão) */
.sidebar-links.open {
  max-height: 500px;
}

/* Modificador Toggle Icon (Seta) */
.toggle-icon {
  transition: transform 0.3s ease; 
  transform: rotate(0deg); 
  cursor: pointer;
}
.toggle-icon.open {
  transform: rotate(180deg);
}

.toggle-icon#bd-toggle {
  transform: rotate(180deg) !important;
}



/* Botão Mobile */
.mobile-menu-btn {
  display: none; 
  position: fixed;
  top: 5px;
  right: 0px;
  z-index: 2200;
  background-color: transparent;
  border: none;
  font-size: 1.25rem;
  padding: 0.3rem 0.65rem;
  margin-right: 10px;
  margin-top: 10px;
  cursor: pointer;
  align-items: center; 
  justify-content: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500; 
  opacity: 0;
  transition: opacity 0.28s ease;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

.hamburger-icon {
  display: block;
  width: 22px; 
  height: 3px; 
  background-color: #000; 
  position: relative;
}
.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 3px;
  background-color: #000; 
  left: 0;
  transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

.mobile-menu-btn.active .hamburger-icon {
  background-color: transparent; 
}
.mobile-menu-btn.active .hamburger-icon::before {
  top: 0; 
  transform: rotate(45deg);
}
.mobile-menu-btn.active .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 2.4 FOOTER */
.site-footer {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(209, 213, 219, 0.6);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 30px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 2.25rem 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  font-size: 0.78rem;
}

.footer-brand-title {
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer-brand-text {
  color: var(--text-muted);
}

.footer-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: red;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.45rem 2.25rem 0.9rem;
  border-top: 1px solid rgba(209, 213, 219, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
  background: #ededed !important;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   3. LAYOUTS DE GRIDS (METRICS, MAIN, ESPECÍFICOS)
   ========================================================================== */

/* 3.1 METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* 3.2 MAIN GRID */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.main-grid-left,
.main-grid-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 3.3 ACCESS CARDS GRID (Acesso a Banco de Dados) */
.access-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 32px;
  margin-left: -12px;
  margin-right: -12px;

}




.access-cards > * {
  flex: 1 1 calc(33.3333% - 24px);
  margin: 0 12px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}


.access-card {
transition: all 0.3s ease;	
}




.access-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

}

/* 3.4 NEWS GRID */
.news {
  margin-top: 40px;
}

.news h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.news-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-left: -12px;
  margin-right: -12px;
  
}

.news-card {
  flex-basis: calc(33.3333333% - 24px);
  flex: 1;
  min-width: 280px;
  box-sizing: border-box;
  margin: 0 12px 12px;
 transition: transform 0.3s ease-out;
}


.news-card img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  vertical-align: bottom
}



/* 1. Container da Imagem (A 'Moldura') */
.news-image-container {
    /* Define uma altura fixa para que todas as imagens tenham o mesmo tamanho no card */
    height: 140px !important; 
    overflow: hidden; /* ESSENCIAL: Recorta a imagem para esconder o zoom */
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative; /* Necessário para posicionar o overlay */

 
    overflow: hidden; 
    border-radius: 16px; /* Ajustado para 16px conforme seu pedido */
    margin-bottom: 15px;
    position: relative;
	
	
	/* --- CORREÇÃO DO BUG --- */
    
    /* 1. Força a aceleração de hardware no container para ele "segurar" o filho */
    transform: translateZ(0); 
    
    /* 2. Correção específica para Safari/Webkit (essencial para bordas arredondadas + zoom) */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* 2. Estilos Iniciais da Imagem */
.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o container sem distorcer */
    display: block;

    /* A MAGIA ACONTECE AQUI: Transição suave para transform (zoom) e filter (brilho) */
    transition: transform 0.4s ease-out, filter 0.4s ease-out;
    transform: scale(1); /* Estado inicial: sem zoom */
    filter: brightness(100%); /* Estado inicial: brilho normal */
			
}

/* 3. Efeito Overlay/Escurecimento (opcional, mas recomendado) */
.news-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Transparente no estado normal */
    transition: background-color 0.4s ease-out; /* Transição para o escurecimento */
    pointer-events: none; /* Garante que não interfira com cliques */
	
}


/* 4. Estado de HOVER */

/* Quando o mouse estiver sobre o cartão */
.news-card:hover .news-image-container img {
    /* Zoom de 5% */
    transform: scale(1.05); 
    /* Leve escurecimento para dar profundidade */
    filter: brightness(80%);

}





/* 3.5 DASHBOARD GRID */
.dashboard {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 32px;
  
  width: 100%;
 
}



/* ==========================================================================
   4. COMPONENTES & MÓDULOS (CARDS, BUTTONS, FORMS)
   ========================================================================== */

/* 4.1 BOTÕES GENÉRICOS */
.btn {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background-color: transparent !important;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease-in-out;
}


.btn:hover {
  /* Vermelho forte para preencher o botão */
  background-color: #E33C44 !important; 
  
  /* Borda na mesma cor do fundo */
  border: 1px solid #E33C44;
  
  /* Torna o texto branco para contraste */
  color: white; 
  
  /* Sombra para dar profundidade e destaque */
  box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
  
  /* Pequena elevação sutil */
  transform: translateY(-1px);
}
.btn-secondary {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.btn-highlight {
  background: var(--accent-pink);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-highlight:hover {
  background: #db2777;
  transform: translateY(-1px);
}

.btn-noticias {
 
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  width: fit-content;
  text-decoration: none !important;
  position: relative; /* Essencial para posicionar o sublinhado */
  overflow: hidden; /* Opcional: Garante que o sublinhado não apareça antes de deslizar */
  color: #333; /* Defina a cor inicial do texto (se ainda não estiver definida) */
  transition: all 0.3s ease-out; /* Transição para suavizar a mudança de cor/sombra */
  height:45px;

  
}


.btn-noticias:hover {
  /* Altera a cor da borda para um azul chamativo */
  border-color: #E33C44; 
  
  /* Altera a cor do texto para combinar com a borda */
  color: #E33C44;
  
  /* Adiciona uma sombra sutil para "levantar" o botão */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  
  /* Opcional: Aumenta sutilmente a espessura da borda (mantendo o padding) */
  border-width: 1.5px; 
  
  /* Opcional: Move sutilmente para cima */
  transform: translateY(-1px);
}


.btn-restrito-not {
 
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  width: fit-content;
  text-decoration: none !important;
  position: relative; /* Essencial para posicionar o sublinhado */
  overflow: hidden; /* Opcional: Garante que o sublinhado não apareça antes de deslizar */
  color: #333; /* Defina a cor inicial do texto (se ainda não estiver definida) */
  transition: all 0.3s ease-out; /* Transição para suavizar a mudança de cor/sombra */
  height:45px;

  
}

.btn-restrito-not:hover {
  /* Altera a cor da borda para um azul chamativo */
  border-color: #E33C44; 
  
  /* Altera a cor do texto para combinar com a borda */
  color: #E33C44;
  
  /* Adiciona uma sombra sutil para "levantar" o botão */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  
  /* Opcional: Aumenta sutilmente a espessura da borda (mantendo o padding) */
  border-width: 1.5px; 
  
  /* Opcional: Move sutilmente para cima */
  transform: translateY(-1px);
}


/* 4.2 CARDS GENÉRICOS */
.card {
	
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
 transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

}

/* Reaplicação para .card do .dashboard (para unificar estilos base) */
.dashboard .card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  /* Sobrescreve .card genérico para o dashboard */
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.card-header h3 {
  font-size: 16px;
}

.card-header span {
  font-size: 12px;
  color: #777;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}


/* 4.3 COMPONENTE DE BUSCA (Search Box) */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(209, 213, 219, 0.95);
  min-width: 250px;
}

.search-icon {
  font-size: 0.9rem;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.8rem;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}


/* 4.4 COMPONENTE DE USUÁRIO (User Chip) */
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  border: 1px solid rgba(209, 213, 219, 0.95);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #6366f1, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f9fafb;
}


/* 4.5 CARD DE MÉTRICAS INDIVIDUAIS (Metric Card) */
.metric-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.metric-card-highlight {
  background: radial-gradient(circle at 0 0, #D83A43, #61292C);
  color: #f9fafb;
  border-color: transparent;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  margin: 0;
}

.metric-card .metric-subtitle {
  font-size: 0.72rem;
  color: #666;
  padding: 0;
  margin: 0;
}

.metric-card-highlight .metric-subtitle {
  color: #cbd5f5;
}

.metric-pill {
  font-size: 0.68rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.metric-pill-up {
  background: #4C43DA;
  color: #fff;
  font-weight: bold;
}

.metric-pill-up-1 {
  background: rgba(22, 163, 74, 0.2);
  color: #17642C;
  font-weight: bold;
}

.metric-pill-down-1 {
  background: rgba(239, 68, 68, 0.23);
  color: #C23744;
  font-weight: bold;
}

.metric-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0;
  margin: 0;
}

.metric-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.metric-card-highlight .metric-footer {
  color: rgba(255, 255, 255, 0.85);
}


/* 4.6 MINI GRÁFICOS (SVG) */
.metric-mini-chart-svg {
  width: 130%;
  margin-left: -15%;
  height: 70px;
  overflow: visible;
}

.metric-line-up,
.metric-line-down,
.metric-line-flat,
.metric-line-highlight {
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.metric-line-up { stroke: #22c55e; }
.metric-line-down { stroke: #ef4444; }
.metric-line-flat { stroke: #94a3b8; }
.metric-line-highlight { stroke: rgba(255, 255, 255, 0.85); }


/* 4.7 CARD ACESSO (ACCESS CARD) */
.access-card {
  flex: 1;
  min-width: 280px;
  background: linear-gradient(135deg, #3b3b3b, #1f1f1f);
  border-radius: 26px;
  padding: 28px 32px;
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  
}

.access-content {
width:100%;
}

.access-card h3 {
  font-size: 20px;
  margin: 0;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.access-card p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
  font-family: 'Montserrat', sans-serif;
}

.access-login {
  font-size: 13px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
}


/* 4.8 CARD CHART (Gráfico de Barras) */
.card-chart {
  padding-bottom: 1.4rem;
}

.chart-wrapper {
  border-radius: 1.5rem;
  background: linear-gradient(to top, rgba(129, 140, 248, 0.05), rgba(219, 234, 254, 0.7));
  border: 1px solid rgba(191, 219, 254, 0.9);
  padding: 0.8rem 0.9rem 0.9rem;
  position: relative;
  overflow: hidden;
}

.chart-grid {
  position: absolute;
  inset: 0;
  padding: 0.9rem;
  opacity: 0.16;
  pointer-events: none;
}

.chart-grid > div {
  height: 1px;
  background: rgba(15, 23, 42, 0.5);
  margin-bottom: 17%;
}

.chart-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 220px;
}

.chart-bar {
  flex: 1;
  border-radius: 0.55rem 0.55rem 0.3rem 0.3rem;
  background: linear-gradient(to top, #6366f1, #22c55e);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: default;
  transition: transform 140ms ease-out, filter 140ms ease-out;
}

.chart-bar:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

.chart-tooltip {
  position: absolute;
  bottom: 100%;
  transform: translateY(-6px);
  background: #020617;
  color: #f9fafb;
  font-size: 0.65rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.chart-bar:hover .chart-tooltip {
  opacity: 1;
  transform: translateY(-10px);
}

.chart-months {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.62rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}


/* 4.9 CARD CATEGORIES (Categorias e Donut Chart) */
.card-categories {
  padding-bottom: 1.3rem;
}

.categories-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 1rem;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.category-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.category-value {
  font-weight: 600;
  font-size: 0.78rem;
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.category-bar-outer {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 0.1rem;
}

.category-bar-inner {
  height: 100%;
  border-radius: inherit;
}

/* cores categorias (modificadores) */
.cat-blue { background: #3b82f6; }
.cat-purple { background: #a855f7; }
.cat-green { background: #22c55e; }
.cat-orange { background: #fb923c; }

/* Donut Chart */
.categories-donut {
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-circle {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #6366f1 0 216deg, #e5e7eb 216deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-inner {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-value {
  font-size: 1rem;
  font-weight: 700;
}

.donut-label {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* 4.10 CARD STUDIES */
.card-studies .studies-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

.study-card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  font-size: 0.8rem;
}

.study-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.study-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #ffffff;
  margin-right: 0.25rem;
  font-size: 0.68rem;
}

.badge-format {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: var(--accent-pink-soft);
}

.study-info {
  margin-left: 0.15rem;
}


/* 4.11 CARD MARKET SUMMARY */
.card-market .market-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}

.market-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(209, 213, 219, 0.8);
}

.market-item:last-child {
  border-bottom: none;
}

.market-label {
  color: var(--text-muted);
}

.market-value {
  font-weight: 600;
}

.market-change {
  font-size: 0.7rem;
  margin-left: 0.35rem;
}

.market-change-up {
  color: var(--accent-green);
}

.market-change-down {
  color: var(--accent-red);
}


/* 4.12 CARD NEWS */
.card-news .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8rem;
}


.news-card {
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
   transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

}


.news-date {
  align-self: flex-start;
  background: #f1f3f6;
  color: #555;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.news-card a {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.news-card a:hover {
  text-decoration: underline;
}

.news-more {
  margin-top: 15px;
  text-align: center;
}

.news-more a {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

/* 4.13 CARD HIGHLIGHT */
.card-highlight {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.card-highlight-inner {
  background: linear-gradient(to bottom right, #0b1024, #020617);
  border-radius: 1.7rem;
  padding: 1.4rem 1.2rem;
  text-align: center;
  color: #f9fafb;
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.highlight-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.highlight-text {
  font-size: 0.78rem;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}


/* 4.14 CARD DOWNLOADS */
.card-downloads {
  flex: 1.7;
  margin-right:24px;
}

.card-downloads h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
 
}

.download-item:last-child {
  border-bottom: none;
}




.icon {
  width: 36px;
  height: 36px;
  background: #f0f2f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info {
  flex: 1;
}

.info strong {
  display: block;
  font-size: 14px;
}

.info span {
  font-size: 12px;
  color: #888;
}

.action {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
   display: flex;
  align-items: center;

  padding: 12px;
  border-radius: 12px;
  /*border: 1px solid #ddd;*/
  background-color: transparent !important;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease-in-out;
}


.action:hover {
  /* Vermelho forte para preencher o botão 
  background-color: #E33C44 !important; */
  
  /* Borda na mesma cor do fundo 
  border: 1px solid #E33C44;*/
  
  /* Torna o texto branco para contraste */
  color: white; 
  
  /* Sombra para dar profundidade e destaque */
  box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
  
  /* Pequena elevação sutil */
  transform: translateY(-1px);
}


/* 4.15 CARD MERCADO */
.card-mercado {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Métricas */
.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.metric strong {
  font-size: 16px;
}

.metric small {
  display: block;
  font-size: 12px;
  text-align: right;
}

.up {
  color: #1f9d6a;
}

.down {
  color: #e5533d;
}

/* 4.16 SLIDESHOW */
.slideshow {
  width: 100%;
  height: 440px;
  padding: 25px;
  border-radius: 20px;
  background: linear-gradient(to right, #000000, #333333);
  margin-bottom: 20px;
  box-sizing: border-box;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  inset: 0;
  background-size: cover;
  background-position: right;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3));
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
  padding: 30px;
  color: #fff;
  height: 100%;
}

.slide-content h1 {
  font-size: 24px !important;
  line-height: 30px;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.btn-slide {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s ease;
}

.btn-slide:hover {
  background: #fff;
  color: #000;
}


/* 4.17 BOTÃO RESTRITO (Botão com Ícone/Acesso) */
button.restrito {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 14px;
}

button.restrito svg {
  width: 16px;
  height: 16px;
  fill: #e53935;
}

button.restrito:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, #444, #333);
}

/* 4.18 TABS */
.card-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tab {
  font-size: 0.72rem;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.tab-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.tab-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: #f3f4f6;
  font-size: 0.8rem;
  cursor: pointer;
}


/* ==========================================================================
   5. UTILITÁRIOS (LINKS INLINE, MODIFICADORES)
   ========================================================================== */

.link-inline {
  font-size: 0.75rem;
  color: var(--accent-purple);
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.action {
  color: #000;
}

.badge {
  /* Estilo base está na seção 4.10 */
  width: 30px;
  height: 30px;
  padding: 10px;
  border-radius: 50%;
  font-weight: bold;
}
.card-mercado .badge {
  background: #e7f7ef;
  color: #1f9d6a;
}







.btn-download-2 {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
	min-width:100px;
	text-align:center !important;
	
}

.btn-download-2:hover { 
    background: #E30B12; 
    color: #fff; 
    border-color: #E30B12; 
}

/* ESTILO PARA O BOTÃƒO RESTRITO */
.btn-restrito {
    background: #f0f0f0;
   color: #777;
}
.btn-restrito:hover {
   background: #E30B12; 
    color: #fff; 
    border-color: #E30B12; 
}





.icon-file img {
	width:30px !important;
}


/* ==========================================================================
   6. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

/* TELAS GRANDES (>= 1024px) */
@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .main-grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  }
}

/* TELAS MÉDIAS (>= 768px, < 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* TELAS PEQUENAS (<= 1024px) */
@media (max-width: 1024px) {
  /* Dashboard */
  .dashboard {
    flex-direction: column;
    gap: 16px;
    padding: 0px; 
    margin: 0;
  }
  .dashboard > * {
    flex: none;
    width: 100%;
    margin: 0 0 16px 0; /* Ajusta margem para espaçamento vertical */
  }
  
  .card-downloads {
	  margin-right:0;
  }
  
  .card-downloads,
  .card-mercado {
    flex: none;
    width: 100%;
  }

  /* Footer */
  .footer-inner,
  .footer-bottom {
    padding-inline: 1.25rem;
  }
  
  /* Layout Principal */
  body {
    padding: 20px;
  }
}

/* TELAS MÉDIAS E PEQUENAS (<= 900px) */
@media (max-width: 900px) {
  /* Layout Principal */
  .main {
    margin-left: 0;
    margin: 0;
    padding: 0;
  }
  .topbar {
    padding-inline: 0;
    width: 100%;
    margin-top: 0;
    margin: 0 auto;
  }
  .content {
    width: 100%;
    padding: 0px;
	padding-bottom:20px !important;
    margin: 0 auto;
  }

  /* Grids */
  .categories-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .access-cards > * {
    flex: 1 1 calc(50% - 24px); 
  }
  .news-card {
    flex-basis: calc(50% - 12px); 
  }
  .dashboard > * {
    flex: 0 1 calc(50% - 24px); 
  }
  
  /* Sidebar Mobile */
  .mobile-menu-btn {
    display: flex; 
  }
  .sidebar {
    transform: translateX(-280px); 
  }
  .sidebar.open {
    transform: translateX(0); 
  }
}

/* TELAS PEQUENAS (<= 640px) */
@media (max-width: 640px) {
  /* Topbar */
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .search-box {
    flex: 1;
  }
  
  /* Grids */
  .access-cards > * {
    flex: 1 1 100%;
  }
  .card-studies .studies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  /* News Card */
  .news-card {
    flex-basis: calc(100% - 24px);
  }
  
  /* Dashboard */
  .dashboard > * {
    flex: 0 1 calc(100% - 24px); 
  }
}

/* TELAS MUITO PEQUENAS (<= 600px) */
@media (max-width: 600px) {
  .card {
    padding: 16px;
  }
  .download-item {
    gap: 10px; 
  }
  /* .download-item .action {
    / *display: none;* /
  } */
  .info {
    flex: 1;
    min-width: 0;
  }
  .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  
 /* No seu style.php ou arquivo CSS */
.info-file p {
    margin-right: 10px !important;
    
}




}

/* TELAS EXTREMAMENTE PEQUENAS (<= 420px) */
@media (max-width: 420px) {
  .sidebar {
    width: 220px;
  }
}





/* ==========================================================================
   FORÇAR REMOÇÃO DO RETÂNGULO DO CONTACT FORM 7
   ========================================================================== */

/* Mata o retângulo de acessibilidade (o maior culpado) */
.wpcf7 .screen-reader-response,
.screen-reader-response,
div[role="status"],
.wpcf7-screen-reader-response {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    overflow: hidden !important;
}

/* Remove a borda cinza que o CF7 coloca no formulário quando há erro */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.sent .wpcf7-response-output,
.wpcf7-response-output {
    display: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Garante que nenhum elemento filho dentro da div de erro apareça */
.screen-reader-response * {
    display: none !important;
}


