
/* =============================================
   PRIMEIRO ACESSO (standalone — embutido no template)
   =============================================
   Estilos já embutidos no primeiro_acesso.html
*/

/* =============================================
   ÁREAS DE NEGÓCIO
   ============================================= */
.btn-link-danger {
    background: none;
    border: none;
    color: #E74C3C;
    cursor: pointer;
    font-size: 0.82rem;
    padding: 0;
    font-weight: 600;
}
.btn-link-danger:hover { text-decoration: underline; }

/* =============================================
   USUARIOS — AÇÕES DA TABELA
   ============================================= */
.user-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.user-action-form {
  margin: 0;
}

.user-actions .btn {
  min-width: 78px;
  justify-content: center;
}

.user-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* =============================================
   USUÁRIO DESTAQUE DO MÊS (Req 1) — redesign
   ============================================= */
.destaque-mes-card {
    background: #F0EDF9;
    border: 1.5px solid #DDD5F5;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(108,63,197,0.08);
}
.destaque-mes-icon {
    font-size: 2rem;
    background: #fff;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(108,63,197,0.13);
    flex-shrink: 0;
}
.destaque-mes-info { flex: 1; min-width: 0; }
.destaque-mes-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6C3FC5;
    letter-spacing: 0.07em;
    margin-bottom: 0.2rem;
}
.destaque-mes-nome {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2D3436;
    margin-bottom: 0.15rem;
}
.destaque-mes-pts {
    font-size: 0.82rem;
    color: #636E72;
    font-weight: 500;
}
.destaque-mes-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #EDE7F6;
    color: #5E35B1;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =============================================
   LINK DO PRIMEIRO ACESSO NA TELA DE LOGIN
   ============================================= */
.login-primeiro-acesso {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
}
.login-primeiro-acesso a { color: #6C3FC5; font-weight: 600; text-decoration: none; }

/* =============================================
   AUTOCOMPLETE @MENÇÃO
   ============================================= */
.mention-dropdown {
    position: absolute;
    background: #fff;
    border: 1.5px solid #D0D0D0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 9999;
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
}
.mention-item {
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s;
}
.mention-item:hover { background: #F3EFF9; color: #6C3FC5; }

/* =============================================
   FILTROS — TODAS IDEIAS (Req 11)
   ============================================= */
.filtros-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filtros-card .form-group { margin: 0; flex: 1; min-width: 160px; }
.filtros-card label { font-size: 0.78rem; font-weight: 600; color: #636E72; }

/* =============================================
   DASHBOARD — GRÁFICOS EXTRAS (Req 7)
   ============================================= */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.chart-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.chart-card h3 { font-size: 0.95rem; font-weight: 700; color: #2D3436; margin-bottom: 1rem; }
.wordcloud-canvas { width: 100%; height: 220px; }

/* =============================================
 REQ 2 — MINI AVATAR (bolinha redonda com foto)
 Usado em "Ideias Recentes" e tabelas
============================================= */
.mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #EDE7F6; /* roxinho claro */
  color: #5E35B1;
  font-weight: 800;
  font-size: 0.72rem;
  border: 1px solid #D1C4E9;
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-avatar-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #EDE7F6;
  color: #5E35B1;
  font-weight: 800;
  font-size: 0.72rem;
  border: 1px solid #D1C4E9;
}
.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-avatar-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =============================================
REQ 2 — MINI AVATAR (tabelas / listas)
============================================= */
.mini-avatar-row{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px; /* evita estourar a coluna */
}

.mini-avatar{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #EDE7F6;
  color: #5E35B1;
  font-weight: 800;
  font-size: 0.72rem;
  border: 1px solid #D1C4E9;
}

.mini-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-avatar-name{
  display: inline-block;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  color: #2D3436;
}

/* REQ 4 — aumentar ícone (emoji) no botão Melhorar com IA */
.varinha-btn{
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.varinha-btn .wand-emoji{
  font-size: 20px;     /* <-- ajuste aqui (ex: 22px se quiser maior) */
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.varinha-btn .wand-text{
  font-weight: 800;
}

/* =============================================
REQ 4.2 — Similaridade em GRID (cards clicáveis)
============================================= */
.similaridade-grid{
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.sim-card{
  background: #fff;
  border: 1px solid #EDE7F6;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.sim-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(108,63,197,0.14);
  border-color: #6C3FC5;
}

.sim-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.sim-badge{
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFCC80;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.sim-title{
  font-weight: 800;
  font-size: 0.9rem;
  color:#2D3436;
  line-height: 1.25;
  margin: 0;
}

.sim-desc{
  font-size: 0.8rem;
  color:#636E72;
  line-height: 1.35;
  margin-top: 0.35rem;
  margin-bottom: 0.7rem;
}

.sim-actions{
  display:flex;
  justify-content:flex-end;
}

.sim-open{
  display:inline-flex;
  align-items:center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.78rem;
  text-decoration:none;
  border: 2px solid #6C3FC5;
  color:#6C3FC5;
  background: transparent;
}

.sim-open:hover{
  background:#6C3FC5;
  color:#fff;
}


/* =============================================
   DASHBOARD — REFINAMENTOS CHART.JS (visual elegante)
   ============================================= */
.dashboard-grid .chart-card{
  border: 1px solid #F0F0F0;
  position: relative;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.dashboard-grid .chart-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(108,63,197,0.10);
  border-color: #EDE7F6;
}
.chart-canvas-wrap{
  width: 100%;
  position: relative;
}
.chart-canvas-wrap canvas{
  width: 100% !important;
  height: 100% !important;
}
.chart-h-240{ height: 240px; }
.chart-h-280{ height: 280px; }
@media (max-width: 600px){
  .chart-h-240{ height: 220px; }
  .chart-h-280{ height: 240px; }
}

.login-page {
    min-height: 100vh;
    background: url("/static/img/imagem_tela_login.png") no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    width: 100%;
    max-width: 420px;
    padding: 1.25rem;
}

.lg-input-wrap {
  position: relative;
}

.lg-has-toggle {
  padding-right: 44px;
}

.lg-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
