body {
      background: #f5f7fa;
      font-family: 'Roboto', sans-serif;
      margin: 0;
      color: #1e293b;
      font-size: 15px;
    }
    .container {
  max-width: 950px;
  margin: 36px auto 0 auto;
  background: #fff;
  box-shadow: 0 6px 24px rgba(60,70,120,.09);
  border-radius: 14px;
  padding: 34px 32px 26px 32px;
  border: 1.5px solid #e2e7f1;
}

    .dashboard-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.btn-ata {
  background: #2463d1;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 20px;
  box-shadow: 0 2px 8px #dbe6fa4a;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .14s;
}
.btn-ata:hover {
  background: #1743a1;
  
}

    h1 {
      font-size: 2.1rem;
      color: #2463d1;
      font-weight: 700;
      letter-spacing: -1px;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 11px;
    }
    .sub { color: #5f6e87; font-size: 1.1rem; margin-bottom: 28px; }
    .cards { display: flex; gap: 20px; margin-bottom: 27px; flex-wrap: wrap; }
    .card {
      background: #f6f8fb; border-radius: 11px; flex: 1;
      min-width: 160px; padding: 16px 15px 11px 15px;
      display: flex; flex-direction: column; box-shadow: 0 1px 7px rgba(60,70,120,.05);
      border: 1.2px solid #e2e7f1; transition: border .16s;
    }
    .card:hover { border: 1.2px solid #2463d1; }
    .card h3 { margin: 0; font-size: 2.0rem; color: #367dfc; font-weight: 700; }
    .card span { color: #8292b8; font-size: 1.00rem; font-weight: 600; margin-top: 7px; display: block; }
    .card.pendentes { border-left: 3px solid #f7c948; }
    .card.concluidas { border-left: 3px solid #36d399; }
    .card.alta { border-left: 3px solid #f64e60; }
    .card.total { border-left: 3px solid #7287fd; }
    .abas { display: flex; gap: 13px; margin: 25px 0 7px 0; }
    .aba {
      padding: 7px 24px; border-radius: 10px; border: none;
      background: #f4f6fa; color: #3872c2; font-weight: 700; font-size: 1rem;
      cursor: pointer; transition: background .16s, color .15s;
      letter-spacing: 0.02em; border: 1.2px solid #e2e7f1;
    }
    .aba.ativa, .aba:hover {
      background: #2463d1; color: #fff; border: 1.2px solid #2463d1;
    }
    .filtros {
      margin: 15px 0 14px 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
      background: #f7f9fc; padding: 9px 13px 8px 13px; border-radius: 8px; border: 1px solid #e2e7f1;
    }
    .filtros input, .filtros select {
      background: #fff; color: #21243b; border-radius: 4px; border: 1px solid #d1dae8;
      font-size: 0.97rem; padding: 5px 10px; outline: none; transition: border .13s;
    }
    .filtros input:focus, .filtros select:focus { border: 1.2px solid #2463d1; }
    .filtros label { color: #5f6e87; font-size: .97rem; margin-right: 4px; }
    .periodos select, .periodos input[type=date] { margin-left: 4px; }

    /* CARD DE PENDÊNCIA */
    .pendencia {
      background: #fff;
      border-radius: 0px;
      padding: 11px 15px 10px 15px;
      margin-bottom: 0px;
      box-shadow: 0 1px 3px rgba(60,70,120,.04);
      border: 1.2px solid #e2e7f1;
      min-height: 49px;
      position: relative;
      display: flex;
      flex-direction: column;
    }
    .linha-header {
       display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  margin-bottom: 12px;
    }

    /* Em dashboard.css, adicione: */
#wa-status.conectado {
  color: green;
}
#wa-status.desconectado {
  color: red;
}

    .header-left {
      display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1;
    }
    .minimal-person { font-size: 1em; color: #5749c6; margin-top: 1px; }
    .nome { font-size: 0.74rem; font-weight: 600; color: #21243b; margin-right: 2px;}
    .minimal-phone { font-size: 1em; color: #c2c2c2; margin-left: 0px; margin-right: 2px;}
    .phone-info { font-size: 0.74rem; color: #3f3f46; margin-right: 7px; font-weight: 500; display: inline-block;}
    .acoes-horizontal {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: 7px;
    }
    .btn-acao {
      background: none;
      border: none;
      cursor: pointer;
      padding: 2px 3px;
      border-radius: 6px;
      font-size: 1.07rem;
      min-width: 23px; min-height: 23px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .13s;
    }
    .btn-acao.btn-concluir {
      background: #36b37e;
      color: #fff;
      font-weight: 600;
      font-size: 0.88rem;
      border-radius: 6px;
      padding: 2px 13px 2px 8px;
      margin-right: 2px;
      display: flex;
      align-items: center;
    }
    .btn-acao.btn-concluir svg {
      margin-right: 6px;
      margin-left: 0;
      width: 1.02em;
      height: 1.02em;
      vertical-align: middle;
      stroke: #fff;
    }
    .btn-acao.btn-concluir:hover {
      background: #21996d;
    }
    .btn-acao.btn-excluir svg {
      stroke: #F54E4E;
      fill: none;
      width: 1.14em;
      height: 1.14em;
    }
    .btn-acao.btn-excluir:hover {
      background: #ffe9ea;
    }
    .btn-acao.btn-editar svg {
      stroke: #9094A7;
      fill: none;
      width: 1.09em;
      height: 1.09em;
    }
    .btn-acao.btn-editar:hover {
      background: #e6eafd;
    }
    .btn-acao.btn-comentario svg {
      stroke: #2463d1;
      fill: none;
      width: 1.09em;
      height: 1.09em;
    }
    .btn-acao.btn-comentario:hover {
      background: #e6eafd;
    }
    .badge-contador {
      background: #2463d1;
      color: #fff;
      border: none;
      border-radius: 999px;
      font-size: 0.66em;
      font-weight: 700;
      padding: 1.5px 6px;
      margin-left: 3px;
      vertical-align: middle;
    }
    .badges {
      display: flex;
      gap: 6px;
      align-items: center;
      margin-left: auto; /* colado à direita */
      margin-right: 0;
    }
    .badge {
      padding: 2px 10px;
      border-radius: 12px;
      font-size: 0.61rem; /* menor */
      font-weight: 600;
      display: inline-block;
      border: 1px solid #dbe1eb;
      background: #f7f9fc;
      color: #4e5b80;
      margin-left: 2px;
    }
    .btn-ata {
  background: #2463d1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.04rem;
  font-weight: 600;
  padding: 8px 22px 8px 14px;
  cursor: pointer;
  box-shadow: 0 2px 7px #c6dbff46;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  
  transition: background .16s, box-shadow .17s;
}
.btn-ata:hover {
  background: #1c4da7;
  box-shadow: 0 4px 16px #b4d0ff4a;
}
    .badge.pendente { background: #fff5d6; color: #c3a71b; border-color: #ffe18b; }
    .badge.concluida { background: #eaffef; color: #30b36b; border-color: #7ee0b1; }
    .badge.alta { background: #fff1f1; color: #e1494e; border-color: #ffd7db; }
    .badge.media { background: #fffbe6; color: #bcae33; border-color: #f3e796; }
    .badge.normal { background: #f7f9fc; color: #4e5b80; border-color: #dbe1eb; }
    .msg {
      font-size: 1.13rem;
  color: #1e293b;
  margin-top: 7px;
  margin-bottom: 19px;  /* Espaço maior abaixo da mensagem */
  font-weight: 300;
  word-break: break-word;
  margin-left: 7px;
    }
    .comentarios-box-membros {
  max-width: 450px !important;
  min-width: 340px;
}

    .data {
      font-size: 0.80rem;
      color: #7b889e;
      margin-top: 1px;
      margin-bottom: 0;
      margin-left: 0;
      display: block;
    }
    .badge-membro {
  background: #e5f0ff;
  color: #2463d1;
  border-color: #b3d2fd;
}

.toast {
  visibility: hidden;
  min-width: 180px;
  margin-left: -90px;
  background: #2463d1;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 13px 25px;
  position: fixed;
  z-index: 3000;
  left: 50%;
  bottom: 35px;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.4s, bottom 0.3s;
  box-shadow: 0 4px 16px #b4d0ff4a;
}
.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 55px;
}

.autocomplete-mencoes {
  position: absolute;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  z-index: 999;
  min-width: 180px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 16px #c8d4f0aa;
  font-size: 1rem;
  margin-top: 2px;
}
.autocomplete-mencoes .mencao-item {
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.autocomplete-mencoes .mencao-item.selected,
.autocomplete-mencoes .mencao-item:hover {
  background: #eef3ff;
}
.input-style {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.btn-azul {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-azul:hover {
  background-color: #0056b3;
}

#lista-membros li {
  cursor: pointer;
  padding: 5px;
  margin-bottom: 4px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cartoes {
  margin-left: 10px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
}

.modal-content input {
  width: 80%;
  padding: 8px;
  margin-bottom: 10px;
}

.modal-content button {
  padding: 8px 12px;
  margin: 5px;
}

.hidden {
  display: none;
}



    /* Comentários */
    .comentarios-modal { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(40,48,60,0.18); display: flex; align-items: center; justify-content: center; z-index: 1002;}
    .comentarios-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(28,40,80,0.16);
  padding: 28px 28px 18px 28px;
  min-width: 340px;
  max-width: 950px; /* <-- igual ao .container do dashboard! */
  width: 100%;
  box-sizing: border-box;
}
    .comentarios-title { color: #2a365d; font-size: 1.13rem; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 7px;}
    .comentario-item { background: #f6f8fc; border-radius: 7px; padding: 8px 12px; margin-bottom: 7px; color: #222; font-size: 0.97rem; font-weight: 500;}
    .close-modal { background: none; border: none; color: #999; font-size: 1.38rem; position: absolute; top: 10px; right: 17px; cursor: pointer;}
    .comentarios-form { display: flex; gap: 7px; margin-top: 12px; }
    .comentarios-form textarea { flex: 1; border-radius: 7px; border: 1px solid #dde2ea; font-size: 0.98rem; padding: 7px; resize: none; min-height: 32px; background: #f7f9fc; color: #222;}
    .comentarios-form button { background: #2463d1; color: #fff; border: none; border-radius: 6px; font-weight: 700; padding: 0 16px; font-size: 1.00rem; cursor: pointer; transition: background .13s;}
    .comentarios-form button:hover { background: #1d4db1; }
    @media (max-width: 950px) {
      .container { padding: 4px 1px; }
      .cards { flex-direction: column; gap: 8px; }
      .filtros { flex-direction: column; gap: 7px; }
      .pendencia { flex-direction: column; align-items: flex-start; min-height: 95px; }
      .linha-header { flex-direction: column; align-items: flex-start; }
      .badges { margin-top: 6px; margin-left: 0; }
    }
@media (max-width: 950px) {
  #pomodoro {
    display: none; /* ou posicione em outro lugar no mobile */
  }
}

/* Botão Conectar WhatsApp */
.btn-conectar-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 15px;
  margin-left: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background .14s;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-conectar-whatsapp:hover {
  background: #128c7e;
}

/* Modal do QR Code */
.modal-qrcode {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
}

.modal-qrcode-content {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-qrcode-header {
  background: #25d366;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-qrcode-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.close-modal-qrcode {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .14s;
}

.close-modal-qrcode:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-qrcode-body {
  padding: 25px;
  text-align: center;
}

.modal-qrcode-body p {
  margin: 0 0 20px 0;
  color: #555;
  font-size: 1rem;
}

.qrcode-container {
  margin: 20px 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #25d366;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.qrcode-image {
  max-width: 250px;
  max-height: 250px;
}

.qrcode-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qrcode-status {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #25d366;
}

.qrcode-status p {
  margin: 0;
  font-weight: 500;
}

#qrcode-status-text {
  color: #25d366;
  font-weight: 600;
}

/* Botão Desconectar WhatsApp */
.btn-desconectar-whatsapp {
  background: #f64e60;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 15px;
  margin-left: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background .14s;
  box-shadow: 0 2px 8px rgba(246, 78, 96, 0.18);
}

.btn-desconectar-whatsapp:hover {
  background: #b91c1c;
}

.reconhecimento-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 8px;
}
.reconhecimento-linha label {
  flex: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}
.btn-remover {
  background: #ffeaea;
  color: #e1494e;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-remover:hover {
  background: #ffd6d6;
}
.emoji {
  font-size: 1.2em;
  margin-right: 2px;
}

#agenda-container { margin-top: 20px; }
.agenda-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.agenda-form input[type="text"] { flex: 1; }
.evento-item { color: #fff; padding: 6px 10px; border-radius: 6px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }

/* Calendário mensal */
#calendar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cal-header { display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: #252729; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { background: #fff; border: 1px solid #e2e7f1; border-radius: 6px; min-height: 70px; padding: 2px; cursor: pointer; display:flex; flex-direction: column; }
.cal-day.selected { border-color: #2463d1; }
.cal-day.empty { background: transparent; border: none; cursor: default; }
.cal-number { font-size: 0.75rem; color: #555; margin-bottom: 2px; }
.cal-events {
  font-size: 0.70rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 60px;      /* Limita a altura da lista de eventos */
  overflow-y: auto;      /* Adiciona rolagem vertical se passar do limite */
  overflow-x: hidden;
  scrollbar-width: thin;
}
.cal-event {
  color: #fff;
  padding: 1px 3px;
  border-radius: 3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.cal-day {
  max-width: 150px; /* ajuste conforme necessário */
  box-sizing: border-box;
  overflow: hidden;
}

.semana-dia.hoje {
  border: 1px solid #b5defc;
  background: #f3faff;
  border-radius: 8px;
  padding: 10px 8px; /* <-- aumenta o espaço interno */
  box-shadow: 0 2px 8px #e0fbe6aa; /* opcional: leve sombra para destacar */
}
.semana-dia.hoje .semana-dia-titulo {
  color: #000000;
  font-weight: bold;
}

.semana-dia-titulo {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #eab308; /* dourado */
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 1.08em; /* ajuste de tamanho opcional */
}

#painelPai {
  min-width: 180px;
  max-width: 220px;
}
@media (max-width: 600px) {
  #painelPai {
    left: 10px !important;
    min-width: 140px !important;
    max-width: 98vw !important;  }}

#painel-semanal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #2463d122;
  padding: 16px 8px;
}
.semana-dia {
  margin-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
.semana-dia:last-child {
  border-bottom: none;
}
.semana-dia-titulo {
  font-weight: bold;
  color: #4b4c4e;
  margin-bottom: 4px;
}
.semana-evento {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 1em;
  color: #222;
}
.semana-evento.vazio {
  color: #aaa;
  font-style: italic;
}
.evento-cor-circulo {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 4px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e5e7eb;
}

/* ================================ */
/* ESTILOS DA MATRIZ DE EISENHOWER */
/* ================================ */

/* Layout em 2 colunas */
.matriz-container-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  height: 600px;
}

.matriz-coluna-tarefas {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.matriz-coluna-matriz {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#matriz-lista-tarefas {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

/* Lista de seleção de membros */
.matriz-lista-membros {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.matriz-card-membro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.matriz-card-membro:hover {
  border-color: #667eea;
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.15);
}

.matriz-card-membro-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.matriz-card-membro-nome {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
}

.matriz-card-membro svg {
  color: #94a3b8;
  transition: all 0.2s;
  flex-shrink: 0;
}

.matriz-card-membro:hover svg {
  color: #667eea;
  transform: translateX(4px);
}

/* Grid da matriz */
.matriz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.matriz-quadrante {
  border: 2px solid;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  max-height: 290px;
}

.matriz-quadrante:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.matriz-quadrante.urgente-importante {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

.matriz-quadrante.importante-nao-urgente {
  border-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.matriz-quadrante.urgente-nao-importante {
  border-color: #eab308;
  background: linear-gradient(135deg, #fefce8 0%, #fff 100%);
}

.matriz-quadrante.nao-urgente-nao-importante {
  border-color: #94a3b8;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.matriz-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid currentColor;
}

.matriz-emoji {
  font-size: 1.3em;
  line-height: 1;
}

.matriz-titulo {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.2;
}

.matriz-subtitulo {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.matriz-tarefas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.matriz-tarefa-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.matriz-tarefa-card:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* Lista de tarefas para classificar */
.matriz-tarefa-item {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 10px;
  transition: all 0.2s;
  overflow: hidden;
}

.matriz-tarefa-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.matriz-tarefa-item.classificada {
  border-color: #94e2b8;
  background: #f0fdf4;
}

.matriz-tarefa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  cursor: pointer;
  user-select: none;
}

.matriz-tarefa-header:hover {
  background: #f8fafc;
}

.matriz-tarefa-texto {
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 4px;
}

.matriz-classificacao-atual {
  font-size: 0.8rem;
  color: #059669;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.matriz-tarefa-prioridade {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.matriz-tarefa-prioridade.prioridade-Alta {
  background: #fee2e2;
  color: #dc2626;
}

.matriz-tarefa-prioridade.prioridade-Média {
  background: #fef3c7;
  color: #d97706;
}

.matriz-tarefa-prioridade.prioridade-Normal {
  background: #dbeafe;
  color: #2563eb;
}

.matriz-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.3s;
  border-radius: 4px;
}

.matriz-toggle-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.matriz-toggle-btn.rotacionado svg {
  transform: rotate(180deg);
}

.matriz-toggle-btn svg {
  transition: transform 0.3s;
}

/* Botão de concluir tarefa */
.matriz-btn-concluir {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.matriz-btn-concluir:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.matriz-btn-concluir:active {
  transform: translateY(0);
}

/* Botão de concluir nos cards da matriz */
.matriz-card-btn-concluir {
  background: #10b981;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s;
  border-radius: 5px;
  flex-shrink: 0;
  opacity: 0.85;
}

.matriz-card-btn-concluir:hover {
  background: #059669;
  opacity: 1;
  transform: scale(1.1);
}

.matriz-card-btn-concluir:active {
  transform: scale(0.95);
}

.matriz-tarefa-opcoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px 14px;
  max-height: 200px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.matriz-tarefa-opcoes.recolhida {
  max-height: 0;
  padding: 0 14px;
  opacity: 0;
}

.matriz-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.82rem;
  background: #fff;
}

.matriz-radio:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.matriz-radio input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.matriz-radio input[type="radio"]:checked + span,
.matriz-radio:has(input:checked) {
  font-weight: 600;
}

.matriz-radio:has(input:checked) {
  border-color: #667eea;
  background: #f0f4ff;
}

/* Scrollbar personalizado */
#matriz-lista-tarefas::-webkit-scrollbar,
.matriz-tarefas::-webkit-scrollbar,
.matriz-grid::-webkit-scrollbar {
  width: 6px;
}

#matriz-lista-tarefas::-webkit-scrollbar-track,
.matriz-tarefas::-webkit-scrollbar-track,
.matriz-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

#matriz-lista-tarefas::-webkit-scrollbar-thumb,
.matriz-tarefas::-webkit-scrollbar-thumb,
.matriz-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

#matriz-lista-tarefas::-webkit-scrollbar-thumb:hover,
.matriz-tarefas::-webkit-scrollbar-thumb:hover,
.matriz-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media (max-width: 1200px) {
  .matriz-container-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .matriz-coluna-tarefas {
    max-height: 400px;
  }
  
  .matriz-coluna-matriz {
    max-height: 500px;
  }
  
  .matriz-tarefa-opcoes {
    grid-template-columns: 1fr;
  }
}

