/* ========================= Global ========================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1D2125;
  color: white;
  height: 100vh;
  /* já cobre o auto + ajuste posterior */
  overflow: hidden;
  /* impede barra geral por padrão */
  padding-bottom: 10px;
}

/* INDEX: rolagem só no container interno */
body.index-page .main-content {
  overflow-y: auto;
  height: calc(100vh - 60px);
  /* ajuste conforme altura do header */
  padding-right: 8px;
  /* evita corte de conteúdo pela barra de rolagem */
}

/* QUADRO: rolagem normal geral */
body.quadro-page {
  overflow-x: auto;
  /* permite rolagem horizontal */
  overflow-y: hidden;
  /* impede rolagem vertical */
  padding-right: 8px;
  /* evita corte de conteúdo pela barra de rolagem */
  background: url("../Media/ImagensCards/background-quadro2.jpg")

}

/* ============================================================= */
/* ========================= INDEX.PHP ========================= */
/* ============================================================= */

/* ========================= HEADER ========================= */

/* Top Header */
.top-header {
  height: 60px;
  background-color: #1D2125;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

/* Logos e ícones */
.logo-azon,
.iconeUser {
  height: 25px;
  width: auto;
  object-fit: contain;
}

.logo-azon {
  height: 60px;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.header-nav li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.header-nav li a.active {
  background-color: #fff;
  color: #111;
  font-weight: bold;
}

.header-user {
  background-color: #111;
  height: 100%;
  color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.user-icon {
  font-size: 16px;
}

.arrow-down {
  font-size: 10px;
  margin-left: 5px;
}

.header-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer
}

.header-user .user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #222;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  min-width: 140px;
  z-index: 50
}

.header-user .user-menu li {
  padding: .6rem .8rem;
  color: #ddd
}

.header-user .user-menu li:hover {
  background: #2e2e2e
}

.header-user.open .user-menu {
  display: block
}



/* ========================= SIDEBAR ========================= */

.layout {
  display: flex;
  height: calc(100vh - 60px);
  /* alinhado ao header real */
  margin-top: 60px;
}

.sidebar {
  width: 240px;
  background-color: #1D2125;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  border-right: 1px solid #1a1a1a;
}

.sidebar h2 {
  font-size: 14px;
  color: #aaa;
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  color: #fff;
}

.sidebar-list li {
  margin: 10px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.add-area-btn {
  background-color: #1490cd;
  color: #fff;
  border: none;
  font-size: 20px;
  padding: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-area-btn:hover {
  background-color: #1a1a1a;
  color: #fff
}




/* ========================= MAIN ========================= */

/* Main Content */
.main-content {
  flex: 1;
  padding: 30px;
  display: flex;
  /* vira flex column */
  flex-direction: column;
  overflow: hidden;
  /* tira o scroll daqui */
  margin-bottom: 40px;
}

#areas-container {
  margin-bottom: 30px;
}

.workspace-group {
  margin-bottom: 25px;
}

.workspace-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #fff;
}

.actions button {
  margin-left: 10px;
  background-color: #2d2d3d;
  border: none;
  color: #ccc;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.actions .btn-update {
  background-color: #1490cd;
  color: #fff;
}

.top-bar {
  /* ou o container onde está a div .actions */
  display: flex;
  justify-content: flex-end;
  /* empurra o bloco actions para direita */
  align-items: center;
  width: 100%;
}

.actions {
  display: flex;
  justify-content: flex-end;
  /* já tinha */
  align-items: center;
  gap: 10px;
  margin-left: auto;
  /* força ir para a direita dentro do flex */
  margin-right: 0%;
  /* opcional */
}

@media (min-width: 1300px) {
  .actions {
    margin-right: 10%;
    /* opcional */
  }
}




/* Boards & Cards */
.board-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.board-card,
.card-financeiro,
.card-juridico,
.card-marketing,
.card-networks,
.card-projetos,
.card-ti {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.board-card {
  background-color: #292939;
  width: 200px;
  height: 90px;
  padding: 10px;
  font-weight: bold;
  color: white;
  align-items: flex-end;
}

.board-card:hover,
.card-financeiro:hover,
.card-juridico:hover,
.card-marketing:hover,
.card-networks:hover,
.card-projetos:hover,
.card-ti:hover {
  transform: scale(1.05);
}

.card-financeiro {
  background-image: url('Media/ImagensCards/financeiro.jpg');
}

.card-juridico {
  background-image: url('Media/ImagensCards/juridico.jpg');
}

.card-marketing {
  background-image: url('Media/ImagensCards/marketing.jpg');
}

.card-networks {
  background-image: url('Media/ImagensCards/networks.jpeg');
}

.card-projetos {
  background-image: url('Media/ImagensCards/projetos.jpeg');
}

.card-ti {
  background-image: url('Media/ImagensCards/ti.jpg');
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  z-index: 0;
}

.card-content {
  z-index: 1;
  position: relative;
  color: #888;
  text-shadow: 0 1px 3px black;
}

.card-content h3 {
  margin: 0;
  font-size: 18px;
  justify-content: flex-end;
  color: #444;
}

.icone-card {
  height: 25px;
  width: auto;
}

/* cards na home */
.board-card.quadro-carregado {
  background: #f6f6f6;
  /* fundo pedido */
  color: #111;
  /* texto escuro pra dar contraste */
  width: 200px;
  height: 90px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  display: flex;
  justify-content: center;
  /* centraliza horizontal */
  align-items: center;
  /* centraliza vertical */
  padding: 10px;
  cursor: pointer;
}

.board-card.quadro-carregado .card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* espaço entre ícone e texto */
  text-shadow: none;
}

.board-card.quadro-carregado .card-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.board-card.quadro-carregado .icone-card {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Cartão-botão: Criar novo quadro */
.board-card.card-criar {
  width: 200px;
  height: 90px;
  border-radius: 10px;
  background: #1a1a1a;
  /* fundo escuro do botão */
  color: #444 !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.board-card.card-criar:hover {
  background: #313842;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

.board-card.card-criar .card-content {
  text-shadow: none;
  font-size: 16px;
  font-weight: 600;
}


/* === Centralização real do título mesmo com quebra de linha === */
.board-card.quadro-carregado .card-content {
  /* garante que o container ocupe toda a largura do card */
  width: 100%;
}

.board-card.quadro-carregado .titulo-card {
  /* faz o bloco do título ocupar o espaço disponível ao lado do ícone */
  flex: 1;
  min-width: 0;
  /* permite a quebra dentro do flex item */
  display: flex;
  justify-content: center;
  /* centraliza o h3 dentro do bloco */
}

.board-card.quadro-carregado .titulo-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  /* centraliza cada linha do texto */
  line-height: 1.15;
  word-break: break-word;
  /* evita overflow em palavras grandes */
  /* ou, se preferir quebrar em qualquer ponto: overflow-wrap: anywhere; */
}



/* opcional: ícone em cima, título embaixo */
.board-card.quadro-carregado .card-content {
  display: flex;
  flex-direction: column;
  /* empilha */
  align-items: center;
  justify-content: center;
  gap: 8px;
}




/* Badges */
.badge {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: #1490cd;
  color: #fff;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  line-height: 22px;
}

.badge-orange {
  background-color: #e67e22;
}




/* ========================= MODAL NOVA AREA DE TRABALHO ========================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box {
  background: #111;
  border-radius: 8px;
  padding: 30px;
  width: 420px;
  max-width: 95%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-box h2 {
  margin-top: 0;
  color: #fff;
  font-size: 20px;
}

.modal-box label {
  width: 100%;
  text-align: left;
  font-weight: bold;
  margin-top: 10px;
  color: #aaa;
}

.modal-box input,
.modal-box textarea {
  width: 95%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #fff;
  background-color: #1D2125;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.modal-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-actions .cancelar {
  background-color: #1d1d2f;
  color: #fff;
  font-weight: bold;
}

.modal-actions .cancelar:hover {
  background-color: #aaa;
  color: #111;
}

.modal-actions .salvar {
  background-color: #fff;
  color: #111;
  font-weight: bold;
}

.modal-actions .salvar:hover {
  background-color: #151521;
  color: #fff;
}





/* ========================= MODAL NOVO QUADRO ========================= */

#modalNovoQuadro {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

#modalNovoQuadro .modal-content {
  background: #111;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#modalNovoQuadro h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 20px;
}

#modalNovoQuadro label {
  width: 100%;
  text-align: left;
  font-weight: bold;
  margin-top: 10px;
  color: #aaa;
}

#modalNovoQuadro input {
  width: 95%;
  margin-top: 5px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #1D2125;
  color: #fff;
}

#modalNovoQuadro .modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

#modalNovoQuadro .modal-buttons button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#modalNovoQuadro .modal-buttons .cancelar {
  background-color: #1d1d2f;
  color: #fff;
  font-weight: bold;
}

#modalNovoQuadro .modal-buttons .cancelar:hover {
  background-color: #aaa;
  color: #111;
}

#modalNovoQuadro .modal-buttons .salvar {
  background-color: #fff;
  color: #111;
  font-weight: bold;
}

#modalNovoQuadro .modal-buttons .salvar:hover {
  background-color: #151521;
  color: #fff;
}




.modal-actions.center { justify-content: center; }


/* ============================================================== */
/* ========================= QUADRO.PHP ========================= */
/* ============================================================== */



/* ========================= SUB-HEADER ========================= */

/* Quadros & Lists */
.quadro-header {
  margin-top: 60px;
  padding: 10px 20px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #fff;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.quadro-titulo {
  font-size: 18px;
  color: #333;
  margin: 0;
  line-height: 1;
}

/* título clicável */
.quadro-titulo {
  cursor: text;
}

/* input que substitui o h1 durante a edição */
.input-editar-titulo-quadro {
  font-weight: bold;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  background: #fff;
  min-width: 240px;
}


.nivel-acesso {
  background-color: #1490cd;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}


/* Header do quadro: ações à direita */
.quadro-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botão e menu do header do quadro */
.quadro-menu-container {
  position: relative;
}

.quadro-menu-btn {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  color: #333;
  border-radius: 6px;
  font-weight: bold;
}

.quadro-menu-btn:hover {
  background: #f2f2f2;
}

.quadro-menu {
  display: none;
  position: absolute;
  top: 32px;
  right: 0;
  background: #fff;
  color: #333;
  list-style: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
  padding: 6px 0;
  z-index: 1000;
}

.quadro-menu.show {
  display: block;
}

.quadro-menu li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.quadro-menu li:hover {
  background: #f6f6f6;
}




/* ========================= LISTAS ========================= */

.btn-adicionar-lista {
  background-color: rgba(0, 183, 255, 0.7);
  border: none;
  border-radius: 12px;
  padding: 15px 55px;
  margin-top: 15px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  margin-right: 35vh;
  /* afasta da borda direita */

}

s .btn-adicionar-lista:hover {
  background-color: rgba(0, 110, 255, 0.685);
}

.quadro-main {
  display: flex;
  gap: 12px;
  padding: 15px;
  align-items: flex-start;
  overflow: visible;
  margin-bottom: 240px;
}


.adicionar-lista-wrapper {
  flex: 0 0 272px;
  /* mesmo “tamanho de coluna” da lista/botão */
  display: none;
  /* inicia escondido */
}

.gutter-final-listas {
  flex: 0 0 16px;
}


.form-nova-lista {
  background: #111;
  padding: 12px;
  border-radius: 10px;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-nova-lista input {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #888;
  background: #222;
  color: #fff;
}

.acoes-lista {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acoes-lista button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#btnSalvarLista {
  background-color: #579bff;
  color: white;
}

.cancelar-lista {
  background: none;
  font-size: 18px;
  color: white;
}


.listas-container {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
}

#listas-container {
  align-items: flex-start;
  /* não estica todas juntas */
}

.lista {
  background-color: #1c1c1c;
  border-radius: 8px;
  color: white;
  width: 280px;
  /* largura fixa tipo Trello */
  padding: 10px;
  margin: 0 10px;
  flex-shrink: 0;
  position: relative;

  /* Crescimento e rolagem */
  max-height: calc(100vh - 200px);
  /* altura máxima da tela */
  overflow-y: auto;
  /* cada lista rola de forma independente */
  overflow-x: hidden;
  /* sem rolagem horizontal */
}

.lista .cards-container {
  flex: 1;
  padding: 5px;
}


.lista.dragging {
  opacity: 0.5;
  border: 2px dashed #666;
}


/* Custom Scrollbar */
.lista::-webkit-scrollbar {
  width: 6px;
}

.lista::-webkit-scrollbar-track {
  background: transparent;
}

.lista::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.lista::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.lista-titulo {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 15px;
}

.input-edicao-titulo {
  width: 90%;
  font-size: 16px;
  padding: 4px;
  border: 1px solid #222;
  border-radius: 4px;
  background-color: #1D2125;
  color: #fff;
  font-weight: bold;
}


.adicionar-cartao {
  background: none;
  color: #ccc;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 5px;
}

.adicionar-cartao:hover {
  color: #fff;
}

#listas-container {
  display: flex;
  gap: 12px;
  padding: 15px 12px;
  flex-wrap: nowrap;
  /* Só scroll horizontal aqui: */
  overflow-x: auto;
  overflow-y: hidden;


  margin-top: calc(var(--header-height, 60px) + var(--subheader-height, 60px));
}

/* Botão de adicionar lista dentro do container */
#listas-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  margin-top: calc(var(--header-height, 60px) + var(--subheader-height, 60px));
}

.listas-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}


.btn-adicionar-lista {
  flex: 0 0 272px;
  /* mesmo tamanho de uma lista */
  height: 50px;
  border: none;
  border-radius: 8px;
  background-color: #1ba7de;
  color: #fff;
  cursor: pointer;
  text-align: left;
  padding: 10px;
  font-size: 14px;
}

.btn-adicionar-lista:hover {
  background-color: #0057e7;
}

.lista-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.menu-lista {
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
}

.menu-lista:hover {
  color: #fff;
}

/* Suspended Menu */
.menu-container {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.menu-suspenso {
  position: absolute;
  top: 25px;
  right: 0;
  background-color: #222;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 5px 0;
  list-style: none;
  width: 180px;
  z-index: 9999;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.menu-suspenso.show {
  display: block;
}

.menu-suspenso li {
  padding: 8px 12px;
  cursor: pointer;
  color: #ccc;
}

.menu-suspenso li:hover {
  background-color: #333;
  color: #fff;
}

.lista-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  /* ✅ ISSO AQUI RESOLVE */
}

#listas-container {
  overflow: visible;
  /* ou auto apenas no eixo x */
  position: relative;
}






/* ========================= CARDS/CARTÕES ========================= */

/* Cards within Lists */
.cartoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.cartao {
  background: #222;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #eee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: grab;
  margin-bottom: 10px;
}

.cartao:hover {
  background-color: #2a2a2a;
}

.form-cartao {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.novo-cartao-input {
  resize: none;
  border-radius: 6px;
  padding: 8px;
  font-size: 14px;
  background: #292939;
  border: 1px solid #555;
  color: white;
  min-height: 60px;
  max-width: 93%;
}

.btn-salvar-cartao {
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  width: fit-content;
  background-color: #00a8ff;
  color: white;
}

.btn-cancelar-cartao {
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  width: fit-content;
  background-color: #555;
  color: #ddd;
}





/* ========================= MODAL CARD ========================= */

.modal-cartao {
  display: flex;
  background: #1D2125;
  color: white;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow: auto;
  gap: 30px;
  position: relative;
}

.cartao-coluna-esquerda,
.cartao-coluna-direita {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cartao-coluna-direita {
  background: #151521;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
}

.modal-cartao h2 {
  margin: 0;
  font-size: 24px;
  color: #f0f0f0;
}

.grupo-botoes button,
.grupo-info button,
.grupo-descricao button {
  background: #2d2d3d;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin: 5px 5px 0 0;
}

.grupo-botoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.grupo-botoes .btn-etiqueta {
  background: #00a8ff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grupo-info label,
.grupo-descricao label,
.cartao-coluna-direita label {
  font-weight: bold;
  margin-top: 10px;
  color: #aaa;
}

.status-dropdown {
  background: #2d2d3d;
  color: white;
  border-radius: 6px;
  border: none;
  padding: 6px;
  margin-bottom: 10px;
  width: fit-content;
}

textarea,
input[type="datetime-local"] {
  background: #292939;
  border: 1px solid #555;
  border-radius: 5px;
  color: white;
  padding: 8px;
  width: 100%;
  resize: vertical;
}

.comentario {
  background: #2d2d3d;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 14px;
}

.modal-cartao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.modal-titulo {
  font-size: 22px;
  font-weight: bold;
  color: white;
}

.modal-header-acoes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-menu,
.modal-fechar {
  background: none;
  border: none;
  color: #ccc;
  font-size: 20px;
  cursor: pointer;
}

.modal-menu:hover,
.modal-fechar:hover {
  color: white;
}

.modal-cartao-header {
  width: 100%;
}

.modal-cartao {
  flex-direction: column;
  /* empilha header e corpo */
}

.modal-cartao-body {
  display: flex;
  gap: 30px;
  width: 100%;
}






.btn-etiqueta,
.btn-adicionar-etiqueta,
.btn-data-entrega {
  background: #2d2d3d;
  border: none;
  padding: 16px 28px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-right: 8px;
}

#etiqueta {
  background: #00a8ff;
}

.btn-data-entrega {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-right: 12px;
}

.btn-data-entrega .badge {
  background-color: #f4c542;
  color: #000;
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 6px;
  line-height: 1;
}

.grupo-superior-cartao {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}



.cartao-coluna-direita {
  width: 40%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grupo-botoes-direita {
  display: flex;
  gap: 10px;
}



.btn-checklist,
.btn-anexos {
  background: #2d2d3d;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin: 5px 5px 0 0;


}

.secao-anexos,
.secao-checklist {
  background: #1D2125;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
}

.secao-checklist {
  margin-bottom: 10px;
}

.arquivo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-top: 2px;
  border-radius: 6px;
}

.nome-arquivo {
  flex-grow: 1;
}

.btn-baixar,
.btn-excluir,
.btn-excluir-checklist,
.btn-excluir-item {
  background: transparent;
  color: #fff;
  border: none;
  margin-left: 8px;
  cursor: pointer;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.itens-checklist {
  list-style: none;
  padding-left: 0;
}

.itens-checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 6px;
}

.itens-checklist input[type="checkbox"] {
  margin-right: 8px;
}

.itens-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.itens-checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 6px 10px;
  border-radius: 6px;
}

.itens-checklist li label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
}

.itens-checklist input[type="checkbox"] {
  accent-color: #1ba7de;
  transform: scale(1.2);
}

.btn-excluir-item {
  background: none;
  border: none;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
}

.btn-excluir-item:hover {
  color: #fff;
}

.secao-anexos .titulo-checklist {
  font-size: 15px;
  margin-bottom: 8px;
  display: inline-block;
  color: #f0f0f0;
}

.nome-arquivo {
  font-size: 13px;
  color: #ccc;
}

.secao-checklist .titulo-checklist {
  font-size: 15px;
  margin-bottom: 6px;
  display: inline-block;
  color: #f0f0f0;
}

.titulo-descrição {
  font-size: 13px;
  margin-bottom: 8px;
  display: inline-block;
  color: #f0f0f0;
}

.descricao-view {
  border: 1px solid #444;
  border-radius: 5px;
  padding: 8px;
  cursor: pointer;
  min-height: 40px;
}

/* Descrição salva (renderizada como HTML) — sem borda */
.descricao-view {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}




.descricao-editor textarea {
  width: 100%;
  height: 120px;
  resize: vertical;
  background: #1e1e2e;
  border: 1px solid #555;
  border-radius: 5px;
  color: #fff;
  padding: 8px;
}

.descricao-botoes {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.btn-salvar {
  background-color: #0079bf;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.btn-cancelar {
  background: none;
  color: #ccc;
  border: none;
  cursor: pointer;
}


.descricao-botoes {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.btn-salvar {
  background-color: #007bff;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.btn-cancelar {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
}


.descricao-botoes {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.descricao-botoes .btn-salvar {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.descricao-botoes .btn-cancelar {
  background-color: #ccc;
  color: black;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}


/* ========================= MODAL ETIQUETAS ========================= */

.checklist-header {
  margin-bottom: 0px;
}

.item-checklist-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 6px;
}

.item-checklist-inline input[type="checkbox"] {
  accent-color: #1ba7de;
  transform: scale(1.2);
  border-radius: 6px;
}

.arquivo input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #1ba7de;
  transform: scale(1.2);
  cursor: pointer;
}

/* Estilo customizado para checkbox no estilo moderno */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: none;
  background-color: #292939;
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

input[type="checkbox"]::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: #1ba7de;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

input[type="checkbox"]:checked::before {
  opacity: 1;
}

input[type="checkbox"]::after {
  content: "✓";
  color: white;
  font-size: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

input[type="checkbox"]:checked::after {
  display: block;
}

.icone-anexo {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  object-fit: contain;
}


/* ========================= DESCRIÇÃO ========================= */

/* Editor e placeholder */
#editor-descricao {
  background-color: #1D2125;
  color: #ccc;
  min-height: 120px;
  border-radius: 0 0 8px 8px;
  padding: 10px;
  font-size: 14px;
}

.descricao-placeholder {
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 12px;
  color: #aaa;
  font-size: 14px;
  min-height: 80px;
  background-color: #1D2125;
  cursor: text;
}

/* Linha horizontal gerada por '-----' */
.ql-editor hr.ql-divider,
.descricao-view hr {
  border: 0;
  border-top: 1px solid #6f7a8a;
  margin: 12px 0;
}

/* Quill (toolbar e container) */
.ql-toolbar.ql-snow {
  border-radius: 8px 8px 0 0;
  border: 1px solid #444;
  color: #fff;
}

.ql-toolbar.ql-snow .ql-picker,
.ql-toolbar.ql-snow .ql-picker-label,
.ql-toolbar.ql-snow .ql-picker-options,
.ql-toolbar.ql-snow button {
  color: #fff;
  fill: #fff;
}

.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active {
  color: #fff;
  background-color: #444;
}

.ql-container.ql-snow {
  border-radius: 0 0 8px 8px;
  border: 1px solid #444;
  font-family: var(--ds-font-family-body, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif);
  font-size: 0.875rem;
  color: #ccc;
}

/* remove qualquer hack antigo que empurrava o li */
.ql-container.ql-snow li {
  margin-right: 0 !important;
}

/* =================== LISTAS (Quill + Visualização) =================== */
/* Variáveis de alinhamento fino – “marcador sob a 2ª letra” */
:root {
  --anchor: 1.6ch;
  /* coluna onde o marcador “ancora” */
  --step: 1.6em;
  /* recuo de cada nível */
  --bullet-back: 0.45ch;
  /* puxa só o marcador um pouco à esquerda */
}

/* UL base (editor e visualização): âncora + marcador “inside” */
.ql-editor ul,
.descricao-view ul {
  margin: 0 !important;
  padding-left: var(--anchor) !important;
  /* define a coluna do marcador */
  list-style-position: inside !important;
}

/* LI: hanging indent — texto avança, marcador recua sutilmente */
.ql-editor li,
.descricao-view li {
  padding-left: var(--step) !important;
  text-indent: calc(-1 * var(--bullet-back)) !important;
  margin: 5px 0 !important;
}

/* Níveis do Quill (mantém proporção do recuo) */
.ql-editor li.ql-indent-1 {
  padding-left: calc(var(--step) * 2) !important;
}

.ql-editor li.ql-indent-2 {
  padding-left: calc(var(--step) * 3) !important;
}

.ql-editor li.ql-indent-3 {
  padding-left: calc(var(--step) * 4) !important;
}

.ql-editor li.ql-indent-4 {
  padding-left: calc(var(--step) * 5) !important;
}

/* Marcadores (Trello-like) por nível – listas com bullets */
.ql-editor li[data-list="bullet"] {
  list-style-type: disc;
}

.ql-editor li[data-list="bullet"].ql-indent-1 {
  list-style-type: circle;
}

.ql-editor li[data-list="bullet"].ql-indent-2,
.ql-editor li[data-list="bullet"].ql-indent-3,
.ql-editor li[data-list="bullet"].ql-indent-4,
.ql-editor li[data-list="bullet"].ql-indent-5 {
  list-style-type: square;
}

/* Listas ordenadas (mantém visual clássico) */
.ql-editor li[data-list="ordered"] {
  list-style-type: decimal;
}

.ql-editor li[data-list="ordered"].ql-indent-1 {
  list-style-type: lower-alpha;
}

.ql-editor li[data-list="ordered"].ql-indent-2,
.ql-editor li[data-list="ordered"].ql-indent-3 {
  list-style-type: lower-roman;
}


/* ===== Listas no modo renderizado (descricao-view) ===== */

/* base (mesma âncora usada no editor) */
.descricao-view ul {
  margin: 0 !important;
  padding-left: var(--anchor) !important;
  /* coluna do marcador */
  list-style-position: inside !important;
}

.descricao-view li {
  padding-left: var(--step) !important;
  /* avanço do texto */
  text-indent: calc(-1 * var(--bullet-back)) !important;
  /* puxa o bullet levemente */
  margin: 5px 0 !important;
}

/* níveis vindos do Quill (classes ql-indent-N) */
.descricao-view li.ql-indent-1 {
  padding-left: calc(var(--step) * 2) !important;
}

.descricao-view li.ql-indent-2 {
  padding-left: calc(var(--step) * 3) !important;
}

.descricao-view li.ql-indent-3 {
  padding-left: calc(var(--step) * 4) !important;
}

.descricao-view li.ql-indent-4 {
  padding-left: calc(var(--step) * 5) !important;
}

/* tipos de marcador por nível (igual ao Trello) */
.descricao-view li[data-list="bullet"] {
  list-style-type: disc;
}

.descricao-view li[data-list="bullet"].ql-indent-1 {
  list-style-type: circle;
}

.descricao-view li[data-list="bullet"].ql-indent-2,
.descricao-view li[data-list="bullet"].ql-indent-3,
.descricao-view li[data-list="bullet"].ql-indent-4,
.descricao-view li[data-list="bullet"].ql-indent-5 {
  list-style-type: square;
}

/* listas ordenadas */
.descricao-view li[data-list="ordered"] {
  list-style-type: decimal;
}

.descricao-view li[data-list="ordered"].ql-indent-1 {
  list-style-type: lower-alpha;
}

.descricao-view li[data-list="ordered"].ql-indent-2,
.descricao-view li[data-list="ordered"].ql-indent-3 {
  list-style-type: lower-roman;
}

:root {
  --anchor: 1.6ch;
  /* posição do bullet */
  --step: 1.6em;
  /* recuo de cada nível */
  --bullet-back: 0.45ch;
  /* quanto o bullet recua em relação ao texto */
}



/* ========================= ETIQUETAS ========================= */

.lista-etiquetas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}

.lista-etiquetas label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: white;
}

.lista-etiquetas .etiqueta {
  background-color: #1ba7de;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  color: white;
}

/* ========================= MODAL ETIQUETAS ========================= */

/* Modal Etiquetas */
#modalEtiquetas {
  background-color: rgba(0, 0, 0, 0.6);
  /* fundo escuro ao redor */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  justify-content: center;
  align-items: center;
}

#modalEtiquetas .modal-box {
  background-color: #111;
  max-width: 420px;
  /* limite horizontal */
  width: 90%;
  max-height: 80vh;
  /* limite vertical relativo à tela */
  overflow-y: auto;
  /* ativa rolagem interna */
  padding: 20px;
  border-radius: 10px;
}


#modalEtiquetas .modal-box {
  background-color: #111;
  max-width: 420px;
  width: 90%;
  max-height: 80vh;
  /* limite vertical */
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

/* 🔹 Agora a rolagem fica só dentro da lista */
#modalEtiquetas .lista-etiquetas {
  flex: 1;
  /* ocupa o espaço disponível */
  overflow-y: auto;
  /* ativa rolagem só aqui */
  max-height: 60vh;
  /* limite pra não esmagar botões */
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* Conteúdo do Modal */
#modalEtiquetas .modal-content {
  background-color: #1a1a1a;
  /* fundo do modal */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  max-width: 200px;
  width: 90%;
  color: white;
}

/* Título do modal */
#modalEtiquetas .modal-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #ffffff;
}

/* Lista de etiquetas */
#modalEtiquetas .lista-etiquetas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Cada item com checkbox */
#modalEtiquetas .etiqueta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #1ba7de;
  padding: 10px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
}

/* Checkbox */
#modalEtiquetas .etiqueta-item input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: white;
  background-color: #1ba7de;
}

/* Botão de fechar */
#modalEtiquetas .fechar-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

#modalEtiquetas .modal-box {
  background-color: #1D2125;
}



.btn-adicionar-etiqueta-lista {
  background: none;
  /* sem fundo azul grande */
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  /* alinhado à esquerda */
  font-size: 14px;
  padding: 6px 0;
  /* igual espaçamento dos labels */
}

.btn-adicionar-etiqueta-lista:hover {
  color: #1ba7de;
  background: none;
}


/* Input inline para nova etiqueta no modal de Etiquetas */
#modalEtiquetas .linha-nova-etiqueta {
  display: flex;
  align-items: center;
}

#modalEtiquetas .input-nova-etiqueta {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;

  background: #1D2125;
  color: #fff;
  font-size: 14px;
  margin-left: 5px;
  margin-right: 5px;
}


/* Linha "Check | Etiqueta | X" */
#modalEtiquetas .etiqueta-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  /* check | nome | X */
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}



#modalEtiquetas .btn-remover-etiqueta {
  background: none;
  border: none;
  color: #bbb;
  font-size: 16px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
}

#modalEtiquetas .btn-remover-etiqueta:hover {
  color: #fff;
  background: #262a31;
}

/* Input de edição inline do nome */
#modalEtiquetas .input-editar-etiqueta {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1D2125;
  color: #fff;
  font-size: 14px;
}

/* Chip azul para o nome da etiqueta (modal) */
#modalEtiquetas .etiqueta-nome {
  display: inline-block;
  /* pílula do tamanho do texto */
  background-color: #00a8ff;
  /* azul do projeto */
  color: #fff;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: text;
  /* indica que é editável ao clique */
  line-height: 1;
  /* altura certinha da pílula */
  margin-left: 5px;
  margin-right: 5px;
}

#modalEtiquetas .etiqueta-nome:hover {
  filter: brightness(1.05);
}

/* input que aparece durante a edição (continua escuro) */
#modalEtiquetas .input-editar-etiqueta {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1D2125;
  color: #fff;
  font-size: 14px;
}


/* Alinhamento fino: Check | Etiqueta | X */
#modalEtiquetas .etiqueta-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  /* coluna do check = 22px */
  align-items: center;
  /* centraliza verticalmente tudo */
  gap: 10px;
}

/* Checkbox dentro do modal de etiquetas (zera margens e fixa tamanho) */
#modalEtiquetas .etiqueta-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  /* tira empurrão lateral/vertical */
  align-self: center;
  /* garante centro na célula do grid */
  justify-self: start;
}

/* Pílula azul: vira inline-flex pra centralizar o texto verticalmente */
#modalEtiquetas .etiqueta-nome {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  /* mantém o chip bonito */
  line-height: 1;
  /* altura justinha */
}


/* Compactar espaçamento entre as etiquetas no modal */
#modalEtiquetas .lista-etiquetas {
  gap: 4px;
  /* antes 10px */
  margin: 10px 0;
  /* antes 20px 0 (opcional) */
}

#modalEtiquetas .etiqueta-row {
  padding: 2px 0;
  /* antes 6px 0 */
  gap: 8px;
  /* antes 10px */
}

/* Pílula um pouco mais justa */
#modalEtiquetas .etiqueta-nome {
  padding: 5px 10px;
  /* antes 6px 12px */
}

/* X mais coladinho */
#modalEtiquetas .btn-remover-etiqueta {
  padding: 2px 4px;
  /* antes 4px 6px */
}



/* ========================= MODAL DATA DE ENTREGA ========================= */

#modalDataEntrega input[type="date"],
#modalDataEntrega input[type="time"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: white;
}

#modalDataEntrega .modal-box {
  background-color: #1D2125;
  height: 460px;
}

.seletor-data {
  color: white;
  padding: 10px;
  font-family: sans-serif;
}

.calendario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendario-header button {
  background-color: #1ba7de;
  border: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
}

.calendario-tabela {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.calendario-tabela th,
.calendario-tabela td {
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
}

.calendario-tabela td:hover {
  background-color: #1ba7de;
  color: white;
}

.calendario-tabela .dia-selecionado {
  background-color: #1ba7de;
  color: white;
  font-weight: bold;
}

#horaEntrega {
  background-color: #1a1a1a;
}




#modalChecklist .modal-box {
  background-color: #151521;
}

#modalChecklist .tituloChecklist {
  color: #fff
}

.grupo-usuarios-cartao {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.avatar-usuario {
  background-color: #0062ff;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.btn-add-usuario {
  background-color: #292939;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.btn-add-usuario img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.grupo-usuarios-cartao {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-usuario {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #1ba7de;
}

.btn-add-usuario {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #1e1e2f;
  color: white;
  font-size: 20px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.membros-agrupados {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.avatar-usuario {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #0057e7;
  /* Cor de fundo azul caso a imagem falhe */
  padding: 2px;
}

.btn-adicionar-membro {
  width: 32px;
  height: 32px;
  background-color: #1e1e1e;
  border: none;
  border-radius: 50%;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-adicionar-membro:hover {
  background-color: #333;
}

.modal-membros {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-conteudo {
  background-color: #111;
  color: #fff;
  width: 320px;
  padding: 20px;
  border-radius: 8px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-titulo {
  font-size: 16px;
  font-weight: bold;
}

.btn-fechar {
  background: none;
  border: none;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
}

.input-pesquisa {
  width: 100%;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid #555;
  background-color: #2b2b2b;
  color: #fff;
  border-radius: 4px;
  margin-bottom: 15px;
}


.titulo-lista {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 5px;
}

.lista-membros {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.membro-item {
  display: flex;
  align-items: center;
  background-color: #2b2b2b;
  padding: 8px;
  border-radius: 6px;
}

.avatar-inicial {
  width: 32px;
  height: 32px;
  background-color: #0057e7;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}

.nome-membro {
  color: #fff;
  font-size: 14px;
}

/* Modal de Anexos */
#modalAnexos {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

#modalAnexos .modal-conteudo {
  background-color: #111;
  color: white;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
}

#modalAnexos .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#modalAnexos .modal-body {
  margin-bottom: 20px;
}

.input-anexo {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: #2b2b2b;
  border: 1px solid #555;
  color: white;
  font-size: 14px;
  cursor: pointer;
}


#modalAnexos .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.custom-file-label {
  display: inline-block;
  padding: 10px 16px;
  background-color: #1ba7de;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 10px;
}

.custom-file-label:hover {
  background-color: #007acc;
}

.nome-arquivo {
  display: block;
  margin-top: 5px;
  color: #aaa;
  font-size: 13px;
}

.upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.custom-file-label {
  padding: 10px;
  background-color: #1ba7de;
  color: white;
  border: 1px solid #1ba7de;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}

.custom-file-label:hover {
  background-color: #0057e7;
  border: 1px solid #1ba7de;
}

#nomeArquivoSelecionado {
  color: #ccc;
  font-size: 14px;
  word-break: break-word;
}

.btn-etiqueta {
  background: #00a8ff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin: 4px;
}

#container-etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-etiqueta {
  background: #00a8ff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin: 0;
}

.cartao {
  background: #343434;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #eee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: grab;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cartao.dragging {
  opacity: 0.5;
  transform: rotate(3deg);
}

.cartoes-container {
  min-height: 50px;
}

.cartao.arrastando {
  opacity: 0.5;
  border: 2px dashed #888;
}

.container-destino {
  background: rgba(0, 128, 255, 0.1);
  border: 2px dashed #0080ff;
}

.cartao.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.cartoes-container {
  min-height: 50px;
}

.cartoes-container.dragover {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed #888;
}


.cartao-etiqueta {
  background-color: #00a8ff;
  color: white;
  padding: 2px 8px;
  font-weight: bold;
  border-radius: 4px;
  font-size: 12px;
  width: fit-content;
}

.cartao-titulo {
  font-weight: bold;
  color: #fff;
}

.cartao-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #ccc;
}

.cartao-icones {
  display: flex;
  gap: 10px;
}

.cartao-icones span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icone-footer {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  /* deixa ícone claro no fundo escuro */
}

#text {
  width: 20px;
  height: 20px;
}

.cartao-data {
  display: flex;
  align-items: center;
  gap: 4px;
  /* Espaço entre o ícone e o texto */
  font-size: 12px;
  color: #ccc;
}

.cartao-data img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Contêiner de etiquetas do cartão */
.cartao-etiquetas {
  display: flex;
  flex-wrap: wrap;
  /* permite quebrar linha */
  gap: 6px;
  /* espaço entre as etiquetas */
  margin-bottom: 4px;
}

/* Cada etiqueta */
.cartao-etiqueta {
  background-color: #00a8ff;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  /* impede quebra de texto dentro da etiqueta */
}

.btn-adicionar-item {
  background: #1ba7de;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 7px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
  width: 25%;
  display: block;
  text-align: center;
}

.btn-adicionar-item:hover {
  background: #007acc;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-top: 2px;
  border-radius: 6px;
}

.nome-item {
  flex-grow: 1;
  font-size: 13px;
  color: #aaa;
  /* mantém o tom final */
  display: inline-block;
  /* evita sobrescrita: inline-block é mais específico que block */
}


.msg-checklist {
  color: #ccc;
  font-size: 14px;
  padding: 10px;
  text-align: center;
}


.msg-checklist .btn-adicionar-item {
  color: #ccc;
  font-size: 14px;
  padding: 10px;
  text-align: center;
}

.msg-checklist .btn-adicionar-item:hover {
  background: none;

}

.item input[type="checkbox"]:checked+.nome-item {
  text-decoration: line-through;
  color: #888;
}

.input-editar-item {
  flex-grow: 1;
  background-color: #292939;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 13px;
}

.input-novo-item {
  flex-grow: 1;
  background-color: #292939;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 13px;
  width: 95%;
}



.barra-progresso {
  width: 100%;
  height: 6px;
  background-color: #2d2d3d;
  border-radius: 4px;
  margin: 8px 0;
  position: relative;
}

.barra-progresso .progresso {
  height: 100%;
  width: 0%;
  background-color: #1ba7de;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.barra-progresso .porcentagem {
  position: absolute;
  top: -20px;
  right: 0;
  font-size: 12px;
  color: #ccc;
}


.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.checklist-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-header .porcentagem {
  font-size: 12px;
  color: #ccc;
}

.checklist-header .btn-excluir {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
}

.checklist-header .btn-excluir:hover {
  color: #fff;
}




.icone-checklist.checklist-completo {
  color: #4CAF50;
  /* Verde */
}

.icone-checklist.checklist-completo img {
  filter: brightness(0) saturate(100%) invert(55%) sepia(94%) saturate(450%) hue-rotate(93deg) brightness(94%) contrast(90%);
}


.item-arquivo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2b2b2b;
  padding: 6px 10px;
  margin-top: 5px;
  border-radius: 4px;
  font-size: 14px;
  color: white;
}

.btn-remover-arquivo {
  background: transparent;
  border: none;
  color: #f66;
  cursor: pointer;
  font-size: 16px;
}

.btn-remover-arquivo:hover {
  color: #ff3b3b;
}

.item-arquivo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 5px;
  border-radius: 4px;
  background: #151521;
  color: white;
  font-size: 14px;
}

.btn-remover-arquivo {
  background: transparent;
  border: none;
  color: #f66;
  font-size: 16px;
  cursor: pointer;
}

.btn-remover-arquivo:hover {
  color: #ff3b3b;
}

.membro-item.selected {
  background-color: #1ba7de;
  color: white;
}

.modal-membros .modal-footer {
  margin-top: 15px;
}


.input-editar-titulo {
  font-size: inherit;
  font-weight: bold;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: #fff;
}

#cartaoTituloModal {
  font-weight: bold;
}




.modal-menu-container {
  position: relative;
  display: inline-block;
}

.modal-menu {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.modal-menu-suspenso {
  display: none;
  position: absolute;
  top: 28px;
  right: 30px;
  background-color: #2b2b3c;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 5px 0;
  list-style: none;
  min-width: 120px;
  z-index: 999;
}

.modal-menu-suspenso li {
  padding: 8px 12px;
  cursor: pointer;
  color: white;
  font-size: 14px;
}

.modal-menu-suspenso li:hover {
  background-color: #3a3a4d;
}




/* Estado fechado (placeholder) */
.descricao-placeholder {
  background: transparent;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 12px 14px;
  color: #a8b0bf;
  /* tom claro do placeholder */
  font-size: 14px;
  cursor: text;

  min-height: 100px;

}

/* Quando o editor estiver aberto, já usamos o tema do Quill que você configurou */
#descricao-editor {
  min-height: 160px;
  /* parecido com a 2ª imagem */
}

#descricao-editor {
  min-height: 140px;
}

.descricao-botoes {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}


/* (Você já tem os temas do Quill escuros no CSS) */


.descricao-editor {
  width: 100%;
  min-height: 100px;
  /* altura mínima aumentada */
  resize: vertical;
  /* permite o usuário redimensionar */
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}




/* Quando estiver mostrando a descrição salva (modo view), ocupar 100% sem padding */

#editor-descricao.modo-view .descricao-view {
  display: block;
  width: 100%;
}

.descricao-view {
  width: 100%;

}