/* ─── Fontes ──────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;600;700&family=Merriweather:wght@300;400&display=swap');

/* ─── Variáveis ───────────────────────────────────────────────────────────── */

:root {
  --color-primary: #20515F;
  --color-beige:   #DDD0C6;
  --color-light:   #E5EBEA;
  --color-gray:    #737271;
  --color-white:   #FFFFFF;
}

/* ─── Reset básico ────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* ─── Navegação lateral ───────────────────────────────────────────────────── */

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  color: rgba(255,255,255,0.7);
  font-family: 'League Spartan', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
}

.nav-link:hover,
.nav-link-ativo {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── Campos de formulário ────────────────────────────────────────────────── */

.campo-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  font-family: 'Merriweather', serif;
}

.campo-input {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #DDD0C6;
  border-radius: 7px;
  font-family: 'Merriweather', serif;
  font-size: 0.85rem;
  color: #1a1a1a;
  background: #FAFAFA;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.campo-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #FFFFFF;
}

select.campo-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23737271' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
}

/* ─── Botões ──────────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 7px;
  font-family: 'League Spartan', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary:hover   { background: #1a404c; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-beige);
  border-radius: 7px;
  font-family: 'League Spartan', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.btn-secondary:hover { background: var(--color-light); border-color: var(--color-primary); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #c0392b;
  border: 1.5px solid #f5c6c6;
  border-radius: 7px;
  font-family: 'League Spartan', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.btn-danger:hover { background: #fff0f0; }

/* ─── Chips de formato ────────────────────────────────────────────────────── */

.formato-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--color-beige);
  border-radius: 99px;
  font-family: 'Merriweather', serif;
  font-size: 0.78rem;
  color: var(--color-gray);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  user-select: none;
}

.formato-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

.formato-chip-ativo {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

/* ─── Badges de doença ────────────────────────────────────────────────────── */

.badge-doenca {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'League Spartan', sans-serif;
  color: white;
  letter-spacing: 0.03em;
}

/* ─── Toasts ──────────────────────────────────────────────────────────────── */

#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-family: 'Merriweather', serif;
  font-size: 0.82rem;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: auto;
}

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

.toast-ok   { background: #20515F; }
.toast-erro { background: #c0392b; }
.toast-info { background: #2980b9; }

/* ─── Cards de ideia ──────────────────────────────────────────────────────── */

.idea-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.idea-card:hover {
  border-color: var(--color-beige);
  box-shadow: 0 3px 14px rgba(32,81,95,0.1);
}

/* ─── Kanban ──────────────────────────────────────────────────────────────── */

.kanban-col {
  min-width: 220px;
  width: 220px;
  background: var(--color-light);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.kanban-col-header {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.25rem 0.5rem;
  border-bottom: 2px solid var(--color-beige);
}

.kanban-card {
  background: white;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  cursor: grab;
  border-left: 3px solid transparent;
  transition: box-shadow 0.12s;
  font-size: 0.8rem;
}

.kanban-card:active { cursor: grabbing; }
.kanban-card:hover  { box-shadow: 0 3px 10px rgba(0,0,0,0.12); }

/* Estados de drag do SortableJS */
.kanban-ghost   { opacity: 0.35; background: var(--color-light); }
.kanban-chosen  { box-shadow: 0 6px 20px rgba(32,81,95,0.18); }
.kanban-drag    { opacity: 0.9; }

/* Área de drop mínima quando coluna está vazia */
.kanban-lista:empty {
  min-height: 80px;
  border: 2px dashed var(--color-beige);
  border-radius: 8px;
  background: rgba(221,208,198,0.1);
}

/* ─── Carousel Builder ────────────────────────────────────────────────────── */

.car-slide-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 7px;
  cursor: pointer;
  font-family: 'Merriweather', serif;
  font-size: 0.75rem;
  color: var(--color-gray);
  transition: background 0.1s;
  position: relative;
}
.car-slide-item:hover { background: var(--color-light); }
.car-slide-item:hover .car-slide-del { opacity: 1 !important; }
.car-slide-ativo {
  background: rgba(32, 81, 95, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

.car-slide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--color-beige);
  font-family: 'League Spartan', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.car-slide-ativo .car-slide-num {
  background: var(--color-primary);
  color: white;
}

.car-slide-tipo {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-slide-del {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #ccc;
  transition: color 0.12s, opacity 0.12s;
  opacity: 0;
}

/* ─── Scrollbar personalizada ─────────────────────────────────────────────── */

::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-beige); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c0b5ab; }
