/* front-end/css/custom.css */

/* Paleta e base */
:root{
  --app-bg-1:#0f1024;   /* roxo-azulado profundo */
  --app-bg-2:#1a1336;   /* roxo escuro */
  --app-primary:#7c3aed;/* roxo principal */
  --app-primary-800:#5b26bd;
  --app-nav:#0d0b1a;
  --app-text:#f4f5f7;
  --app-muted:#b9b9c8;
}

.app-bg{
  background: radial-gradient(1200px 600px at 50% -10%, var(--app-bg-2), transparent 60%),
              linear-gradient(180deg, var(--app-bg-1), #0b0b18 70%);
  color: var(--app-text);
}

/* Navbar */
.app-navbar{
  background: linear-gradient(180deg, var(--app-nav), rgba(13,11,26,.92));
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: saturate(130%) blur(6px);
}
.brand-badge{
  width: 28px; height: 50px;
  border-radius: 8px;
  color: var(--app-primary);
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.35);
}


.navbar .nav-link {
  color: #dcdcee;
  opacity: .9;
  
  /* --- AQUI ESTÁ O ALINHAMENTO --- */
  display: flex;
  align-items: center; /* Centraliza verticalmente o ícone e texto */
  gap: 6px;            /* Distância controlada (era .5rem, baixei para 6px) */
  
  /* --- MELHORIA VISUAL --- */
  /* Coloque o padding aqui para o botão já ter o tamanho certo antes de ser clicado */
  padding: 0.5rem 0.75rem; 
  border-radius: .75rem;
  transition: all 0.3s ease; /* Suaviza a troca de cor */

  /* Se precisar empurrar para direita, prefira margin ao invés de position/left */
  margin-left: 22px; 
  text-decoration: none; /* Remove sublinhado padrão de links */
}

/* Removemos o .nav-ico pois o flex no pai já resolve */

.navbar .nav-link:hover {
  color: #fff;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1); /* Opcional: fundo leve ao passar o mouse */
}

.navbar .nav-link.active {
  color: #fff;
  background: #A345F5;
  /* Não precisa repetir padding ou border-radius aqui */
  font-weight: 600; /* Opcional: Deixa o texto do item ativo mais gordinho */
}

.icones_header {

  margin-right: 120px;
}

/* Hero */
.hero{ min-height: calc(100vh - 64px); display:flex; align-items:center; }
.hero-card{
  max-width: 880px;
}
.hero-icon{
  width:110px; height:110px;
  border-radius: 24px;
  color: var(--app-primary);
  background:
    radial-gradient(60px 60px at 50% 40%, rgba(124,58,237,.20), transparent 70%),
    linear-gradient(135deg, rgba(124,58,237,.28), rgba(124,58,237,.12));
  border: 1px solid rgba(124,58,237,.36);
  display:flex; align-items:center; justify-content:center;
  box-shadow:
    0 10px 30px rgba(124,58,237,.25),
    inset 0 0 40px rgba(124,58,237,.18);
}

/* CTA */
.app-cta{
  background: var(--app-primary);
  border-color: var(--app-primary);
}
.app-cta:hover{
  background: var(--app-primary-800);
  border-color: var(--app-primary-800);
}
.app-cta svg{ vertical-align: -2px; }

/* Tipografia */
.display-6{
  color:#ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.text-muted, .text-secondary{ color: var(--app-muted)!important; }

.text-secondary.mb-0 {

  font-size: 16px;
}

/* ===== CTA FINAL / separação ===== */
.section-spacer{
  margin-top: 4rem; /* separa bem do bloco anterior */
}
@media (min-width: 992px){
  .section-spacer{ margin-top: 6rem; }
}

/* barra decorativa entre seções */
.section-divider{
  width: 140px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,58,237,.2), rgba(124,58,237,.9), rgba(124,58,237,.2));
  box-shadow: 0 6px 20px rgba(124,58,237,.25);
}

/* bloco do CTA */
.cta-slab{
  max-width: 980px;
  position: relative;
  bottom: 25px;
  background: #2a1147;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1rem;
  box-shadow:
    0 10px 30px rgba(0,0,0,.25),
    inset 0 0 80px rgba(124,58,237,.08);
}

/* reforço do botão */
.cta-slab .btn{
  min-width: 260px;
}


body.bg-body-tertiary,
.bg-body-tertiary {
  background-color: #160F37 !important;
}

h1.h3.mt-3.mb-0.fw-semibold {

  color: white;
  position: relative;
  bottom: 8px;
}

main.d-flex.align-items-center.justify-content-center.min-vh-100.py-4 {
  background-color: #160F37 !important;
}

.card.shadow-sm.border-0 {

   background-color: #321154;
}

.form-label {

  color: white;
}

.btn.btn-primary.w-100.mt-3{

  background-color: #A345F5;
  color: white;
}

.link-primary {

  margin-left: 6px;
}


.card.shadow-sm.border-0 {
  transition: all 0.3s ease; 
}

.card.shadow-sm.border-0:hover {
  transform: scale(1.02);
}

.col-12.col-sm-6 {

  width: 100%;
}

.link-primary {

  text-decoration: none;
}


.avatar_usuario {
  width: 50px;             /* Largura do círculo */
  height: 50px;            /* Altura do círculo */
  border-radius: 50%;      /* Faz o círculo perfeito */
  background-color: #A345F5;; /* Cor de fundo (pode mudar) */
  color: #fff;             /* Cor da letra inicial */
  display: flex;           /* Flex para centralizar o conteúdo */
  align-items: center;     /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  font-weight: bold;       /* Letra em negrito */
  font-size: 1.2rem;       /* Tamanho da letra */
  text-transform: uppercase; /* Garantir letra maiúscula */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* Sombra leve */
  cursor: default;         /* Cursor normal */
  user-select: none;       /* Não permitir seleção do texto */
  transition: transform 0.2s; /* Pequena animação ao hover */
}


.h4.mb-0 {

  color: white;
}

.texto_user.mb-0 {

  color: white;
  font-weight: bold;
  font-size: 12px;
  margin-top: 4px;
}

.btn.btn-outline-danger.btn-sm {

  background-color: rgb(204, 41, 41);
  color: white;
}

.titulo_acessorapido {

  color: white;
  font-size: 30px;
  position: relative;
  top: 12px;
}

.titulo_estatisticasusuario{
  color: white;
  font-size: 30px;
  position: relative;
  top: 5px;

}

h1.titulo_acessorapido {

    margin-top: 12px;

}

.container.py-4 {

  margin-top: 25px;
}

#email-usuario {

  display: none;
}

.card-body .mb-1.text-secondary {
  font-size: 29px;
  font-weight: bold;
  color: white;
}

.card-body .mb-1.text-secondarys {
  font-size: 16px;
  font-weight: lighter;
  color: white;
}


.card.border-0.shadow-sm {

  margin-top: 30px;
  width: 390px;
}

.user-square.d-flex.align-items-center.justify-content-center {

  background-color: #23073B;
  border: none;
}

.user-squares.d-flex.align-items-center.justify-content-center {

  background-color: #23073B;
  border: none;
}

.user-squaress.d-flex.align-items-center.justify-content-center {

  background-color: #23073B;
  border: none;
}



.user-square {
  width: 68px;                /* largura do quadrado */
  height: 60px;               /* altura do quadrado */
  background-color: #f0f0f0;  /* cor de fundo */
  border-radius: 8px;         /* cantos arredondados */
  border: 1px solid #ddd;     /* borda leve */
  overflow: hidden;            /* para cortar a imagem se precisar */
  cursor: pointer;
}
.user-square img {
  width: 60%;                /* imagem ocupa todo o quadrado */
  height: 60%;
  object-fit: contain;          /* corta a imagem mantendo proporção */
}

.user-squares {
  width: 60px;                /* largura do quadrado */
  height: 60px;  
  margin-left: 12px;             /* altura do quadrado */
  background-color: #f0f0f0;  /* cor de fundo */
  border-radius: 8px;         /* cantos arredondados */
  border: 1px solid #ddd;     /* borda leve */
  overflow: hidden;            /* para cortar a imagem se precisar */
  cursor: pointer;
}
.user-squares img {
  width: 60%;                /* imagem ocupa todo o quadrado */
  height: 60%;
  object-fit: contain;          /* corta a imagem mantendo proporção */
}

.user-squaress {
  width: 85px;                /* largura do quadrado */
  height: 60px;               /* altura do quadrado */
  background-color: #f0f0f0;  /* cor de fundo */
  border-radius: 8px;         /* cantos arredondados */
  border: 1px solid #ddd;     /* borda leve */
  overflow: hidden;            /* para cortar a imagem se precisar */
  cursor: pointer;
}
.user-squaress img {
  width: 60%;                /* imagem ocupa todo o quadrado */
  height: 60%;
  object-fit: contain;          /* corta a imagem mantendo proporção */
}





.card.border-0.shadow-sm {

  background-color: #5B2C84;
}
.icone-chat {
  width: 23px;   /* largura */
  height: 23px;  /* altura */
  object-fit: contain; /* mantém proporção */
}





.card.border-0.shadow-sm {

  display: flex;
}

.flex-card {
  flex: 1 1 0;        /* mantém o comportamento flex responsivo */
  min-width: 250px;   /* largura mínima */
  max-width: 380px;   /* largura máxima */
  margin-bottom: 45px;   /* abaixa o card em relação aos outros elementos */
  /* opcional: mantém sombra e cantos arredondados */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.mb-0.numero-locais {

  margin-left: 120px;
  color: white;; /* Cor de fundo (pode mudar) */
  font-size: 20px;
}

.mb-0.text-secondary {

  font-size: 20px;
  font-weight: bold;
}


.card.shadow-sm.border-0 {

  width: 500px;
  background-color: #321153;
}

.text-center.text-secondary.small.mt-3.mb-0 {

  font-size: 15px;
}

.text-center.fw-bold.mb-4 {

  position: relative;

  bottom: 30px;
}

.img.d-inline-flex.align-items-center.justify-content-center.rounded-3.mb-3 {

  width: 40px;
}


/* === CONTAINER GERAL === */
.user-chat-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #160F37;
  border-radius: 12px;
  padding: 40px;
  width: 600px;
  margin: 50px auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* === PERFIL DO USUÁRIO === */
.user-profile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 30px;
}

/* Avatar circular */
.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #A345F5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Nome e status */
.user-details {
  margin-left: 20px;
}

.user-name {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.user-status {
  color: #b9b9c8;
  font-size: 0.95rem;
}

/* === CARD DE CHAT === */
.chat-card {
  display: flex;
  margin-top: 20px;
  width: 100%;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}


/* Conteúdo interno */
.chat-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

/* Informações do chat */
.chat-info {
  flex: 1;
}

.chat-title {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin-bottom: 0.25rem;
}

.chat-subtitle {
  background-color: #fff !important; /* fundo branco */
  color: #000 !important;             /* texto preto */
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 500;
  width: 220%;
  box-sizing: border-box;
  z-index: 10;
  position: relative;
}

.chat-subtitle-preto {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #ccc;
}



#nome-exibicao {

  color: rgb(0, 0, 0);
}


#nome-usuario {

  color: rgb(255, 255, 255);
}

.chat-user-email {
  display: none;
  font-weight: 600;
}

/* Ícone */
.chat-icon-box {
  width: 68px;
  height: 60px;
  background-color: #23073B;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

/* === RESPONSIVIDADE === */
@media (max-width: 600px) {
  .user-chat-container {
    width: 95%;
    padding: 25px;
  }

  .user-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .chat-card {
    width: 100%;
  }

  .chat-title {
    font-size: 22px;
  }

  .chat-subtitle {
    font-size: 14px;
  }
}

.user-chat-container {

  background-color: #0e0a1f;
}


.chat-info-secundario {
  display: flex;
  flex-direction: column; /* garante que o título fique acima */
  align-items: flex-start; /* alinha à esquerda */
  gap: 6px; /* espaço entre os elementos */
  position: relative;
  right: 130px;
}

.chat-title-secundario {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1px; 
  position: relative;
  right: 17px;
}

.chat-subtitle-secundario {
  background-color: #fff;
  color: #000;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 500;
  width: 254%;
  height: 200px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  line-height: 1.4;
  resize: none;            
  overflow: hidden;          
  min-height: 45px;           
  transition: height 0.2s ease;
  position: relative;
  right: 17px;
}
  

.chat-subtitle-secundario::placeholder {
  color: #888;
  text-align: left;
  vertical-align: middle;
  line-height: normal;
}

.chat-subtitle-secundario {
  display: flex;
  align-items: flex-start;
  height: 60px; 
}

.chat-subtitle-preto-secundario {
  background-color: #fff !important;
  color: #000 !important;
}








.chat-info-terciario {
  display: flex;
  flex-direction: column; /* garante que o título fique acima */
  align-items: flex-start; /* alinha à esquerda */
  gap: 6px; /* espaço entre os elementos */
  position: relative;
  right: 130px;
}

.chat-title-terciario {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1px; 
  position: relative;
  right: 17px;
}

.chat-subtitle-terciario {
  background-color: #fff;
  color: #000;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 500;
  width: 254%;
  height: 200px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  line-height: 1.4;
  resize: none;            
  overflow: hidden;          
  min-height: 45px;           
  transition: height 0.2s ease;
  position: relative;
  right: 17px;
}
  

.chat-subtitle-terciario::placeholder {
  color: #888;
  text-align: left;
  vertical-align: middle;
  line-height: normal;
}

.chat-subtitle-terciario {
  display: flex;
  align-items: flex-start;
  height: 60px; 
}

.chat-subtitle-preto-terciario {
  background-color: #fff !important;
  color: #000 !important;
}


.botao_salvarPerfil {

  height: 50px;
  width: 160px;
  background-color: #933ede;
  color: white;
  font-size: 20px;
  border: none;
  border-radius: 12px;

}

/* ===== Conversas / Itens da lista (mantém o que você já tem) ===== */
.conv-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;cursor:pointer}
.conv-item:hover{background:#201a33}
.conv-item .avatar{width:28px;height:28px;border-radius:50%;background:#4c45cf;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:12px}

/* ===== Mensagens ===== */
.msg{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
  max-width: 100%;
  padding: 0 46px; /* espaço lateral para o chip fora do balão */
}
.msg.me{ align-items: flex-end; }

/* balão pílula (como no print) */
.msg .bubble{
  max-width: 72%;
  display: inline-block;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, #7b3ff3 0%, #6c51ff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12) inset, 0 2px 8px rgba(0,0,0,.18);
}
.msg:not(.me) .bubble{
  background: #6a59f0;
}

/* chip com iniciais fora do balão */
.msg .msg-chip{
  position: absolute;
  top: -2px;
  left: 0;
  transform: translateX(-40px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6c51ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.msg.me .msg-chip{
  left: auto;
  right: 0;
  transform: translateX(40px);
}

/* linha de metadados em uma linha, sem quebra */
.msg .meta-line{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a1a6b3;
  padding: 0 4px;
  white-space: nowrap;
}
.msg.me .meta-line{ justify-content: flex-end; }
.msg .meta-line .sender{ color: #e5e7f0; font-weight: 500; }
.msg .meta-line .dot{ opacity: .6; }
