/* ==========================================================================
   Kanban Board — Planejamento de Posts
   ========================================================================== */
.kanban-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap; /* Garante 1 linha única sem quebras */
  margin-bottom: 16px;
  padding: 8px 14px;
  background: var(--brand-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  overflow-x: auto;
}

.kanban-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-secondary);
  white-space: nowrap;
}

.kanban-filter-group i {
  color: var(--brand-accent);
}

.kanban-select-filter {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  max-width: 170px;
}

.kanban-select-filter:focus {
  border-color: var(--brand-accent);
}

/* Botão Toggle de Agrupamento por Rede / Tipo no Toolbar */
.btn-kanban-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-kanban-toggle:hover {
  border-color: var(--brand-accent);
  background: #F8FDFD;
}

.btn-kanban-toggle i {
  color: #64748B;
  transition: color 0.2s ease;
}

.btn-kanban-toggle.active {
  background: #EDF9FB;
  border-color: var(--brand-accent);
  color: #077A8C;
}

.btn-kanban-toggle.active i {
  color: var(--brand-accent);
}

.kanban-toggle-switch {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 16px;
  background-color: #CBD5E1;
  border-radius: 10px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.kanban-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-kanban-toggle.active .kanban-toggle-switch {
  background-color: var(--brand-accent);
}

.btn-kanban-toggle.active .kanban-toggle-switch::after {
  transform: translateX(12px);
}

.kanban-date-inputs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.kanban-date-filter {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 4px 7px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  width: 122px;
  transition: border-color 0.2s ease;
}

.kanban-date-filter:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 2px rgba(9, 193, 220, 0.15);
}

.date-separator {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-clear-dates {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  font-size: 11px;
  border-radius: 5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-clear-dates:hover {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #EF4444;
}


.kanban-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.kanban-search-box i {
  position: absolute;
  left: 10px;
  color: var(--text-dim);
  font-size: 12px;
}

.kanban-search-box input {
  padding: 5px 10px 5px 28px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  width: 360px;
  outline: none;
  transition: all 0.2s ease;
}

.kanban-search-box input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(9, 193, 220, 0.15);
}

/* Indicador Visual de Sincronização com o Google Sheets (Largura Fixa e Alinhado à Direita) */
.kanban-sync-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  user-select: none;
  flex-shrink: 0;
  width: 175px;
  min-width: 175px;
  max-width: 175px;
  box-sizing: border-box;
  text-align: center;
}

.kanban-sync-status.status-saved {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
}

.kanban-sync-status.status-saved i {
  color: #10B981;
}

.kanban-sync-status.status-saving {
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  color: #0891B2;
}

.kanban-sync-status.status-saving i {
  color: #06B6D4;
}

.kanban-sync-status.status-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}

.kanban-sync-status.status-error i {
  color: #EF4444;
}

/* Kanban Board Layout (6 Colunas Abertas e Otimizadas) */
#tab-planejamento-posts .card {
  padding: 22px 18px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(210px, 1fr));
  gap: 12px;
  align-items: stretch;
  min-height: 520px;
  overflow-x: auto;
  padding-bottom: 12px;
}

@media (max-width: 1440px) {
  .kanban-board {
    grid-template-columns: repeat(6, 220px);
    gap: 10px;
  }
}

.kanban-column {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  background: #FFFFFF;
}

.col-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.col-title h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-secondary);
  white-space: nowrap;
}

.col-icon {
  font-size: 14px;
}

.kanban-col-badge {
  background: #F1F5F9;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

/* Accent Header Borders */
.col-ideias { border-bottom-color: #F59E0B; }
.col-ideias .kanban-col-badge { background: rgba(245, 158, 11, 0.15); color: #D97706; }

.col-rascunhos { border-bottom-color: #3B82F6; }
.col-rascunhos .kanban-col-badge { background: rgba(59, 130, 246, 0.15); color: #2563EB; }

.col-gerar-por-ia { border-bottom-color: #09C1DC; }
.col-gerar-por-ia .kanban-col-badge { background: rgba(9, 193, 220, 0.15); color: #07A7C0; }

.col-em-revisao { border-bottom-color: #F97316; }
.col-em-revisao .kanban-col-badge { background: rgba(249, 115, 22, 0.15); color: #EA580C; }

.col-programados { border-bottom-color: #8B5CF6; }
.col-programados .kanban-col-badge { background: rgba(139, 92, 246, 0.15); color: #7C3AED; }

.col-publicados { border-bottom-color: #10B981; }
.col-publicados .kanban-col-badge { background: rgba(16, 185, 129, 0.15); color: #059669; }

/* Kanban Dropzone Content */
.kanban-col-content {
  padding: 10px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 440px;
  transition: background-color 0.2s ease;
}

.kanban-col-content.drag-over {
  background-color: rgba(9, 193, 220, 0.08);
  border: 2px dashed var(--brand-accent);
}

/* Kanban Cards */
.kanban-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-base);
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: grab;
  transition: all 0.2s ease;
  position: relative;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 50, 58, 0.08);
  border-color: var(--brand-accent);
}

.kanban-card-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 6px;
}

.kanban-tag-channel {
  background: #F1F5F9;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* Rodapé do Card do Kanban (Tag de Data Agendada após a descrição) */
.kanban-card-footer {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.kanban-tag-month {
  background: rgba(9, 193, 220, 0.1);
  color: #07A7C0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Tag de data/hora de agendamento já ultrapassada / vencida */
.kanban-tag-month.is-past {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Tag de data/hora para posts já publicados */
.kanban-tag-month.is-published {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Card na etapa Programados com horário de agendamento já atingido */
.kanban-card.is-scheduled-past {
  border-color: #FCD34D;
  border-left: 4px solid #D97706;
  background: #FFFDF8;
}

.kanban-card.is-scheduled-past:hover {
  border-color: #F59E0B;
  border-left-color: #B45309;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.14);
}

/* Botão de Duplicar Card */
.btn-card-duplicate {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-card-duplicate:hover {
  background: rgba(9, 193, 220, 0.12);
  border-color: var(--brand-accent);
  color: #07A7C0;
  transform: scale(1.1);
}

/* Botão de Excluir Card no Kanban */
.btn-card-delete {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-card-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: #DC2626;
  transform: scale(1.1);
}

/* Placeholder de destino visual durante o arraste no Kanban */
.kanban-drag-placeholder {
  min-height: 44px;
  background: rgba(9, 193, 220, 0.07);
  border: 2px dashed var(--brand-accent);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  font-size: 11.5px;
  font-weight: 700;
  gap: 6px;
  margin: 4px 0;
  pointer-events: none;
  transition: all 0.15s ease;
  animation: fadeInPlaceholder 0.15s ease-in-out;
}

.kanban-drag-placeholder .placeholder-line {
  flex: 1;
  height: 1px;
  background: rgba(9, 193, 220, 0.3);
  margin: 0 10px;
}

.kanban-drag-placeholder .placeholder-text {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

@keyframes fadeInPlaceholder {
  from { opacity: 0; transform: scaleY(0.7); }
  to { opacity: 1; transform: scaleY(1); }
}

.kanban-card.dragging {
  opacity: 0.35;
  border: 1.5px dashed var(--brand-accent);
  background: #F8FAFC;
  box-shadow: none;
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-secondary);
  line-height: 1.35;
  margin-bottom: 5px;
  word-break: break-word;
}

.kanban-card-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.kanban-empty-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 10px;
  color: var(--text-dim);
  font-size: 12px;
  border: 1.5px dashed #E2E8F0;
  border-radius: var(--radius-base);
  margin-top: 10px;
  min-height: 140px;
  pointer-events: none;
  user-select: none;
}

.kanban-empty-col * {
  pointer-events: none;
}

.btn-card-nav {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-card-nav:hover {
  background: rgba(9, 193, 220, 0.12);
  border-color: var(--brand-accent);
  color: #07A7C0;
}


.post-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-modal-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-delete-post-modal {
  color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  transition: all 0.2s ease;
}

.btn-delete-post-modal:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: #EF4444 !important;
  color: #DC2626 !important;
}

.kanban-empty-col i {
  font-size: 20px;
  margin-bottom: 6px;
  opacity: 0.6;
}

/* Base Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid rgba(9, 193, 220, 0.3);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Espaçamentos e Estilos do Modal de Postagens (Layout 2 Colunas Executivo)
   ========================================================================== */
.post-modal-container {
  max-width: 1220px;
  width: 95vw;
  height: 88vh;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  background: #FFFFFF;
}

#kanban-post-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.post-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.post-modal-split-grid {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 24px;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Coluna 1: Metadados, Canais e Mídias com scroll independente */
.post-modal-meta-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  padding-right: 14px;
  min-height: 0;
}

.post-modal-meta-col::-webkit-scrollbar {
  width: 6px;
}
.post-modal-meta-col::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}
.post-modal-meta-col::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.post-modal-meta-col::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Coluna 2: Editor Amplo de Conteúdo / Revisão */
.post-modal-editor-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px 18px;
  gap: 10px;
}

.editor-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.editor-col-header label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.editor-counter-badge {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #E2E8F0;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}

.post-modal-editor-col textarea#modal-post-content {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: #0F172A;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.post-modal-editor-col textarea#modal-post-content:focus {
  border-color: #09C1DC;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(9, 193, 220, 0.15);
}

.post-modal-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.post-modal-body label {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1px;
}

.post-modal-body input[type="text"],
.post-modal-body input[type="date"],
.post-modal-body input[type="time"],
.post-modal-body select {
  width: 100%;
  padding: 10px 13px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  color: #0F172A;
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: all 0.2s ease;
  outline: none;
}

.post-modal-body input[type="text"]:focus,
.post-modal-body input[type="date"]:focus,
.post-modal-body input[type="time"]:focus,
.post-modal-body select:focus {
  border-color: #09C1DC;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(9, 193, 220, 0.15);
}

.post-datetime-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  width: 100%;
}

.post-datetime-grid .datetime-input-group {
  width: 100%;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

@media (max-width: 980px) {
  .post-modal-container {
    height: 94vh;
    max-height: 94vh;
  }
  .post-modal-body {
    overflow-y: auto;
  }
  .post-modal-split-grid {
    grid-template-columns: 1fr;
    overflow-y: visible;
  }
  .post-modal-meta-col {
    overflow-y: visible;
    padding-right: 0;
  }
  .post-modal-editor-col {
    min-height: 400px;
  }
}

@media (max-width: 580px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
}

.post-modal-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-modal-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-modal-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Chips Interativos de Seleção de Canais (Radio / Seleção Única) */
.channel-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.channel-chip-btn {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.channel-chip-btn input[type="checkbox"],
.channel-chip-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.channel-chip-btn:hover .chip-badge {
  border-color: #09C1DC;
  background: rgba(9, 193, 220, 0.08);
}

.channel-chip-btn input[type="checkbox"]:checked + .chip-badge,
.channel-chip-btn input[type="radio"]:checked + .chip-badge {
  background: rgba(9, 193, 220, 0.15);
  border-color: #09C1DC;
  color: #07A7C0;
  box-shadow: 0 0 0 2px rgba(9, 193, 220, 0.2);
  font-weight: 700;
}

/* Sistema de Toasts Elegante */
.nc-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  pointer-events: none;
}

.nc-toast {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--brand-accent);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.nc-toast.nc-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.nc-toast-msg {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}

.nc-toast i {
  color: var(--brand-accent);
  font-size: 18px;
  flex-shrink: 0;
}

.nc-toast-success {
  border-left-color: #10B981;
}
.nc-toast-success i {
  color: #10B981;
}

.nc-toast-info {
  border-left-color: #09C1DC;
}
.nc-toast-info i {
  color: #09C1DC;
}

.nc-toast-warning {
  border-left-color: #F59E0B;
}
.nc-toast-warning i {
  color: #F59E0B;
}

.nc-toast-error {
  border-left-color: #EF4444;
}
.nc-toast-error i {
  color: #EF4444;
}

.nc-toast-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 4px;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nc-toast-close:hover {
  color: #475569;
}

/* Badge de foto nos cards do Kanban */
.kanban-tag-image {
  background: rgba(139, 92, 246, 0.12);
  color: #7C3AED;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Seção de Upload & Prévia de Imagem no Modal de Post */
.hidden-file-input {
  display: none !important;
}

.post-image-upload-box {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-base);
  padding: 10px 14px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.post-image-upload-box:hover {
  border-color: var(--brand-accent);
  background: #F1F5F9;
}

.image-upload-placeholder {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

@media (max-width: 540px) {
  .image-upload-placeholder {
    flex-direction: column;
    gap: 8px;
  }
}

.image-upload-placeholder .upload-icon {
  font-size: 18px;
  color: var(--brand-accent);
  flex-shrink: 0;
}

.image-upload-placeholder span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  flex: 1;
}

.btn-select-file {
  background: var(--brand-secondary);
  color: #FFFFFF;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-select-file:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.image-upload-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 600;
}

.image-preview-container {
  display: flex;
  justify-content: center;
}

.image-preview-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #CBD5E1;
}

.image-preview-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #000000;
}

.image-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88), transparent);
  padding: 12px 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.btn-image-action {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-view-image {
  background: #09C1DC;
  color: #FFFFFF;
}

.btn-view-image:hover {
  background: #07A7C0;
}

.btn-delete-image {
  background: #EF4444;
  color: #FFFFFF;
}

.btn-delete-image:hover {
  background: #DC2626;
}

/* Multi-Image Grid Styles */
.image-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.image-preview-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1.5px solid #CBD5E1;
  background: #0F172A;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.image-preview-card:hover img {
  transform: scale(1.05);
}

.image-preview-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-preview-card:hover .image-preview-card-overlay {
  opacity: 1;
}

.paste-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748B;
  background: #F1F5F9;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #CBD5E1;
  margin-top: 4px;
}

.upload-methods-hints {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* ==========================================================================
   Kanban Swimlanes (Raiais / Linhas por Rede & Tipo de Post)
   ========================================================================== */
.kanban-swimlanes-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 16px;
}

.kanban-swimlanes-container.hidden,
.kanban-board.hidden {
  display: none !important;
}

/* Cabeçalho das 6 Etapas no topo das Swimlanes */
.kanban-swimlanes-header {
  display: grid;
  grid-template-columns: repeat(6, minmax(210px, 1fr));
  gap: 12px;
  min-width: 1300px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--brand-surface, #F8FDFD);
  padding: 6px 0;
  margin-bottom: -4px;
}

@media (max-width: 1440px) {
  .kanban-swimlanes-header {
    grid-template-columns: repeat(6, 220px);
    gap: 10px;
    min-width: 1370px;
  }
}

.swimlanes-col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-base);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.swimlanes-col-badge {
  background: #E2E8F0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Raia Individual (Swimlane) */
.kanban-swimlane {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-base);
  min-width: 1300px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.2s ease;
}

@media (max-width: 1440px) {
  .kanban-swimlane {
    min-width: 1370px;
  }
}

.kanban-swimlane:hover {
  border-color: #CBD5E1;
}

.kanban-swimlane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.kanban-swimlane-header:hover {
  background: #F1F5F9;
}

.swimlane-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swimlane-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swimlane-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-secondary);
  margin: 0;
}

.swimlane-count-badge {
  background: #E2E8F0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.swimlane-toggle-btn {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.15s ease;
}

.swimlane-toggle-btn:hover {
  background: #E2E8F0;
  color: var(--brand-secondary);
}

.kanban-swimlane.collapsed .kanban-swimlane-grid {
  display: none !important;
}

.kanban-swimlane.collapsed .swimlane-toggle-btn i {
  transform: rotate(180deg);
}

.kanban-swimlane.collapsed .kanban-swimlane-header {
  border-bottom: none;
}

/* Grid de 6 colunas dentro da Raia */
.kanban-swimlane-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(210px, 1fr));
  gap: 12px;
  padding: 12px;
  align-items: stretch;
  background: #FAFBFD;
}

@media (max-width: 1440px) {
  .kanban-swimlane-grid {
    grid-template-columns: repeat(6, 220px);
    gap: 10px;
  }
}

.kanban-swimlane-cell {
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.kanban-swimlane-cell:hover {
  border-color: #94A3B8;
}

.kanban-swimlane-cell .kanban-col-content {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 90px;
  background: transparent;
}

.swimlane-empty-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: 70px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
  user-select: none;
}

.kanban-col-content:has(.kanban-card) .swimlane-empty-placeholder,
.kanban-col-content:has(#kanban-drag-placeholder) .swimlane-empty-placeholder {
  display: none !important;
}


