/* Utilitários de espaçamento e centralização (inspirados no Material Design) */
.m-b-0, .mb-0 { margin-bottom: 0 !important; }
.m-b-8, .mb-8 { margin-bottom: 8px !important; }
.m-b-16, .mb-16 { margin-bottom: 16px !important; }
.centered { display: flex !important; justify-content: center !important; align-items: center !important; }
.d-flex { display: flex !important; }

#new-board-btn {
	margin-top: 25px;
}

/* Para igualar altura das cols do form de criar marcador */
.criar-marcador-row {
	display: flex;
	align-items: stretch;
}
.criar-marcador-row > .col {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.criar-marcador-row > .col.s2 {
	justify-content: center;
	align-items: center;
}
body, html {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #f5f5f5; /* opcional, define cor de fundo da página */
	overflow: hidden; /* evita scroll externo */
}

/* =========================================
   BOARDS CONTAINER - RESPONSIVE LAYOUT
   ========================================= */

#main-container {
	padding: 0;
	background: #f5f5f5;
	width: 100%;
	height: 100vh;
	overflow-y: auto;
	display: block;
	position: relative;
}

.boards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	padding: 80px 20px 100px 20px; /* Top padding para header, bottom para botão flutuante */
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
	min-height: calc(100vh - 180px);
}

#new-board-btn {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3) !important;
	border-radius: 4px !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#new-board-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4) !important;
}

#new-board-btn {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 100000 !important;
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3) !important;
	border-radius: 4px !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#new-board-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4) !important;
}

.modal .modal-footer {
    height: auto !important;
}

.message {
	position: absolute;
	top: 0;
}

.board-card {
	padding: 16px;
	border-radius: 12px;
	cursor: pointer;
	color: white;
	min-width: 280px;
	min-height: 160px;
	text-align: left;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-tap-highlight-color: transparent;
}

.board-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
	z-index: 1;
	transition: background 0.3s ease;
}

.board-card > * {
	position: relative;
	z-index: 2;
}

.board-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.board-card:hover::before {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.board-card:active {
	transform: translateY(-1px);
	transition: all 0.15s ease;
}

.board-card-title {
	font-weight: 600;
	font-size: 18px;
	margin-bottom: 8px;
	line-height: 1.3;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
	color: white;
}

.board-card-desc {
	font-size: 14px;
	opacity: 0.95;
	text-align: left;
	line-height: 1.4;
	max-height: 56px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	color: rgba(255, 255, 255, 0.95);
	flex: 1;
}

.board-card .link-preview {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	max-width: 100%;
}

.board-card .link-preview-content {
	padding: 6px 8px;
	gap: 6px;
}

.board-card .link-preview-favicon {
	width: 24px;
	height: 24px;
	background: rgba(255,255,255,0.2);
}

.board-card .link-preview-title,
.board-card .link-preview-url {
	color: inherit;
	opacity: 0.9;
}

.tarefa-card {
	background: #fff;
	margin: 6px 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	display: grid;
	grid-template-areas:
		"marcadores marcadores marcadores menu"
		"titulo titulo titulo menu"
		"bottom-info bottom-info bottom-info menu"
		"membros membros membros menu";
	grid-template-columns: 1fr 1fr 1fr auto;
	grid-template-rows: auto auto auto auto;
	padding: 12px 15px 12px 15px;
	border-radius: 6px;
	cursor: pointer;
	min-width: 150px;
	transition: all 0.3s ease;
}

.tarefa-card .check-wrapper {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
	pointer-events: none; /* não interfere em cliques quando invisível */
}

.tarefa-card .mark-complete {
	transform: scale(1.3);
	cursor: pointer;
}

/* Classe aplicada via JavaScript quando hover no lado esquerdo */
.tarefa-card.hover-left {
	padding-left: 40px; /* aumenta padding para dar espaço ao checkbox */
}

.tarefa-card.hover-left .check-wrapper {
	opacity: 1;
	pointer-events: auto; /* permite cliques quando visível */
}

.tarefa-card.finalizada {
	text-decoration: line-through;
	background: #9effa2;
	color: #727272;
}

/* Menu da tarefa */
.tarefa-menu-wrapper {
	position: absolute;
	right: 10px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tarefa-card:hover .tarefa-menu-wrapper {
	opacity: 1;
}

.tarefa-menu-btn {
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 10px;
	padding: 4px 6px;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tarefa-menu-btn:hover {
	background: rgba(0, 0, 0, 0.1);
}

.tarefa-menu {
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	margin-top: 2px;
	overflow: visible;
}

.tarefa-menu-item {
	display: block;
	width: 100%;
	border: none;
	text-align: left;
	cursor: pointer;
	padding: 6px 8px;
	background: transparent;
	font-size: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tarefa-menu-item:hover {
	background: #f2f2f2;
}

.tarefa-menu-item:first-child {
	border-radius: 4px 4px 0 0;
}

.tarefa-menu-item:last-child {
	border-radius: 0 0 4px 4px;
}

.modal {
	width: 65% !important;
}

.modal-tarefa-menu-item {
	display: flex !important;
	width: 100%;
	border: none;
	text-align: left;
	cursor: pointer;
	padding: 0px 8px;
	background: transparent;
	font-size: 10px;
	color: #333;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tarefa-menu-item:hover i,
.modal-tarefa-menu-item:hover i {
	color: #333;
}

.modal-tarefa-menu-item:hover {
	background: #f2f2f2;
}

.modal-tarefa-menu-item:first-child {
	border-radius: 4px 4px 0 0;
}

.modal-tarefa-menu-item:last-child {
	border-radius: 0 0 4px 4px;
}

.tarefa-menu-item i,
.modal-tarefa-menu-item i {
	font-size: 9px;
	color: #ffffff;
	min-width: 12px;
}

/* Menu da tarefa no modal */
.modal-tarefa-menu-wrapper {
	position: relative;
	display: inline-block;
}

#modal-atividades {
    max-width: 30vw !important;
}

#modal-atividades .modal-content {
	max-height: 50vh !important;
	overflow-y: auto !important;
}

#modalTarefasArquivadas {
    max-width: 50vw !important;
}

.modal-tarefa-menu-btn {
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 16px;
	padding: 6px 8px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
}

.modal-tarefa-menu-btn:hover {
	background: rgba(0, 0, 0, 0.1);
	color: #333;
}

.modal-tarefa-menu {
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	z-index: 1001;
	margin-top: 2px;
}

/* Header */
.quadro-header {
	padding: 1rem;
	background-color: #e0e0e060;
	border-radius: 4px;
}

.quadro-title {
	font-size: 2rem;
	font-weight: bold;
	margin: 0;
	color: #000;
}

.quadro-desc {
	margin: 0;
	font-size: 1.5rem;
	color: #000;
}

.quadro-edit-input {
	font-size: 1.7rem;
	padding: 0.3rem;
	width: 100%;
	box-sizing: border-box;
}

.dropdown {
	position: relative;
}

.menu-btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #000;
}

.dropdown-content {
	position: absolute;
	right: 0;
	top: 100%;
	background-color: white;
	border: 1px solid #ccc;
	padding: 0.5rem;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.dropdown-content.hidden {
	display: none;
}

.quadro-container {
	width: 100vw;
	height: 100vh;
	padding: 20px;
	overflow: auto;
	box-sizing: border-box;
	transition: ease;
	transition: all 0.3s ease;
}

/* Scrollbar minimalista */
.quadro-container::-webkit-scrollbar, .colunas-container::-webkit-scrollbar {
	width: 12px;  /* Aumentado de 8px para 12px */
	height: 12px; /* Aumentado de 8px para 12px */
}

.quadro-container::-webkit-scrollbar-track, .colunas-container::-webkit-scrollbar-track{
	background: #f1f1f1; /* Mudado de transparent para cinza claro */
	border-radius: 6px;   /* Adicionado border-radius */
}

.quadro-container::-webkit-scrollbar-thumb, .colunas-container::-webkit-scrollbar-thumb{
	background-color: #888; /* Mudado de rgba(0, 0, 0, 0.3) para cinza mais escuro */
	border-radius: 6px;     /* Aumentado de 4px para 6px */
}

.quadro-container::-webkit-scrollbar-thumb:hover, .colunas-container::-webkit-scrollbar-thumb:hover{
	background-color: #555; /* Mudado de rgba(0, 0, 0, 0.5) para cinza ainda mais escuro */
}

.button, button, .quadro-title, .quadro-desc, .menu-btn {
	transition: all 0.3s ease;
}

.button:hover, button:hover, .quadro-title:hover, .quadro-desc:hover, .menu-btn:hover {
	opacity: 0.5;
}

.colunas-container {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-top: 20px;
}

.coluna {
	background: #f1f1f1;
	padding: 10px;
	width: 250px;
	border-radius: 8px;
	flex-shrink: 0;
	position: relative;
	height: 100%;
}

.coluna-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

input.coluna-name {
	height: 32px;
	padding: 4px 8px;
	font-size: 14px;
	margin: 0;
}

.coluna-menu-wrapper {
	position: relative;
}

.coluna-menu-btn {
	border: none;
	cursor: pointer;
	font-size: 16px;
	padding: 4px;
	margin-left: 4px;
	height: 32px;
	width: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.coluna-menu {
	position: absolute;
	top: 35px; /* ajuste conforme o botão */
	right: 0;
	background: white;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	z-index: 10;
	min-width: 120px;
}

.coluna-menu button {
	display: flex;
	justify-content: center;
	width: 95%;
	border: none;
	cursor: pointer;
	margin: 5px auto; /* ← centraliza horizontalmente */
}

.coluna-menu button:last-child {
	margin-bottom: 5px;
}

.coluna-menu button:hover {
	background: #f2f2f2;
}

.coluna-menu-item:last-child {
	border-bottom: none;
}

.coluna-menu-item:hover {
	background-color: #eee;
}

.tarefas {
	margin-top: 10px;
	position: relative;
	z-index: 1;
}

.tarefa {
	background: #fff;
	padding: 10px;
	border-radius: 6px;
	margin-bottom: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal {
	position: fixed;
	top: 0; left: 0;
	width: 100vw;
	/* height: 100vh; */
	background: rgba(0,0,0,0.5);
	display: flex; justify-content: center; align-items: center;
	z-index: 999;
}

.modal-content {
	background: white;
	padding: 24px !important;
	border-radius: 10px;
	overflow-y: auto;
}

.modal-header-tarefa {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.hidden {
	display: none;
}

.tarefa-titulo {
	font-weight: bold;
}
.tarefa-prazo {
	color: #777;
	font-size: 0.85em;
}

.nova-tarefa-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 5px;
}

.input-nova-tarefa {
	flex: 1;
	padding: 5px;
	font-size: 14px;
}

.confirmar-tarefa {
	padding: 4px;
	font-size: 12px;
	border: none;
	background-color: #4CAF50;
	color: white;
	border-radius: 4px;
	cursor: pointer;
	height: 28px;
	width: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
}

#main-container {
	width: 90vw;
	height: 100vh;
	padding: 20px;
	box-sizing: border-box;
}

.loading-spinner {
	text-align: center;
	font-size: 16px;
	padding: 20px;
	color: #666;
}

.spinner-container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100px;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 5px solid #ccc;
	border-top: 5px solid #007bff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.checklist {
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 6px;
}

.checklist-nome, .checklist-nome-edit{
	margin: 0 !important;
}

.fake-checkbox-icon {
	width: 18px;
	height: 18px;
	border-radius: 4px;
	background-color: white;
}

.fake-checkbox-icon > i {
	font-size: 2rem;
}

.checklist input[type="text"] {
	flex: 1;
	padding: 6px 10px;
	border: 0;
	font-size: 14px;
}

.checklist input[type="text"]:active, .checklist input[type="text"]:focus {
	border: 1px solid #ccc;
}

.checkboxes {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.checkboxes .checkbox {
	margin-bottom: 6px;
}

.checkboxes .checkbox label {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
}

.checkboxes .checkbox input[type="checkbox"] {
	width: 16px;
	accent-color: #007bff;
	margin-bottom: 0 !important;
}

.checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #ddd;
	transition: background-color 0.2s;
	justify-content: space-between;
}

.checkbox:hover {
  	background-color: #f0f0f0;
}

.checkbox input[type="text"] {
	flex-grow: 1;
	padding: 5px 8px;
	font-size: 14px;
	border: 0;
	margin-bottom: 0 !important;
}

.checkbox input[type="text"]:active, .checkbox input[type="text"]:focus {
	border: 1px solid #ccc;
}

.checkbox-textarea {
	width: 100%;
	min-height: 28px;
	resize: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 4px 6px;
	font-size: 14px;
	overflow: hidden;
	box-sizing: border-box;
	margin: 0;
}

.quadro-edit-input {
	background-color: #e0e0e0d0 !important;
}

.checklist-progress {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 10px;
}

.progress-bar-bg {
	background: #eee;
	width: 100%;
	height: 10px;
	border-radius: 5px;
	overflow: hidden;
	position: relative;
}

.progress-bar-fill {
	background: #4caf50;
	height: 100%;
	width: 0%;
	transition: width 0.3s ease-in-out;
}

.checkbox.concluido textarea:not(.editing) {
	text-decoration: line-through;
	color: #888;
}

.toggle-completed-btn {
	font-size: 12px;
	padding: 10px 6px;
	margin-left: auto;         /* se estiver em um flex container */
	line-height: 1;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #bdbdbd;
	color: #333;
	cursor: pointer;
}

/* contador de checkboxes dentro do card */
.check-count{
	display: inline-block;
	margin-top: 0 !important;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 1.15rem;
	background: transparent;
	color: #555;
}

.check-count-hidden{
	display: none;
}

.check-count.all-done{
	background: #4caf50;
	color: #fff;
}

.loading-compartilhar {
	text-align: center;
}

#btn-voltar-list {
	cursor: pointer;
}

#listaParticipantes li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px;
	border-bottom: 1px solid #eee;
}

#listaParticipantes .icon.avatar {
	width: 40px;
	height: 40px;
	min-width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#listaParticipantes .icon.avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

#listaParticipantes .icon.avatar.initials {
	width: 40px;
	height: 40px;
	background: #4a90e2;
	color: white;
	font-weight: bold;
	font-size: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#listaParticipantes .nome {
	flex: 1;
}

#listaParticipantes .acoes {
	display: flex;
	align-items: center;
	gap: 8px;
}

#listaParticipantes i {
	cursor: pointer;
}

#listaParticipantes .toggle-admin.is-admin {
	color: #f7b731;
}

.icon-role {
	cursor: pointer;
	font-size: 1.2em;
	margin-right: 10px;
	color: #888;
	transition: color 0.2s;
}

.icon-role.ativo {
	color: #007bff; /* azul de destaque */
}

.dragging-coluna {
	background-color: rgb(153, 153, 219);
	opacity: 0.5;
}

.highlight-drop {
	background-color: rgba(0, 123, 255, 0.1); /* azul clarinho */
	border: 2px dashed #007bff;
}

.tarefa-card.dragging-tarefa {
	background-color: rgb(153, 153, 219);
	opacity: 0.5;
}

.delete-checklist-btn,
.delete-checkbox-btn {
	padding: 4px 6px;
	margin-left: 6px;
	background-color: #e74c3c !important; /* vermelho */
	border: none;
	border-radius: 4px;
	color: white;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
}

.delete-checklist-btn i,
.delete-checkbox-btn i {
	pointer-events: none;
}

.delete-checklist-btn:hover,
.delete-checkbox-btn:hover {
	background-color: #c0392b;
}

/* Avatares de membros da tarefa */
.avatar-membro, .avatar-add-btn, .btn-acao-membro {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex !important;
	justify-content: center;
	position: relative;
	cursor: pointer;
}

.avatar-membro img {
	border-radius: 50%;
	object-fit: cover;
}

.avatar-membro.initials {
	background: #4a90e2;
	color: white;
	font-weight: bold;
	font-size: 12px;
}

.avatar-add-btn:hover, .btn-acao-membro:hover {
	background: #b0cae9;
}

/* Tooltip para nome do usuário */
.avatar-tooltip {
	position: absolute;
	bottom: 35px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 10px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
	z-index: 1000;
}

.avatar-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: #333;
}

.avatar-membro:hover .avatar-tooltip {
	opacity: 1;
	visibility: visible;
}

/* Lista de membros do modal */
.lista-membros-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 6px;
	margin-bottom: 8px;
	background: #f8f9fa;
	transition: background-color 0.2s;
}

#btnAdicionarMembro {
	align-items: center;
}

.lista-membros-item:hover {
	background: #e9ecef;
}

.lista-membros-item .avatar {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lista-membros-item .avatar img {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	object-fit: cover;
}

.lista-membros-item .avatar.initials {
	background: #4a90e2;
	color: white;
	font-weight: bold;
	font-size: 14px;
}

.lista-membros-item .nome {
	flex: 1;
	font-weight: 500;
	color: #333;
}

.btn-acao-membro {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 12px;
	transition: all 0.2s;
}

.btn-adicionar-membro {
	background: #28a745;
	color: white;
}

.btn-adicionar-membro:hover {
	background: #218838;
}

.btn-remover-membro {
	background: #dc3545;
	color: white;
}

.btn-remover-membro:hover {
	background: #c82333;
}

/* Marcadores da tarefa */
.marcador-tarefa {
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
	margin: 2px;
	display: inline-block;
	position: relative;
	cursor: default;
}

.marcador-tarefa-card {
	padding: 2px 6px;
	border-radius: 8px;
	font-size: 9px;
	font-weight: 500;
	margin: 1px;
	display: inline-block;
	position: relative;
	cursor: default;
}

.marcador-tooltip {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 10px;
	white-space: nowrap;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
	z-index: 1000;
}

.marcador-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: #333;
}

.marcador-tarefa-card:hover .marcador-tooltip {
	opacity: 1;
	visibility: visible;
}

.marcador-add-btn {
	width: 28px;
	height: 28px;
	border-radius: 15px;
	border: 2px dashed #ccc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #666;
	transition: all 0.2s ease;
	border-radius: 14px;
	background: transparent;
}

.marcador-add-btn:hover {
	background: #e9ecef;
	border-color: #adb5bd;
	color: #495057;
}

/* Modal de marcadores e membros */
.modal-marcadores, .modal-membros {
	max-width: 500px;
}

.marcador-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 6px;
	border: 2px solid transparent;
	border-radius: 6px;
	margin-bottom: 8px;
	background: #f8f9fa;
	cursor: pointer;
	transition: all 0.2s;
}

.marcador-item:hover {
	background: #e9ecef;
}

.marcador-item.selected {
	border-color: #007bff;
	background: #e7f3ff;
}

.marcador-item.selected .marcador-preview {
	display: none;
}

.marcador-preview {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	min-width: 80px;
	text-align: center;
}

.marcador-item input[type="checkbox"] {
	transform: scale(1.2);
}

/* Estilos para ícones de permissão */
.role-icons {
	display: flex;
	align-items: center;
	gap: 15px;
}

.icon-role {
	font-size: 18px;
	padding: 8px;
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #666;
}

.icon-role:hover {
	background-color: #f0f0f0;
	color: #333;
}

.icon-role.active {
	background-color: #007bff;
	color: white;
	border-color: #0056b3;
}

/* Estilos para seções de compartilhamento */
.share-section {
	margin-bottom: 20px;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background-color: #f9f9f9;
}

.share-section h4 {
	margin: 0 0 10px 0;
	color: #333;
	font-size: 16px;
}

#emailConvite {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

#emailFeedback {
	min-height: 18px;
}


/* Pickr */

.pickr .pcr-button {
	top: 10px;
	padding: 1em !important;
	border: 0.5px solid #555 !important;
	width: 10em !important;
	position: unset;
}

.colorPickerMarcador .pickr .pcr-button {
	position: relative;
	top: 0px;
	width: 5em !important;
	left: 0;
}

.pcr-app .pcr-swatches>button {
	padding: 1em !important;
}


/* Quadro */

.quadro-container {
	padding: 20px;
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.quadro-title {
	font-size: 28px;
	font-weight: 400;
	margin: 0;
	cursor: pointer;
	color: #424242;
	width: 70%;
}

.input-field-title {
	width: 70%;
}

.quadro-desc {
	font-size: 16px;
	margin: 0;
	cursor: pointer;
	color: #757575;
}

.dropdown {
	position: relative;
	display: flex;
	gap: 10px;
	align-items: center;
}

.dropdown-content-custom {
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	border-radius: 4px;
	z-index: 1000;
	min-width: 200px;
	overflow: hidden;
}

.dropdown-content-custom a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	text-decoration: none;
	color: #424242;
	transition: background-color 0.3s;
}

.dropdown-content-custom a:hover {
	background-color: #f5f5f5;
}

.dropdown-content-custom .red-text {
	color: #f44336 !important;
}

/* Role icons styling */
.role-icons {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: 15px 0;
}

.icon-role {
	font-size: 24px;
	padding: 12px;
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #757575;
	background-color: #f5f5f5;
}

.icon-role:hover {
	background-color: #e3f2fd;
	color: #2196f3;
}

.icon-role.active {
	background-color: #2196f3;
	color: white;
	border-color: #1976d2;
}

/* Share sections */
.share-section {
	margin-bottom: 20px;
	padding: 20px;
	border-radius: 8px;
	background-color: #fafafa;
	border-left: 4px solid #2196f3;
}

.share-section h6 {
	margin: 0 0 15px 0;
	color: #424242;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
}

.share-section .input-field {
	display: flex;
	gap: 10px;
	align-items: center;
}

.share-section .input-field input {
	flex: 1;
	margin-right: 10px;
}

#emailFeedback {
	min-height: 20px;
	margin-top: 10px;
}

/* Loading spinner customization */
.loading-compartilhar {
	padding: 40px 20px;
}

/* Modal adjustments */
.modal-content h4 {
	color: #424242;
	font-weight: 400;
	margin-bottom: 20px;
}

.modal-content h5 {
	color: #424242;
	font-weight: 400;
	margin: 20px 0 15px 0;
}

/* Collection styling for participants */
/* .collection .collection-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.collection .collection-item .secondary-content {
	display: flex;
	gap: 8px;
} */

/* Hidden utility */
.hidden {
	display: none !important;
}

/* Material Adjustments */

.btn-small {
	padding: 0px 6px !important;
}

.waves-effect {
	z-index: 0 !important;
}

.btn-small i.left {
	margin-right: 5px;
}

.input-field {
	position: relative;
	margin-top: 0.5rem !important;
	margin-bottom: 0.5rem !important;
}

/* ========== CLASSES PARA TAREFAS ========== */


/* Barra de status da tarefa */
.tarefa-status-bar {
	width: 100%;
	height: 4px;
	border-radius: 2px;
	margin-bottom: 12px;
}

.tarefa-status-bar.status-concluido { background-color: #4caf50; }
.tarefa-status-bar.status-andamento { background-color: #ff9800; }
.tarefa-status-bar.status-atrasado { background-color: #f44336; }

/* Título da tarefa */
.tarefa-titulo-material {
	grid-area: titulo;
	font-weight: 500;
	font-size: 16px;
	color: #424242;
	word-wrap: break-word;
	line-height: 1.3;
}

/* Descrição da tarefa */
.tarefa-descricao-material {
	font-size: 14px;
	color: #757575;
	margin-bottom: 8px;
	display: none;
}

.tarefa-descricao-material.visible {
	display: block;
}

/* Data de prazo */
.tarefa-prazo-material {
	font-size: 12px;
	color: #9e9e9e;
	display: none;
	align-items: center;
	gap: 4px;
}

.tarefa-prazo-material.visible {
	display: flex;
}

.tarefa-prazo-material.prazo-proximo {
	color: #ff9800;
	font-weight: 500;
}

.tarefa-prazo-material.prazo-urgente {
	color: #f44336;
	font-weight: 500;
}

.tarefa-prazo-material i {
	font-size: 16px;
}

/* Progresso da tarefa */
.tarefa-progresso-material {
	display: none;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #757575;
}

.tarefa-progresso-material.visible {
	display: flex;
}

.tarefa-progresso-material.completado {
	color: #4caf50;
	font-weight: 500;
	background-color: #e8f5e8;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid #c8e6c9;
}

.tarefa-progresso-material.completado .tarefa-progress-fill {
	background: #4caf50;
}

.tarefa-progresso-material i {
	font-size: 16px;
}

.tarefa-progress-bar {
	flex: 1;
	background: #e0e0e0;
	height: 6px;
	border-radius: 3px;
	overflow: hidden;
}

.tarefa-progress-fill {
	height: 100%;
	background: #4caf50;
	transition: width 0.3s;
}

/* Áreas específicas do grid */
.marcadores-tarefa {
	grid-area: marcadores;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.tarefa-linha-bottom-info {
	grid-area: bottom-info;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.membros-tarefa {
	grid-area: membros;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-top: 4px;
}

/* Menu de ações da tarefa */
.tarefa-menu-btn-material {
	grid-area: menu;
	position: static;
	width: 24px;
	height: 24px;
	line-height: 24px;
	align-self: center;
	justify-self: end;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* Mostrar menu ao hover no card */
.tarefa-card:hover .tarefa-menu-btn-material {
	opacity: 1;
}

.tarefa-menu-btn-material i {
	font-size: 16px;
}

/* Container de ações */
.tarefa-acoes-material {
	position: absolute;
	top: 32px;
	right: 8px;
	background: white;
	width: 40%;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	border-radius: 4px;
	overflow: hidden;
	display: none;
	z-index: 1;
}

.tarefa-acoes-material button {
	z-index: 10;
	font-size: 12px;
}

.tarefa-acoes-material.visible {
	display: block;
}

/* Input de nova tarefa */
.tarefa-input-material {
	border: none;
	border-bottom: 2px solid #2196f3;
	outline: none;
	width: 100%;
	font-size: 16px;
	padding: 4px 0;
	background: transparent;
}

/* Avatar de membro pequeno */
.membro-avatar-small {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.membro-avatar-small.initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2196f3;
	color: white;
	font-size: 10px;
	font-weight: bold;
}

/* Chip de marcador pequeno */
.marcador-chip-small {
	height: 8px;
	color: white;
	font-size: 10px;
	font-weight: 500;
}

/* Marcador card com tooltip personalizado */
.marcador-card {
	display: inline-block;
	margin: 2px;
}

.marcador-card .marcador-tooltip {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	white-space: nowrap;
	z-index: 1000;
	transition: visibility 0.3s;
}

/* ========== CLASSES PARA CHECKLISTS ========== */

/* Container do checklist */
.checklist-container-material {
	margin-bottom: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

/* Header do checklist */
.checklist-header-material {
	background: #f5f5f5;
	padding: 12px 16px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Título do checklist */
.checklist-titulo-material {
	flex: 1;
	font-weight: 500;
}

/* Input de título do checklist */
.checklist-input-material {
	border: none;
	border-bottom: 2px solid #2196f3;
	outline: none;
	width: 100%;
	font-size: 14px;
	padding: 4px 0;
	background: transparent;
	font-weight: 500;
}

/* Progresso do checklist */
.checklist-progresso-material {
	font-size: 14px;
	color: #757575;
}

/* Container dos checkboxes */
.checkbox-container-material {
	padding: 16px;
	display: block;
}

.checkbox-container-material.hidden {
	display: none;
}

/* Item individual do checkbox */
.checkbox-item-material {
	display: flex;
	/* align-items: flex-start; */
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	padding: 8px;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.checkbox-item-material:hover {
	background-color: #f5f5f5;
}

.checkbox-item-material.concluido {
	opacity: 0.6;
}

/* Checkbox do item */
.checkbox-item-material input[type="checkbox"] {
	margin: 0;
	transform: scale(1.2);
}

/* Texto do checkbox */
.checkbox-text-material {
	flex: 1;
	min-height: 20px;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	line-height: 1.4;
	resize: none;
	overflow: hidden;
}

.checkbox-text-material.concluido {
	text-decoration: line-through;
}

/* Elemento de exibição de texto do checkbox (com links) */
.checkbox-text-display {
	flex: 1;
	min-height: 20px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	padding: 2px 0;
	word-wrap: break-word;
}

.checkbox-text-display.concluido {
	text-decoration: line-through;
	opacity: 0.6;
}

.checkbox-text-display:hover {
	background: rgba(0, 0, 0, 0.04);
	border-radius: 3px;
}

/* Links dentro do texto do checkbox */
.checkbox-text-display .linkified-url {
	color: #1976d2;
	text-decoration: none;
	border-bottom: 1px dotted #1976d2;
}

.checkbox-text-display .linkified-url:hover {
	color: #0d47a1;
	text-decoration: underline;
}

.checkbox-text-display.concluido .linkified-url {
	color: #666;
	border-bottom-color: #666;
}

/* Botão de deletar checkbox */
.checkbox-delete-material {
	opacity: 0;
	transition: opacity 0.2s;
	background: none;
	border: none;
	color: #f44336;
	cursor: pointer;
	padding: 4px;
	border-radius: 50%;
	min-width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.checkbox-item-material:hover .checkbox-delete-material {
	opacity: 1;
}

.checkbox-delete-material:hover {
	background-color: rgba(244, 67, 54, 0.1);
}

.checkbox-delete-material i {
	font-size: 18px;
}

/* Classes utilitárias */
.w-100 {
	width: 100%;
}

/* ========== CAMPOS EDITÁVEIS NO MODAL DE TAREFA ========== */

.editable-field {
	min-height: 40px;
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	background: #f8f9fa;
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
}

.editable-field:hover {
	background: #e9ecef;
	border-color: #dee2e6;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.editable-field.editing {
	display: none;
}

/* Título da tarefa específico */
.tarefa-title.editable-field {
	font-size: 20px;
	font-weight: 500;
	margin: 0;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
}

.tarefa-title.editable-field:hover {
	background: #f1f3f4;
	border-color: #dadce0;
}

/* Placeholder dos campos */
.field-placeholder {
	color: #6c757d;
	font-style: italic;
}

/* Label dos campos */
.field-label {
	font-size: 12px;
	color: #666;
	font-weight: 500;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Container dos inputs */
.input-container {
	margin-top: 4px;
}

/* Estados de campos com conteúdo */
.editable-field.has-content {
	background: #fff;
	border-color: #e3f2fd;
}

.editable-field.has-content:hover {
	border-color: #2196f3;
	box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

/* Campos de data específicos */
.editable-field[data-field="start_date"],
.editable-field[data-field="prazo"] {
	font-family: 'Roboto Mono', monospace;
	font-weight: 500;
}

/* Ícones nos campos de data */
.editable-field[data-field="start_date"]::before,
.editable-field[data-field="prazo"]::before {
	content: "📅";
	margin-right: 8px;
	font-size: 16px;
}

/* Campo de descrição com suporte a links */
.editable-field.supports-links {
	min-height: 60px;
	/* white-space: pre-wrap; */
}

/* Indicador visual de campo editável */
.editable-field::after {
	content: "✏️";
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.editable-field:hover::after {
	opacity: 0.6;
}

/* Para usuários sem permissão de edição */
.editable-field.readonly {
	cursor: default;
	background: #f8f9fa;
}

.editable-field.readonly:hover {
	background: #f8f9fa;
	border-color: transparent;
	box-shadow: none;
}

.editable-field.readonly::after {
	display: none;
}

/* Placeholder escondido */
.field-placeholder.hidden {
	display: none;
}

/* Estilo especial para o título quando vazio */
.tarefa-title.editable-field:empty::before {
	content: "Clique para definir o nome da tarefa...";
	color: #6c757d;
	font-style: italic;
	font-weight: normal;
	font-size: 16px;
}

/* ========== FIM DOS CAMPOS EDITÁVEIS ========== */


/* Estilos para menu da tarefa */
.modal-tarefa-menu {
    display: none;
}

/* ========== FIM DO MODAL HEADER ========== */

/* ========== CHECKLIST HEADER REDESIGN ========== */

/* Header do checklist unificado */
.checklist-header {
	padding: 8px;
	background: #f5f5f5;
	border-radius: 4px;
	margin-bottom: 8px;
}

/* Primeira linha do header - botões e título */
.checklist-header-row1 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

/* Título do checklist editável */
.checklist-titulo-editavel {
	flex: 1;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 4px;
	transition: background-color 0.2s;
	min-height: 32px;
	display: flex;
	align-items: center;
}

.checklist-titulo-editavel:hover {
	background-color: #e0e0e0;
}

/* Input de novo checklist */
.checklist-input-novo {
	width: 100%;
	border: none;
	background: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 14px;
}

/* Botão toggle do checklist */
.checklist-toggle-btn {
	min-width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
}

/* Botão de esconder/exibir marcados */
.checklist-toggle-completed-btn {
	min-width: 110px;
	height: 32px;
	font-size: 11px;
	padding: 0 8px;
	flex-shrink: 0;
}

/* Botão deletar checklist */
.checklist-delete-btn {
	min-width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
}

/* Wrapper do progresso - segunda linha */
.checklist-progresso-wrapper {
	width: 100%;
}

/* Barra de progresso redesign */
.checklist-progresso-redesign {
	width: 100%;
	height: 6px;
	background: #e0e0e0;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 4px;
}

/* Preenchimento da barra */
.checklist-progress-fill {
	height: 100%;
	background: #4caf50;
	width: 0%;
	transition: width 0.3s ease;
}

/* Estados da barra de progresso */
.checklist-progress-fill.inicio {
	background: #2196f3;
}

.checklist-progress-fill.parcial {
	background: #ff9800;
}

.checklist-progress-fill.completo {
	background: #4caf50;
}

/* Texto do progresso */
.checklist-progress-text {
	font-size: 12px;
	color: #666;
	text-align: center;
}

/* Ícones dos botões do checklist */
.checklist-btn-icon {
	font-size: 16px;
}

.checklist-btn-icon-small {
	font-size: 16px;
}

/* ========== MODAL DE CONFIRMAÇÃO ========== */

/* Modal de confirmação customizado */
.modal-confirm {
	max-width: 400px;
	border-radius: 8px;
}

.modal-confirm .modal-content {
	padding: 24px;
	text-align: center;
}

.modal-confirm h4 {
	color: #d32f2f;
	margin: 0 0 16px 0;
	font-size: 20px;
	font-weight: 500;
}

.modal-confirm p {
	color: #666;
	margin: 0 0 24px 0;
	font-size: 16px;
	line-height: 1.5;
}

.modal-confirm .modal-footer {
	padding: 0 24px 24px;
	text-align: right;
	border-top: none;
}

.modal-confirm .modal-footer .btn {
	margin-left: 8px;
}

/* Ícone de aviso */
.modal-confirm .icon-warning {
	font-size: 48px;
	color: #ff9800;
	margin-bottom: 16px;
}

/* Loading overlay para checklist */
.checklist-loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	z-index: 1000;
}

.checklist-loading-overlay .spinner-small {
	width: 32px;
	height: 32px;
	border: 3px solid #e0e0e0;
	border-top: 3px solid #2196f3;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.text-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 12px;
}

.checklist-loading-overlay .loading-text {
	margin-left: 12px;
	color: #666;
	font-size: 14px;
}

/* Loading para checkbox individual */
.checkbox-loading {
	position: relative;
	opacity: 0.6;
	pointer-events: none;
}

.checkbox-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 8px;
	width: 16px;
	height: 16px;
	border: 2px solid #e0e0e0;
	border-top: 2px solid #2196f3;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	transform: translateY(-50%);
}

/* Material Icons rotating animation */
.rotating {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ========== LOADING STATES PARA TAREFAS ========== */

/* Loading states para tarefas */
.tarefa-loading {
	transition: all 0.3s ease;
}

.tarefa-loading-excluir {
	background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%) !important;
	border-left: 4px solid #f44336 !important;
	box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3) !important;
}

.tarefa-loading-duplicar {
	background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
	border-left: 4px solid #2196f3 !important;
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3) !important;
}

.tarefa-loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 10;
	border-radius: 4px;
}

.tarefa-loading-spinner {
	margin-bottom: 8px;
}

.tarefa-loading-spinner .material-icons {
	font-size: 24px;
	color: #666;
}

.tarefa-loading-text {
	font-size: 12px;
	color: #666;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Melhorar a transição dos cards */
.tarefa-card {
	transition: all 0.3s ease;
}

.tarefa-card:hover:not(.tarefa-loading) {
	transform: translateY(-2px);
	z-index: 99;
}

/* Material */

.modal h1, .modal h2, .modal h3, .modal h4 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.material-icons {
	font-size: inherit !important;
}

/* ========== DATEPICKERS HTML5 NATIVOS ========== */
/* Os estilos para inputs type="date" estão no arquivo datepicker-nativo.css */

/* ========== ESTILOS PARA SEÇÃO GANTT ========== */

/* Seção de dependências do Gantt */
#ganttDependenciesSection {
	background: #eaeaeb !important;
	border-radius: 6px;
	padding: 10p;
	display: none;
}

/* Material Design Selects do Gantt */
#ganttDependenciesSection md-filled-select {
	width: 100% !important;
	margin-bottom: 15px !important;
	--md-filled-select-text-field-container-color: white !important;
	--md-filled-select-text-field-hover-container-color: #f5f5f5 !important;
	--md-filled-select-text-field-focus-container-color: white !important;
	--md-filled-select-text-field-active-indicator-color: #2196F3 !important;
	--md-filled-select-text-field-focus-active-indicator-color: #2196F3 !important;
	--md-filled-select-text-field-hover-active-indicator-color: #2196F3 !important;
	--md-filled-select-text-field-label-text-color: #666 !important;
	--md-filled-select-text-field-focus-label-text-color: #2196F3 !important;
	--md-filled-select-text-field-input-text-color: #333 !important;
}

#ganttDependenciesSection md-filled-select:last-child {
	margin-bottom: 0 !important;
}

/* Containers dos selects */
#ganttDependenciesSection > div {
	margin-bottom: 15px !important;
	display: block !important;
}

#ganttDependenciesSection > div:last-child {
	margin-bottom: 0 !important;
}

/* ========== ESTILOS PARA MARCADORES NO CARD ==========*/

.marcadores-tarefa {
	grid-area: marcadores;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.marcador-tag-small {
	padding: 4px 12px;
	border-radius: 12px;
	color: white;
	max-width: 80px;
	overflow: hidden;
	text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.marcador-tag {
	font-size: 12px;
	padding: 4px 12px;
	border-radius: 12px;
	color: white;
	font-weight: 500;
	text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.marcador-contador-small {
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 12px;
	background-color: #666;
	color: white;
	font-weight: 500;
	text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.btn-fixado {
	z-index: 1000 !important;
	position: fixed !important;
	bottom: 60px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	color: white !important;
	border: none !important;
	font-size: 1.5rem !important;
	cursor: pointer !important;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

/* ========== CORREÇÃO PARA CENTRALIZAÇÃO DOS TOASTS ==========*/
#toast-container {
	left: 50% !important;
	transform: translateX(-50%) !important;
	right: auto !important;
}

/* ========== SISTEMA DE LINKS E PREVIEWS ========== */

/* Links clicáveis */
.linkified-url {
	color: #2196F3 !important;
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s ease;
}

.linkified-url:hover {
	color: #1976D2 !important;
	text-decoration: none;
}

.link-previews-container {
	display: flex;
	flex-direction: row;
	gap: 12px;
}

/* Container de preview de links */
.link-preview {
	margin: 8px 0;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
	overflow: hidden;
	transition: all 0.3s ease;
	max-width: 400px;
}

.link-preview:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Loading do preview */
.link-preview-loading {
	display: flex;
	align-items: center;
	padding: 12px;
	gap: 8px;
	color: #666;
	font-size: 14px;
}

/* Conteúdo do preview */
.link-preview-content {
	display: flex;
	align-items: flex-start;
	padding: 12px;
	gap: 12px;
}

/* Ícone/favicon */
.link-preview-favicon {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: #2196F3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	flex-shrink: 0;
}

/* Informações do link */
.link-preview-info {
	flex: 1;
	min-width: 0;
}

/* Imagem de preview */
.link-preview-image {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.link-preview-title {
	font-weight: 500;
	font-size: 14px;
	color: #333;
	margin-bottom: 4px;
	word-break: break-word;
}

.link-preview-url {
	font-size: 12px;
	color: #666;
	margin-bottom: 8px;
	word-break: break-all;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Ações do preview */
.link-preview-actions {
	display: flex;
	gap: 6px;
	align-items: center;
}

.link-preview-actions .btn-small {
	padding: 0 8px;
	height: 28px;
	line-height: 28px;
	font-size: 11px;
}

.link-preview-actions .material-icons {
	font-size: 16px;
}

.link-preview-remove {
	border: none;
	background: transparent;
	color: #f44336;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.link-preview-remove:hover {
	background-color: #ffebee;
}

/* Estilo para campos que suportam links */
.supports-links {
	position: relative;
}

/* ========== ESTILOS ESPECÍFICOS POR PLATAFORMA ========== */

/* YouTube */
.link-preview.platform-youtube {
	border-left: 4px solid #ff0000;
	background: linear-gradient(45deg, rgba(255, 0, 0, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-youtube .link-preview-favicon {
	background: #ff0000;
	color: white;
}

.link-preview.platform-youtube .link-preview-favicon::before {
	content: "▶";
	font-size: 16px;
	font-weight: bold;
}

/* X (Twitter) */
.link-preview.platform-x,
.link-preview.platform-twitter {
	border-left: 4px solid #000000;
	background: linear-gradient(45deg, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-x .link-preview-favicon,
.link-preview.platform-twitter .link-preview-favicon {
	background: #000000;
	color: white;
}

.link-preview.platform-x .link-preview-favicon::before,
.link-preview.platform-twitter .link-preview-favicon::before {
	content: "𝕏";
	font-size: 18px;
	font-weight: bold;
}

/* Instagram */
.link-preview.platform-instagram {
	border-left: 4px solid #e4405f;
	background: linear-gradient(45deg, rgba(228, 64, 95, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-instagram .link-preview-favicon {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: white;
}

.link-preview.platform-instagram .link-preview-favicon::before {
	content: "📷";
	font-size: 14px;
}

/* Spotify */
.link-preview.platform-spotify {
	border-left: 4px solid #1db954;
	background: linear-gradient(45deg, rgba(29, 185, 84, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-spotify .link-preview-favicon {
	background: #1db954;
	color: white;
}

.link-preview.platform-spotify .link-preview-favicon::before {
	content: "♪";
	font-size: 16px;
	font-weight: bold;
}

/* Facebook */
.link-preview.platform-facebook {
	border-left: 4px solid #1877f2;
	background: linear-gradient(45deg, rgba(24, 119, 242, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-facebook .link-preview-favicon {
	background: #1877f2;
	color: white;
}

.link-preview.platform-facebook .link-preview-favicon::before {
	content: "f";
	font-size: 18px;
	font-weight: bold;
	font-family: "Helvetica Neue", Arial, sans-serif;
}

/* LinkedIn */
.link-preview.platform-linkedin {
	border-left: 4px solid #0a66c2;
	background: linear-gradient(45deg, rgba(10, 102, 194, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-linkedin .link-preview-favicon {
	background: #0a66c2;
	color: white;
}

.link-preview.platform-linkedin .link-preview-favicon::before {
	content: "in";
	font-size: 12px;
	font-weight: bold;
}

/* TikTok */
.link-preview.platform-tiktok {
	border-left: 4px solid #000000;
	background: linear-gradient(45deg, rgba(255, 0, 80, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-tiktok .link-preview-favicon {
	background: linear-gradient(45deg, #ff0050, #000000);
	color: white;
}

.link-preview.platform-tiktok .link-preview-favicon::before {
	content: "🎵";
	font-size: 14px;
}

/* WhatsApp */
.link-preview.platform-whatsapp {
	border-left: 4px solid #25d366;
	background: linear-gradient(45deg, rgba(37, 211, 102, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-whatsapp .link-preview-favicon {
	background: #25d366;
	color: white;
}

.link-preview.platform-whatsapp .link-preview-favicon::before {
	content: "💬";
	font-size: 14px;
}

/* GitHub */
.link-preview.platform-github {
	border-left: 4px solid #333;
	background: linear-gradient(45deg, rgba(51, 51, 51, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-github .link-preview-favicon {
	background: #333;
	color: white;
}

.link-preview.platform-github .link-preview-favicon::before {
	content: "⚡";
	font-size: 14px;
}

/* Telegram */
.link-preview.platform-telegram {
	border-left: 4px solid #0088cc;
	background: linear-gradient(45deg, rgba(0, 136, 204, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-telegram .link-preview-favicon {
	background: #0088cc;
	color: white;
}

.link-preview.platform-telegram .link-preview-favicon::before {
	content: "✈";
	font-size: 14px;
}

/* Discord */
.link-preview.platform-discord {
	border-left: 4px solid #5865f2;
	background: linear-gradient(45deg, rgba(88, 101, 242, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-discord .link-preview-favicon {
	background: #5865f2;
	color: white;
}

.link-preview.platform-discord .link-preview-favicon::before {
	content: "🎮";
	font-size: 14px;
}

/* Pinterest */
.link-preview.platform-pinterest {
	border-left: 4px solid #bd081c;
	background: linear-gradient(45deg, rgba(189, 8, 28, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-pinterest .link-preview-favicon {
	background: #bd081c;
	color: white;
}

.link-preview.platform-pinterest .link-preview-favicon::before {
	content: "📌";
	font-size: 14px;
}

/* Medium */
.link-preview.platform-medium {
	border-left: 4px solid #00ab6c;
	background: linear-gradient(45deg, rgba(0, 171, 108, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-medium .link-preview-favicon {
	background: #00ab6c;
	color: white;
}

.link-preview.platform-medium .link-preview-favicon::before {
	content: "M";
	font-size: 16px;
	font-weight: bold;
}

/* Netflix */
.link-preview.platform-netflix {
	border-left: 4px solid #e50914;
	background: linear-gradient(45deg, rgba(229, 9, 20, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-netflix .link-preview-favicon {
	background: #e50914;
	color: white;
}

.link-preview.platform-netflix .link-preview-favicon::before {
	content: "N";
	font-size: 16px;
	font-weight: bold;
}

/* Twitch */
.link-preview.platform-twitch {
	border-left: 4px solid #9146ff;
	background: linear-gradient(45deg, rgba(145, 70, 255, 0.05), rgba(255, 255, 255, 1));
}

.link-preview.platform-twitch .link-preview-favicon {
	background: #9146ff;
	color: white;
}

.link-preview.platform-twitch .link-preview-favicon::before {
	content: "📺";
	font-size: 14px;
}

/* Estilo padrão quando tem ícone personalizado */
.link-preview.has-custom-icon .link-preview-favicon {
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
}

.link-preview.has-custom-icon .link-preview-favicon i {
	display: none;
}

/* Responsive */
@media (max-width: 600px) {
	.link-preview {
		max-width: 100%;
	}

	.link-preview-content {
		padding: 8px;
		gap: 8px;
	}

	.link-preview-favicon {
		width: 32px;
		height: 32px;
	}

	.link-preview-actions .btn-small {
		padding: 0 6px;
		height: 24px;
		line-height: 24px;
		font-size: 10px;
	}
}

/* ========== MODAL CRIAR QUADRO ========== */

/* Modal de criar quadro melhorado */
#board-modal {
	max-width: 700px !important;
	width: 90% !important;
	max-height: 90vh !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	top: 4% !important;
}

#board-modal .modal-content {
	padding: 0 !important;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	position: relative;
	overflow: visible !important;
}

#board-modal .modal-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
}

/* Form container com background branco */
#board-form {
	background: white;
	margin: 0 !important;
	padding: 30px !important;
	border-radius: 0 0 12px 12px;
}

/* Header do modal */
#board-form h5 {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	font-weight: 600 !important;
	margin: 0 0 25px 0 !important;
	font-size: 28px !important;
	text-align: center;
}

#board-form h5 i {
	color: #667eea !important;
	vertical-align: middle;
	margin-right: 10px;
}

/* Campos do formulário */
#board-modal .input-field {
	margin-bottom: 25px !important;
	position: relative;
}

#board-modal .input-field .prefix {
	color: #667eea !important;
	font-size: 24px;
	top: 0.8rem;
}

#board-modal .input-field input,
#board-modal .input-field textarea {
	border-bottom: 2px solid #e0e0e0 !important;
	transition: border-color 0.3s ease !important;
}

#board-modal .input-field input:focus,
#board-modal .input-field textarea:focus {
	border-bottom: 2px solid #667eea !important;
	box-shadow: 0 2px 0 0 #667eea !important;
}

#board-modal .input-field label {
	color: #666 !important;
}

#board-modal .input-field label.active {
	color: #667eea !important;
}

/* Select customizado */
#board-modal .select-wrapper {
	border-bottom: 2px solid #e0e0e0;
	transition: border-color 0.3s ease;
}

#board-modal .select-wrapper:focus-within {
	border-bottom: 2px solid #667eea;
}

/* Color picker */
#color-picker {
	margin-left: 50px;
	padding: 10px 0;
}

/* File upload */
#board-modal .file-field .btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	margin-left: 50px;
}

/* Botões de ação */
#board-modal .col.s12:last-child {
	padding: 20px 0 0 0 !important;
	text-align: center;
	border-top: 1px solid #f0f0f0;
}

#board-modal .btn {
	margin: 0 10px !important;
	border-radius: 25px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	padding: 0 25px !important;
	height: 45px !important;
	line-height: 45px !important;
}

#board-modal .btn.blue {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

#board-modal .btn.blue:hover {
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
	transform: translateY(-2px) !important;
}

#board-modal .btn.red {
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
	box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
}

#board-modal .btn.red:hover {
	box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6) !important;
	transform: translateY(-2px) !important;
}

/* Seção Assistente IA */
.assistente-ia-section {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	padding: 20px;
	margin: 20px -30px;
	border-radius: 12px;
	color: white;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.assistente-ia-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
	animation: float 20s linear infinite;
}

@keyframes float {
	0% { transform: rotate(0deg) translateX(10px) rotate(0deg); }
	100% { transform: rotate(360deg) translateX(10px) rotate(-360deg); }
}

.assistente-ia-section h6 {
	margin: 0 0 15px 0 !important;
	font-size: 20px !important;
	font-weight: 600 !important;
	position: relative;
	z-index: 1;
}

.assistente-ia-section p {
	margin: 0 0 20px 0 !important;
	font-size: 16px !important;
	opacity: 0.95;
	position: relative;
	z-index: 1;
}

.assistente-ia-section .btn {

	border: 2px solid rgba(255, 255, 255, 0.3) !important;
	color: white !important;
	position: relative;
	z-index: 1;
	backdrop-filter: blur(10px);
}

.assistente-ia-section .btn:hover {

	border-color: rgba(255, 255, 255, 0.5) !important;
	transform: translateY(-3px) !important;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Ícones da seção assistente */
.assistente-ia-section .material-icons {
	font-size: 48px !important;
	margin-bottom: 15px;
	opacity: 0.9;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Features list */
.assistente-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin: 20px 0;
	position: relative;
	z-index: 1;
}

.assistente-feature {
	background: rgba(255, 255, 255, 0.1);
	padding: 15px;
	border-radius: 8px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.assistente-feature i {
	font-size: 24px !important;
	color: #9c27b0;
	margin-bottom: 8px;
}

/* =========================================
   RESPONSIVE DESIGN - BOARDS INDEX
   ========================================= */

/* Tablets */
@media (max-width: 1024px) {
	.boards-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 16px;
		padding: 16px;
	}

	.board-card {
		min-width: 260px;
	}
}

/* Mobile Large (smartphones grandes) */
@media (max-width: 768px) {
	#main-container {
		height: 100vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.boards-grid {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 20px 12px 100px 12px; /* Ajustado para header mobile */
		padding-bottom: 100px; /* Espaço para o botão flutuante */
	}

	.board-card {
		min-width: 100%;
		min-height: 140px;
		max-width: none;
		margin: 0;
		padding: 20px;
		border-radius: 16px;
		box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
	}

	.board-card-title {
		font-size: 20px;
		margin-bottom: 12px;
	}

	.board-card-desc {
		font-size: 15px;
		max-height: 60px;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	#new-board-btn {
		bottom: 20px;
		right: 20px;
		height: 60px;
		padding: 1px !important;
		min-width: 60px;
		z-index: 1000;
		box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3) !important;
	}

	#new-board-btn .material-icons {
		margin: 0 !important;
		font-size: 28px;
	}

	#new-board-btn span:not(.material-icons) {
		display: none;
	}
}

/* Mobile Medium */
@media (max-width: 640px) {
	.boards-grid {
		padding: 10px;
		gap: 10px;
		padding-bottom: 90px;
	}

	.board-card {
		min-height: 120px;
		padding: 16px;
		border-radius: 12px;
	}

	.board-card-title {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.board-card-desc {
		font-size: 14px;
		max-height: 42px;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	#new-board-btn {
		bottom: 16px;
		right: 16px;
		height: 56px;
		padding: 1px !important;
		min-width: 56px;
		z-index: 1000;
	}

	#new-board-btn .material-icons {
		font-size: 24px;
		margin: 0 !important;
	}
}

/* Mobile Small */
@media (max-width: 480px) {
	.boards-grid {
		padding: 8px;
		gap: 8px;
		padding-bottom: 80px;
	}

	.board-card {
		min-height: 100px;
		padding: 14px;
		border-radius: 10px;
	}

	.board-card-title {
		font-size: 16px;
		margin-bottom: 6px;
		line-height: 1.2;
	}

	.board-card-desc {
		font-size: 13px;
		max-height: 36px;
		line-height: 1.3;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	#new-board-btn {
		bottom: 12px;
		right: 12px;
		height: 52px;
		padding: 1px !important;
		min-width: 52px;
		z-index: 1000;
	}

	#new-board-btn .material-icons {
		font-size: 22px;
		margin: 0 !important;
	}
}

/* Enhanced touch behavior for mobile */
@media (max-width: 768px) {
	/* Better scroll behavior */
	#main-container {
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: auto;
		scroll-behavior: smooth;
	}

	.board-card {
		-webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
		touch-action: manipulation;
		/* Minimum touch target size */
		min-height: 44px;
	}

	.board-card:hover {
		transform: none; /* Remove hover effects on touch devices */
	}

	.board-card:active {
		transform: scale(0.98);
		transition: transform 0.15s ease;
	}

	/* Better touch feedback */
	.board-card::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1%, transparent 1%);
		background-repeat: no-repeat;
		background-position: 50% 50%;
		transform: scale(0);
		transition: transform 0.3s ease;
		z-index: 3;
		pointer-events: none;
		border-radius: inherit;
	}

	.board-card:active::after {
		transform: scale(1);
	}

	/* Enhanced button touch area */
	#new-board-btn {
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
	}

	/* Subtle scale effect that works with Materialize waves */
	#new-board-btn:active {
		transform: translateY(-1px) scale(0.98);
		transition: transform 0.15s ease;
	}
}

/* Extra optimizations for very small screens */
@media (max-width: 360px) {
	.boards-grid {
		padding: 6px;
		gap: 6px;
		padding-bottom: 75px;
	}

	.board-card {
		min-height: 90px;
		padding: 12px;
		border-radius: 8px;
	}

	.board-card-title {
		font-size: 15px;
		margin-bottom: 4px;
	}

	.board-card-desc {
		font-size: 12px;
		max-height: 32px;
	}

	#new-board-btn {
		bottom: 10px;
		right: 10px;
		width: 48px;
		height: 48px;
		padding: 1px !important;
		min-width: 48px;
		z-index: 1000;
	}

	#new-board-btn .material-icons {
		font-size: 20px;
		margin: 0 !important;
	}
}

/* Dark mode adjustments for mobile boards */
@media (max-width: 768px) {
	.dark .board-card {
		border-color: rgba(255, 255, 255, 0.15);
		box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
	}

	.dark .board-card::before {
		background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
	}

	.dark .board-card:hover::before {
		background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
	}
}
	margin-bottom: 8px;
	display: block;
}

.assistente-feature strong {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
}

.assistente-feature span {
	font-size: 12px;
	opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
	#board-modal {
		width: 95% !important;
		margin: 20px auto !important;
	}

	#board-form {
		padding: 20px !important;
	}

	#board-form h5 {
		font-size: 24px !important;
	}

	.assistente-features {
		grid-template-columns: 1fr;
	}

	.assistente-ia-section {
		margin: 15px -20px;
	}
}
/* ============================================================
   FIX FINAL — layout das views do quadro sem modal
   Corrige o espaço vazio superior e mantém scroll do Kanban visível.
   Deve ficar no FINAL do quadros.css.
   ============================================================ */

html,
body {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.app-header {
    flex: 0 0 auto !important;
}

main.main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.quadro-container {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 20px !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.quadro-container > .quadro-header,
.quadro-container > #btn-voltar-list {
    flex: 0 0 auto !important;
}

.quadro-header {
    margin: 0 0 8px 0 !important;
}

#btn-voltar-list {
    margin: 0 0 10px 0 !important;
    align-self: flex-start !important;
}

.quadro-main-shell {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.96) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06) !important;
}

.quadro-view-tabs {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    background: #fff !important;
    border-bottom: 1px solid #ddd !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
}

.btn-view {
    flex: 0 0 auto !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #222 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.btn-view i {
    font-size: 16px !important;
    line-height: 1 !important;
    margin-right: 2px !important;
}

.btn-view.active {
    background: #6a1b9a !important;
    border-color: #6a1b9a !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(106,27,154,0.28) !important;
}

.quadro-view {
    display: none !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #fff !important;
}

.quadro-view.active {
    display: flex !important;
    flex-direction: column !important;
}

/* Kanban: scroll horizontal dentro da área visível. */
.quadro-view-kanban.active {
    overflow: hidden !important;
}

#view-kanban .colunas-container,
#colunas.colunas-container {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 20px 22px 18px 22px !important;
    box-sizing: border-box !important;
    scrollbar-gutter: stable !important;
    scrollbar-width: auto !important;
    scrollbar-color: #8a8a8a #eeeeee !important;
}

#colunas.colunas-container::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

#colunas.colunas-container::-webkit-scrollbar-track {
    background: #eeeeee !important;
    border-radius: 8px !important;
}

#colunas.colunas-container::-webkit-scrollbar-thumb {
    background: #8a8a8a !important;
    border-radius: 8px !important;
    border: 2px solid #eeeeee !important;
}

#colunas.colunas-container::-webkit-scrollbar-thumb:hover {
    background: #5f5f5f !important;
}

#colunas .coluna {
    flex: 0 0 250px !important;
    width: 250px !important;
    min-height: 280px !important;
    height: auto !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#colunas .coluna-header,
#colunas .nova-tarefa-container {
    flex: 0 0 auto !important;
}

#colunas .tarefas {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 2px !important;
}

/* Gantt e Calendário rolam dentro da própria view. */
.quadro-view-gantt,
.quadro-view-calendar {
    padding: 16px !important;
    overflow: auto !important;
    box-sizing: border-box !important;
}

.quadro-view-header,
.gantt-controls,
.calendar-controls {
    flex: 0 0 auto !important;
}

#gantt-chart,
.gantt-chart-container,
#calendar-container,
.calendar-chart-container,
#calendar-view {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
}

/* BPMN em página. */
.quadro-view-bpmn {
    overflow: hidden !important;
}

.bpmn-page-panel {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.bpmn-page-panel .bpmn-modal-header {
    flex: 0 0 auto !important;
}

.bpmn-page-panel .bpmn-layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.bpmn-page-panel #bpmn-container {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

/* Botões flutuantes não devem esconder o scroll horizontal. */
.btn-fixado {
    bottom: 34px !important;
    z-index: 500 !important;
}

.assistente-btn-fixo {
    z-index: 500 !important;
}

@media (max-width: 900px) {
    .quadro-container {
        padding: 10px !important;
    }

    .quadro-view-tabs {
        padding: 8px !important;
    }

    #colunas.colunas-container {
        padding: 14px 14px 18px 14px !important;
    }

    #colunas .coluna {
        flex-basis: 240px !important;
        width: 240px !important;
    }
}



/* ============================================================
   CORREÇÃO FINAL — scroll vertical da página
   Mantém o scroll horizontal do Kanban, mas libera a rolagem
   vertical no body quando o conteúdo ultrapassa a tela.
   ============================================================ */

html,
body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-items: initial !important;
    justify-content: initial !important;
}

body {
    display: block !important;
}

.main {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    padding-top: 0 !important;
}

.quadro-container {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.quadro-main-shell {
    height: auto !important;
    min-height: calc(100vh - 145px) !important;
    overflow: visible !important;
}

.quadro-view {
    height: auto !important;
    min-height: calc(100vh - 205px) !important;
    max-height: none !important;
}

.quadro-view.active {
    display: block !important;
    overflow: visible !important;
}

.quadro-view:not(.active) {
    display: none !important;
}

#view-kanban,
.quadro-view-kanban {
    overflow: visible !important;
    height: auto !important;
    min-height: calc(100vh - 205px) !important;
}

#view-kanban .colunas-container,
#colunas.colunas-container {
    height: auto !important;
    min-height: calc(100vh - 240px) !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    align-items: flex-start !important;
    padding-bottom: 28px !important;
}

/* As colunas não devem prender a altura da página. */
#colunas .coluna {
    height: auto !important;
    min-height: 280px !important;
    max-height: none !important;
    align-self: flex-start !important;
}

#colunas .tarefas {
    overflow-y: visible !important;
    overflow-x: hidden !important;
    max-height: none !important;
}

/* Gantt, Calendário e BPMN podem continuar com rolagem interna
   quando necessário, sem bloquear a página inteira. */
.quadro-view-gantt,
.quadro-view-calendar {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

.quadro-view-bpmn {
    overflow: visible !important;
    height: auto !important;
    min-height: calc(100vh - 205px) !important;
}

.bpmn-page-panel {
    height: calc(100vh - 205px) !important;
    min-height: 520px !important;
}

/* Se algum JS antigo aplicar overflow inline no Kanban, estas regras
   prevalecem visualmente pela especificidade e !important. */
body[data-quadro-view="kanban"] #colunas.colunas-container {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* ============================================================
   MENU FLUTUANTE DAS TAREFAS
   Mantém o clique do card abrindo o modal e evita que o menu
   seja cortado pela coluna. O posicionamento é calculado no JS.
   ============================================================ */
.tarefa-acoes-material.menu-flutuante {
	position: fixed !important;
	top: auto;
	left: auto;
	right: auto;
	bottom: auto;

	min-width: 160px !important;
	width: 160px !important;
	max-width: 240px !important;

	display: none !important;
	overflow: visible !important;
	z-index: 10050 !important;

	background: #ffffff !important;
	border: 1px solid #d0d0d0 !important;
	border-radius: 6px !important;
	box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.20) !important;
	padding: 4px !important;
}

.tarefa-acoes-material.menu-flutuante.visible {
	display: block !important;
}

.tarefa-acoes-material.menu-flutuante .tarefa-menu-item,
.tarefa-acoes-material.menu-flutuante button {
	width: 100% !important;
	min-width: 0 !important;
	justify-content: flex-start !important;
	text-align: left !important;
	white-space: nowrap !important;
	margin: 2px 0 !important;
}

.tarefa-menu-btn-material {
	pointer-events: auto !important;
}

/* ============================================================
   MENU FLUTUANTE DA TAREFA — ABRE PARA CIMA
   Usado junto com tarefas_menu_flutuante_para_cima.js.
   Não altera overflow de colunas/cards e não interfere no clique do modal.
   ============================================================ */
.tarefa-acoes-material.menu-flutuante {
	position: fixed !important;
	top: auto;
	left: auto;
	right: auto;
	bottom: auto;

	min-width: 170px !important;
	width: 170px !important;
	max-width: 240px !important;

	display: none !important;
	overflow: visible !important;
	z-index: 10050 !important;

	background: #ffffff !important;
	border: 1px solid #d0d0d0 !important;
	border-radius: 6px !important;
	box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.22) !important;
	padding: 4px !important;
}

.tarefa-acoes-material.menu-flutuante.visible {
	display: block !important;
}

.tarefa-acoes-material.menu-flutuante .tarefa-menu-item,
.tarefa-acoes-material.menu-flutuante button {
	width: 100% !important;
	min-width: 0 !important;
	justify-content: flex-start !important;
	text-align: left !important;
	white-space: nowrap !important;
	margin: 2px 0 !important;
}

.tarefa-menu-btn-material {
	pointer-events: auto !important;
}


/* ============================================================
   CORREÇÃO ASSERTIVA — menu de ações da tarefa acima da coluna
   - O JS move .tarefa-acoes-material para o body e usa position: fixed.
   - Estas regras impedem herança/corte da coluna e destacam a coluna ativa.
   ============================================================ */

.tarefa-card.menu-aberto {
    position: relative !important;
    z-index: 2147482000 !important;
}

.coluna.coluna-menu-aberto {
    position: relative !important;
    z-index: 2147481000 !important;
    overflow: visible !important;
}

.coluna.coluna-menu-aberto .tarefas,
.tarefas.tarefas-menu-aberto {
    position: relative !important;
    z-index: 2147481001 !important;
    overflow: visible !important;
}

.tarefa-acoes-material.menu-flutuante,
body > .tarefa-acoes-material.menu-flutuante {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;

    display: none !important;
    overflow: visible !important;
    z-index: 2147483000 !important;

    background: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.22) !important;
    padding: 4px !important;
}

.tarefa-acoes-material.menu-flutuante.visible,
body > .tarefa-acoes-material.menu-flutuante.visible {
    display: block !important;
    pointer-events: auto !important;
}

.tarefa-acoes-material.menu-flutuante .tarefa-menu-item,
.tarefa-acoes-material.menu-flutuante button,
body > .tarefa-acoes-material.menu-flutuante .tarefa-menu-item,
body > .tarefa-acoes-material.menu-flutuante button {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    white-space: nowrap !important;
    margin: 2px 0 !important;
    pointer-events: auto !important;
}

.tarefa-menu-btn-material {
    pointer-events: auto !important;
}


/* ============================================================
   AJUSTES FINAIS — GANTT/CALENDÁRIO EM VIEW PRINCIPAL
   Corrige área estreita, min-height zerado e scroll incorreto.
   ============================================================ */

.quadro-main-shell {
	width: 100% !important;
	max-width: none !important;
	min-height: calc(100vh - 170px) !important;
	overflow: visible !important;
	box-sizing: border-box !important;
}

.quadro-view {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box !important;
}

.quadro-view-gantt,
.quadro-view-calendar {
	display: none;
	width: 100% !important;
	max-width: none !important;
	min-height: calc(100vh - 190px) !important;
	overflow: visible !important;
	box-sizing: border-box !important;
}

.quadro-view-gantt.active,
.quadro-view-calendar.active {
	display: block !important;
}

.quadro-view-gantt .gantt-chart-container,
#gantt-chart.gantt-chart-container {
	display: block !important;
	flex: none !important;
	width: 100% !important;
	min-width: 1200px !important;
	max-width: none !important;
	height: calc(100vh - 260px) !important;
	min-height: 560px !important;
	max-height: none !important;
	overflow: auto !important;
	padding: 20px 12px 40px 12px !important;
	box-sizing: border-box !important;
	background: #fff !important;
}

#gantt-chart svg {
	display: block !important;
	min-width: 1200px !important;
	width: max-content !important;
	height: auto !important;
	max-width: none !important;
}

.quadro-view-calendar .calendar-chart-container,
#calendar-container.calendar-chart-container,
#calendar-view {
	display: block !important;
	flex: none !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 620px !important;
	height: auto !important;
	overflow: auto !important;
	box-sizing: border-box !important;
	background: #fff !important;
}

#calendar-view .fc {
	width: 100% !important;
	min-height: 600px !important;
}


/* ============================================================
   CTA PRINCIPAL — NOVO QUADRO
   Manter no final do arquivo para prevalecer sobre regras antigas.
   ============================================================ */
.new-board-cta {
    position: fixed !important;
    right: 28px !important;
    bottom: 28px !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 10px 10px 18px !important;
    border: 1px solid rgba(102,126,234,.20) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 18px 48px rgba(44,55,110,.20), 0 4px 14px rgba(102,126,234,.14) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease !important;
}
.new-board-cta:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(102,126,234,.42) !important;
    box-shadow: 0 24px 58px rgba(44,55,110,.24), 0 8px 22px rgba(102,126,234,.20) !important;
}
.new-board-cta-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 185px !important;
    line-height: 1.18 !important;
    pointer-events: none !important;
}
.new-board-cta-copy strong {
    color: #1f275f !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}
.new-board-cta-copy small {
    margin-top: 3px !important;
    color: #6d7391 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}
#new-board-btn {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    min-width: 156px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 20px 0 12px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg,#5f6ff0 0%,#7b4fd6 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(102,94,224,.34), inset 0 1px 0 rgba(255,255,255,.24) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    cursor: pointer !important;
    overflow: hidden !important;
    opacity: 1 !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
#new-board-btn::after {
    content: '' !important;
    position: absolute !important;
    top: -55% !important;
    left: -45% !important;
    width: 34% !important;
    height: 210% !important;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.52),transparent) !important;
    transform: rotate(18deg) !important;
    transition: left .55s ease !important;
    pointer-events: none !important;
}
#new-board-btn:hover {
    transform: translateY(-2px) scale(1.015) !important;
    filter: saturate(1.08) !important;
    box-shadow: 0 16px 34px rgba(102,94,224,.42), inset 0 1px 0 rgba(255,255,255,.28) !important;
    opacity: 1 !important;
}
#new-board-btn:hover::after { left: 120% !important; }
#new-board-btn:active { transform: translateY(0) scale(.98) !important; }
#new-board-btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(95,111,240,.20), 0 14px 30px rgba(102,94,224,.38) !important;
}
.new-board-btn-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.17) !important;
}
#new-board-btn .material-icons {
    margin: 0 !important;
    font-size: 23px !important;
    line-height: 1 !important;
    color: #fff !important;
}
.new-board-btn-label { display: inline-block !important; white-space: nowrap !important; }
.new-board-cta.is-inviting { animation: new-board-cta-lift 1.15s ease-in-out 2 !important; }
.new-board-cta.is-inviting #new-board-btn { animation: new-board-btn-pulse 1.15s ease-in-out 2 !important; }
@keyframes new-board-cta-lift {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes new-board-btn-pulse {
    0%,100% { box-shadow: 0 12px 26px rgba(102,94,224,.34), 0 0 0 0 rgba(95,111,240,.26); }
    50% { box-shadow: 0 16px 34px rgba(102,94,224,.44), 0 0 0 12px rgba(95,111,240,0); }
}
.boards-grid { padding-bottom: 128px !important; }
body.dark .new-board-cta {
    background: rgba(31,34,54,.95) !important;
    border-color: rgba(139,126,255,.28) !important;
}
body.dark .new-board-cta-copy strong { color: #f2f3ff !important; }
body.dark .new-board-cta-copy small { color: #b8bad0 !important; }

@media (max-width: 900px) {
    .new-board-cta {
        right: 18px !important;
        bottom: 18px !important;
        padding: 8px !important;
        border-radius: 19px !important;
    }
    .new-board-cta-copy { display: none !important; }
    #new-board-btn {
        min-width: 150px !important;
        height: 56px !important;
        padding: 0 18px 0 11px !important;
        border-radius: 15px !important;
    }
    .boards-grid { padding-bottom: 104px !important; }
}
@media (max-width: 520px) {
    .new-board-cta { right: 14px !important; bottom: 14px !important; }
    #new-board-btn {
        min-width: 0 !important;
        width: 58px !important;
        height: 58px !important;
        padding: 0 !important;
        border-radius: 18px !important;
    }
    .new-board-btn-icon {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }
    .new-board-btn-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0,0,0,0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    .boards-grid { padding-bottom: 96px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .new-board-cta, #new-board-btn, #new-board-btn::after {
        animation: none !important;
        transition: none !important;
    }
}
