
/*new*/
.full-dm-container {
  width: 1050px;
  height: 520px; /* Altura da tela */
  margin: 0 auto;
  background: rgba(20, 20, 20, 0.514);
  backdrop-filter: blur(8px);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  display: flex;
  margin-left: 250px;
  margin-top: 80px;
}

.users-dms {
  background: rgba(20, 20, 20, 0.247);
  backdrop-filter: blur(8px);
  width: 320px !important;
  overflow-x: none !important;
  border-radius: 12px;
  display: flex;          /* Ativa flex dentro */
  flex-direction: column; /* Empilha os itens verticalmente */
  border-right: 1px solid #333;
}

.users-dms h1 {
  padding: 5px 10px;
  color: #999;
}

.buscar-chats {
  background: rgba(20, 20, 20, 0.6);
  border-radius: 8px;
  max-width: 600px; /* ajuste conforme precisar */
  gap: 10px;
  border: 1px solid #363636;
  background: #474747; /* Quase preto, mas não absoluto */
  display: flex;
  align-items: center;
  border: 1px solid #363636; /* Cinza quase preto pra separar do fundo */
  box-shadow: inset 0 8px 8px -7px rgba(0, 0, 0, 0.644); /* Sombra interna clara no modo dark */
  padding: 5px 15px;
  border: none;
  color: #dbdbdb;
  font-size: 16px;
  outline: none;
  margin: 8px;
}

.buscar-chats:focus-within {
  border: 1px solid #4A90E2;
  border-color: #4A90E2;
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
}


.recents-users {
  display: flex;
  flex-direction: column;   /* empilha itens na vertical */
  overflow-y: auto;         /* scroll vertical */
  overflow-x: hidden;
  max-width: 246px;
}

.recents-users button {
  display: flex;             /* Coloca imagem e texto lado a lado */
  align-items: center;       /* Alinha verticalmente */
  gap: 8px;                  /* Espaço entre imagem e texto */
  padding: 12px 14px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
}


.recents-users button img {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Foto redonda */
  object-fit: cover; /* Ajusta imagem ao tamanho */
}

.recents-users button:hover {
  background-color: #303030;
}

.recents-users button:focus-within {
  background-color: #474747;
}

.user-selected {
  background-color: transparent;
  display: flex;           /* volta a ser flex aqui */
  flex-direction: row;     /* itens lado a lado dentro do interno-do-interno */
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #333;
  width: 800px;
  border-top-right-radius: 12px;
}


.user-selected p {
  padding: 10px;
  font-size: 18px;
  padding-top: 15px;
  word-break: break-all; /* força quebra de palavra */
  white-space: normal;   /* permite quebra de linha */
  max-width: 300px;     /* limita largura do username */
  overflow-wrap: break-word;
}

.user-selected span {
  color: #999;
}

.selected-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: normal;
}

.selected-right button {
  background-color: #00000000;
  padding: 10px;
  font-size: 18px;
  border: none;
  margin: 4px;
  color: #999;
  transition: color 0.2s ease;
}
.selected-right button:hover {
  background-color: #00000000;
  padding: 10px;
  font-size: 18px;
  border: none;
  margin: 4px;
  color: #cacaca;
}



.chat-area {
  display: flex;           /* volta a ser flex aqui */
  flex-direction: row;  
}

.user-selected img {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Foto redonda */
  object-fit: cover; /* Ajusta imagem ao tamanho */
}

.msg-area {
  background: rgba(20, 20, 20, 0.6);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: none;
  border-top-left-radius: 16px;
  max-width: 600px; /* ajuste conforme precisar */
  gap: 10px;
  border: 1px solid #2a2a2a;
  background: #474747; /* Quase preto, mas não absoluto */
  display: flex;
  align-items: center;
  border: 1px solid #363636; /* Cinza quase preto pra separar do fundo */
  box-shadow: inset 0 8px 8px -7px rgba(0, 0, 0, 0.644); /* Sombra interna clara no modo dark */
  padding: 15px 0px;
  padding-right: 200px;
  padding-left: 10px;
  font-size: 16px;
  width: 100vh;
  height: auto;
}

.msg-area:focus-within {
  border: 1px solid #4A90E2;
  border-color: #4A90E2;
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
  outline: none;
}


.send-area button{
  background-color: #4A90E2;
  border: 1px solid #4A90E2;
  padding: 0px 20px;
  border-bottom-right-radius: 16px;
  border-top-right-radius: 16px;
  color: #fff;
  transition: background-color 0.3s;
}

.send-area button:hover {
  background-color: #007bff;
  border-color: #007bff;
  outline: none;
}

.send-area {
  display: flex;           /* volta a ser flex aqui */
  flex-direction: row;     /* itens lado a lado dentro do interno-do-interno */
  padding: 20px 40px;
  margin-top: auto;       /* “empurra” o elemento para baixo */
}

.chat-area {
  height: 357px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 1; /* se estiver usando flexbox */
  max-height: 400px; /* altura máxima visível */
  overflow-y: auto; /* ativa o scroll vertical */
  overflow-x: hidden; /* ativa o scroll vertical */
}

.message {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-top: 10px;
  margin-bottom: 10px;
}

.message p {
  margin: 0;
}

.message .time {
  font-size: 10px;
  color: #666;
  position: absolute;
  bottom: -16px;
  right: 15px;
}

.message.received {
  background-color: #2c2c2c;
  color: #cacaca;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.message.sent {
  background-color: #5c5c5c;
  color: #cacaca;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}


.recents-users::-webkit-scrollbar {
  width: 12px;
}

.recents-users::-webkit-scrollbar-track {
  background: transparent; /* trilho invisível */
}

.recents-users::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6); /* azul suave */
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.recents-users::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.9);
    background-clip: content-box;
}

.chat-area::-webkit-scrollbar {
  width: 12px;
}

.chat-area::-webkit-scrollbar-track {
  background: transparent; /* trilho invisível */
}

.chat-area::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6); /* azul suave */
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.chat-area::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.9);
    background-clip: content-box;
}

/* Modal de Nova Conversa */
.new-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid #333;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 25px;
}

.new-chat-input {
    width: 100%;
    padding: 15px;
    background: #474747;
    border: 1px solid #363636;
    border-radius: 12px;
    color: #dbdbdb;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.new-chat-input:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

.new-chat-input::placeholder {
    color: #999;
}

.user-suggestions {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.8);
    display: none;
}

.user-suggestions.visible {
    display: block;
}

.user-suggestion {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
    color: #dbdbdb;
}

.user-suggestion:last-child {
    border-bottom: none;
}

.user-suggestion:hover {
    background: rgba(74, 144, 226, 0.2);
}

.user-suggestion img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel, .btn-start-chat {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-cancel {
    background: rgba(108, 117, 125, 0.2);
    color: #ccc;
    border: 1px solid #555;
}

.btn-cancel:hover {
    background: rgba(108, 117, 125, 0.4);
    color: #fff;
}

.btn-start-chat {
    background: #4A90E2;
    color: white;
    border: 1px solid #4A90E2;
}

.btn-start-chat:hover {
    background: #007bff;
    border-color: #007bff;
}

.btn-start-chat:disabled {
    background: #555;
    border-color: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Botão Flutuante */
.new-chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A90E2, #007bff);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.6);
}

.new-chat-fab:active {
    transform: scale(0.95);
}

/* Scrollbar para sugestões */
.user-suggestions::-webkit-scrollbar {
    width: 8px;
}

.user-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.user-suggestions::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.6);
    border-radius: 10px;
}

.user-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.9);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Topo do perfil fixo */
.profile-header {
  display: flex;
  padding: 30px;
  gap: 20px;
  background: rgba(20, 20, 20, 0.61);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 0;
}

/* Foto de perfil */
.profile-pic-block {
  flex-shrink: 0;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
}

/* Info do perfil */
.profile-info-block {
  flex-grow: 1;
}

.name-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px black;
}

.pronouns {
  font-size: 14px;
  color: #aaa;
  padding: 2px 8px;
  border-radius: 6px;
  text-shadow: 2px 2px 4px black;
}


.handle {
  margin-top: 6px;
  font-size: 14px;
  color: #aaa;
  text-shadow: 2px 2px 4px black;
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 14px;
  color: #ccc;
  text-shadow: 2px 2px 4px black;
}

.profile-stats strong {
  color: #4A90E2;
}

.action-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}


.action-buttons button {
  background: transparent;
  color: #4A90E2;
  border: 1px solid #4A90E2;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  font-size: 16px;
  backdrop-filter: blur(8px);
  white-space: normal; /* permite quebra de linha */
  word-break: break-word; /* força quebra se palavra for muito grande */
  max-width: 100%; /* impede overflow */
  text-align: center;
}

.action-buttons button:hover {
  background-color: #4A90E2;
  color: #fff;
}

/* Corpo do perfil */
.profile-body {
  flex: 1;
  display: flex;
  overflow: hidden; /* Impede que o mural ultrapasse */
}

/* Sidebar (menu à esquerda) */
.profile-menu {
  width: 180px;
  height: 380px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #333;
  background: #141414a1;
  backdrop-filter: blur(8px);
  top: 140px; /* Alinha abaixo do header */
  align-self: flex-start;
}


.menu-item {
  background: transparent;
  border-bottom: 1px solid #2b2b2b;
  border-top: none;
  border-left: none;
  border-right: none;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition: 0.3s;
  font-size: 21px;
  display: flex;
}

.menu-item i {
  display: none;
}

.menu-item:hover {
  background-color: #4A90E2;
  color: #fff;
}

/* Conteúdo principal que rola */
.mural-tab {
  flex: 1;
  background: rgba(20, 20, 20, 0.582);
  backdrop-filter: blur(8px);
  overflow-y: auto; /* Scroll só nos posts */
  padding-right: 10px;
  padding-left: 10px;
  height: 100%;
  
}
/* Scroll estilizado */
.mural-tab::-webkit-scrollbar {
  width: 12px;
}

.mural-tab::-webkit-scrollbar-track {
  background: transparent; /* trilho invisível */
}

.mural-tab::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6); /* azul suave */
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.mural-tab::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.9);
    background-clip: content-box;
}

.mural-tab h3 {
  text-align: center;
  background-color: #00000000;
  padding: 20px;
  border-bottom: 1px solid #2c2c2c;
  margin-bottom: 10px;
}






.amigos-tab {
  flex: 1;
  background: rgba(20, 20, 20, 0.582);
  backdrop-filter: blur(8px);
  overflow-y: auto; /* Scroll só nos posts */
  padding-right: 10px;
  padding-left: 10px;
  height: 100%;
  
}
/* Scroll estilizado */
.amigos-tab::-webkit-scrollbar {
  width: 12px;
}

.amigos-tab::-webkit-scrollbar-track {
  background: transparent; /* trilho invisível */
}

.amigos-tab::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6); /* azul suave */
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.amigos-tab::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.9);
    background-clip: content-box;
}

.amigos-tab h3 {
  text-align: center;
  background-color: #00000000;
  padding: 20px;
  border-bottom: 1px solid #2c2c2c;
  margin-bottom: 10px;
}

/* Status box */
.status-box {
  background: #2c2c2c;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 5px solid #4A90E2;
  margin: 20px;
}

.status-text {
  font-size: 15px;
  color: #eee;
  margin-top: 4px;
}

/* Grid dos posts */
.mural-masonry {
  column-count: 3; /* quantas colunas no desktop */
  column-gap: 20px;
  padding: 20px;
}

.post-card {
  display: inline-block; /* importante para colunas */
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid; /* impede quebra do card entre colunas */
}

/* Responsivo */
@media (max-width: 900px) {
  .mural-masonry {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .mural-masonry {
    column-count: 1;
  }
}
.mural-masonry {
  column-count: 2; /* sempre 2 colunas */
  column-gap: 20px;
  padding: 20px;
}

.post-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid; /* evita quebra entre colunas */
}


.post-card {
  border-radius: 10px;
  min-height: 130px;
  background: rgba(20, 20, 20, 0.582);
  backdrop-filter: blur(8px);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  padding: 20px;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-post-info {
  display: flex;
  align-items: center;
}

.user-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
}

.username {
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px black;
}

.dots {
  font-size: 20px;
  color: #cacaca;
  cursor: pointer;
}

.post-content p {
  margin: 12px 0;
  color: #cacaca;
  font-size: 15px;
}

.post-image {
  width: 100%;
  height: 300px; /* você pode ajustar */
  border-radius: 10px;
  object-fit: cover;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-actions button {
  background: none;
  border: none;
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
  margin-right: 10px;
}

.post-actions button:hover {
  color: #e91e40;
}

.post-date {
  font-size: 12px;
  color: #999;
}


/* Tabs */
.tab {
  display: none;
}

.tab.active {
  display: block;
}


.visao-tab {
  flex: 1;
  background: rgba(20, 20, 20, 0.582);
  backdrop-filter: blur(8px);
  overflow-y: auto; /* Scroll só nos posts */
  padding-right: 10px;
  padding-left: 10px;
  height: 100%;
  
}
/* Scroll estilizado */
.visao-tab::-webkit-scrollbar {
  width: 12px;
}

.visao-tab::-webkit-scrollbar-track {
  background: transparent; /* trilho invisível */
}

.visao-tab::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6); /* azul suave */
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.visao-tab::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.9);
    background-clip: content-box;
}

.visao-tab h3 {
  text-align: center;
  background-color: #00000000;
  padding: 20px;
  border-bottom: 1px solid #2c2c2c;
  margin-bottom: 10px;
}

.gostos-tab {
  flex: 1;
  background: rgba(20, 20, 20, 0.582);
  backdrop-filter: blur(8px);
  overflow-y: auto; /* Scroll só nos posts */
  padding-right: 10px;
  padding-left: 10px;
  height: 100%;
  
}
/* Scroll estilizado */
.gostos-tab::-webkit-scrollbar {
  width: 12px;
}

.gostos-tab::-webkit-scrollbar-track {
  background: transparent; /* trilho invisível */
}

.gostos-tab::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6); /* azul suave */
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.gostos-tab::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.9);
    background-clip: content-box;
}

.gostos-tab h3 {
  text-align: center;
  background-color: #00000000;
  padding: 20px;
  border-bottom: 1px solid #2c2c2c;
  margin-bottom: 10px;
}

.deps-tab {
  flex: 1;
  background: rgba(20, 20, 20, 0.582);
  backdrop-filter: blur(8px);
  overflow-y: auto; /* Scroll só nos posts */
  padding-right: 10px;
  padding-left: 10px;
  height: 100%;
    position: relative; /* Importante para que o botão se posicione dentro desta área */
  
}
/* Scroll estilizado */
.deps-tab::-webkit-scrollbar {
  width: 12px;
}

.deps-tab::-webkit-scrollbar-track {
  background: transparent; /* trilho invisível */
}

.deps-tab::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6); /* azul suave */
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.deps-tab::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.9);
    background-clip: content-box;
}

.deps-tab h3 {
  text-align: center;
  background-color: #00000000;
  padding: 20px;
  border-bottom: 1px solid #2c2c2c;
  margin-bottom: 10px;
}

.links-tab {
  flex: 1;
  background: rgba(20, 20, 20, 0.582);
  backdrop-filter: blur(8px);
  overflow-y: auto; /* Scroll só nos posts */
  padding-right: 10px;
  padding-left: 10px;
  height: 100%;
  
}
/* Scroll estilizado */
.links-tab::-webkit-scrollbar {
  width: 12px;
}

.links-tab::-webkit-scrollbar-track {
  background: transparent; /* trilho invisível */
}

.links-tab::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6); /* azul suave */
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.links-tab::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.9);
    background-clip: content-box;
}

.links-tab h3 {
  text-align: center;
  background-color: #00000000;
  padding: 20px;
  border-bottom: 1px solid #2c2c2c;
  margin-bottom: 10px;
}

.about-box {
  padding: 20px 10px;
  margin-bottom: 10px;
  background: rgba(20, 20, 20, 0.582);
  backdrop-filter: blur(8px);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.about-container {
  padding: 5px;
}

.link-box {
  background-color: #4A90E2;
  padding: 20px 10px;
  margin-bottom: 10px;
  background: rgba(20, 20, 20, 0.582);
  backdrop-filter: blur(8px);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  
}

.link-box a {
  color: #aaa;
  text-decoration: none;
  padding: 20px;
  display: block;  
}
.link-box a:hover {
  color: #aaa;
  text-decoration: underline;
  transition: 0.3s;
}


#searchResults {
  position: fixed;
  top: 60px; /* ajuste baseado na altura da sua navbar */
  left: 33%;
  transform: translateX(-50%);
  width: 320px;
  background: rgba(20, 20, 20, 0.61);
  backdrop-filter: blur(8px);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  z-index: 9999;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}
#searchResults::-webkit-scrollbar {
        display: none;
  }

#searchResults.visible {
  display: block;
}

#searchResults li {
  padding: 12px 16px;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: background 0.2s ease;
}

#searchResults li:hover {
  background: rgba(20, 20, 20, 0.747);
  color: #007bff;
  backdrop-filter: blur(22px);
}













/* Estilos adicionais para o sistema de mensagens */

/* Botão de chat ativo */
.recents-users button.active {
    background-color: #4A90E2 !important;
    color: #fff !important;
}

.recents-users button.active:hover {
    background-color: #007bff !important;
}

/* Mensagens do lado direito (enviadas) */
.message.sent {
    align-self: flex-end;
    background-color: #4A90E2;
    color: #fff;
    border-bottom-right-radius: 5px;
    margin-left: auto;
    max-width: 70%;
}

/* Mensagens do lado esquerdo (recebidas) */
.message.received {
    align-self: flex-start;
    background-color: #2c2c2c;
    color: #cacaca;
    border-bottom-left-radius: 5px;
    margin-right: auto;
    max-width: 70%;
}

/* Container de mensagens deve ser flex column */
.chat-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Estilo para quando não há chat selecionado */
.no-chat-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #999;
}

.no-chat-selected h3 {
    color: #ccc;
    margin-bottom: 10px;
}

/* Mensagem de boas-vindas */
.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #999;
}

.welcome-message h3 {
    color: #ccc;
    margin-bottom: 10px;
}

/* Contador de caracteres para o input */
.msg-area {
    color: #dbdbdb;
    outline: none;
    border: none;
}

.msg-area::placeholder {
    color: #999;
}

/* Estado de carregamento */
.loading-chats {
    padding: 20px;
    text-align: center;
    color: #999;
}

.loading-chats::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #4A90E2;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Melhorias no layout das mensagens */
.message {
    position: relative;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.message p {
    margin: 0;
    padding: 0;
}

.message .time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.message.sent .time {
    text-align: right;
}

.message.received .time {
    text-align: left;
}

/* Scroll suave para área de chat */
.chat-area {
    scroll-behavior: smooth;
}

/* Indicador de digitação (para futuras implementações) */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #2c2c2c;
    border-radius: 20px;
    margin: 10px 0;
    max-width: 80px;
    align-self: flex-start;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    } 
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 1200px) {
    .full-dm-container {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 900px) {
    .full-dm-container {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        height: 70vh;
    }
    
    .users-dms {
        width: 280px;
    }
}

@media (max-width: 600px) {
    .full-dm-container {
        flex-direction: column;
        width: 95%;
        height: 80vh;
    }
    
    .users-dms {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .chat-area {
        height: 200px;
    }
    
    .message {
        max-width: 85%;
    }
}

/* Estados de erro */
.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin: 10px;
    text-align: center;
}

.success-message {
    background-color: #2ecc71;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin: 10px;
    text-align: center;
}

/* Animações suaves */
.message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botão de enviar desabilitado */
.send-area button:disabled {
    background-color: #666;
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Indicador de mensagem não lida (para futuras implementações) */
.chat-button.unread::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #4A90E2;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}

.chat-button {
    position: relative;
}

/* Melhor visualização do status online/offline removido */
.user-selected span {
    display: none; /* Remove o indicador de online/offline */
}

.info-conversa {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.last-message {
  font-size: 14px;
  color: #bbb;
  margin-top: 2px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.last-msg-time {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
  white-space: nowrap;
}













.foto-perfil-lista {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.info-conversa {
  display: flex;
  flex-direction: column;
}

.time {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 0px;
}

#msg-context-menu {
  display: none;
  position: absolute;
  z-index: 9999;
  background: rgba(20, 20, 20, 0.795);
  backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0008;
  padding: 8px 0;
  min-width: 120px;
  font-family: inherit;
}

#msg-context-menu .menu-item {
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1em;
  user-select: none;
  border:none;
}

#msg-context-menu .menu-item:hover {
  background: #4A90E2;
  color: #fff;
}

.chat-search-results {
  position: absolute;
  top: 170px; /* ajuste conforme o layout */
  left: 250px; /* ajuste conforme o layout */
  width: 250px;
  background: rgba(30,30,30,0.98);
  border: 1px solid #333;
  border-radius: 10px;
  z-index: 100;
  box-shadow: 0 8px 24px #000a;
  display: none;
  max-height: 350px;
  overflow-y: auto;
}
.chat-search-results::-webkit-scrollbar {
  width: 12px;
}

.chat-search-results::-webkit-scrollbar-track {
      background: transparent;
}

.chat-search-results::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.6); /* azul suave */
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.chat-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.9);
    background-clip: content-box;
}

.chat-search-results.visible {
  display: block;
}
.chat-search-results .chat-result {
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-search-results .chat-result:last-child {
  border-bottom: none;
}
.chat-search-results .chat-result:hover {
  background: #222;
}
.chat-search-results .chat-result img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}


.chat-area {
  max-width: 800px
}