/* ============ Ecomtrack Projetos ============ */
:root {
    --et-azul: #1F6FEB;
    --et-azul-escuro: #1A5FD6;
    --et-texto: #1F2328;
    --et-fundo: #F5F7FB;
    --et-borda: #E3E8EF;
    --et-coluna: #EEF2F7;
    --bs-primary: #1F6FEB;
    --bs-primary-rgb: 31, 111, 235;
    --bs-link-color: #1F6FEB;
    --bs-link-color-rgb: 31, 111, 235;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--et-texto);
    --bs-body-bg: var(--et-fundo);
}

body { font-size: .925rem; }
.min-w-0 { min-width: 0; }

.btn-primary { --bs-btn-bg: var(--et-azul); --bs-btn-border-color: var(--et-azul); --bs-btn-hover-bg: var(--et-azul-escuro); --bs-btn-hover-border-color: var(--et-azul-escuro); --bs-btn-active-bg: #164fb3; }
.btn-outline-primary { --bs-btn-color: var(--et-azul); --bs-btn-border-color: var(--et-azul); --bs-btn-hover-bg: var(--et-azul); --bs-btn-hover-border-color: var(--et-azul); }
.form-control:focus, .form-select:focus { border-color: #86b2f7; box-shadow: 0 0 0 .2rem rgba(31,111,235,.15); }

/* ---------- Logo ---------- */
.et-logo { display: inline-flex; align-items: center; gap: .55rem; }
.et-logo img { border-radius: 8px; }
.et-logo-text { font-size: 1.3rem; font-weight: 500; color: #1F2328; letter-spacing: -.02em; }
.et-logo-text strong { color: var(--et-azul); font-weight: 700; }
.et-logo-lg .et-logo-text { font-size: 2rem; }
.et-logo-lg img { border-radius: 11px; }
.et-badge-app { font-size: .7rem; font-weight: 600; color: var(--et-azul); background: #E8F0FE; border-radius: 6px; padding: .15rem .45rem; margin-left: .5rem; vertical-align: middle; }

/* ---------- Navbar ---------- */
.et-navbar { background: #fff; border-bottom: 1px solid var(--et-borda); }
.et-navbar .nav-link { color: #57606A; font-weight: 500; border-radius: 8px; padding: .4rem .75rem !important; }
.et-navbar .nav-link:hover { color: var(--et-texto); background: #F3F5F8; }
.et-navbar .nav-link.active { color: var(--et-azul); background: #E8F0FE; }

/* ---------- Avatar ---------- */
.et-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: .75rem; font-weight: 600; flex-shrink: 0; }
.et-avatar-sm { width: 24px; height: 24px; font-size: .62rem; }

/* ---------- Painéis ---------- */
.et-painel { background: #fff; border: 1px solid var(--et-borda); border-radius: 14px; padding: 1.25rem; }
.et-lista { border-radius: 12px; }
.et-lista .list-group-item { border-color: var(--et-borda); }
.et-vazio { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed #CBD3DE; border-radius: 14px; color: #57606A; }
.et-vazio i { font-size: 2.2rem; color: #A5B1C2; }
.et-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }

/* ---------- Projeto (card da lista) ---------- */
.et-projeto { display: block; background: #fff; border: 1px solid var(--et-borda); border-radius: 14px; padding: 1rem 1.1rem; color: inherit; text-decoration: none; border-top: 4px solid var(--cor); transition: box-shadow .15s, transform .15s; }
.et-projeto:hover { box-shadow: 0 6px 20px rgba(16,24,40,.08); transform: translateY(-2px); color: inherit; }
.et-projeto-topo { display: flex; gap: .75rem; align-items: center; }
.et-projeto-icone { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cor) 14%, white); color: var(--cor); font-size: 1.1rem; flex-shrink: 0; }

/* Seletor de cor */
.et-cor input { display: none; }
.et-cor span { display: block; width: 30px; height: 30px; border-radius: 8px; background: var(--cor); cursor: pointer; border: 3px solid transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.et-cor input:checked + span { border-color: #fff; box-shadow: 0 0 0 2px var(--cor); }

/* ---------- Prioridade ---------- */
.et-prio { display: inline-block; font-size: .68rem; font-weight: 600; padding: .1rem .45rem; border-radius: 5px; text-transform: uppercase; letter-spacing: .02em; }
.prio-baixa { background: #EEF1F4; color: #57606A; }
.prio-media { background: #E8F0FE; color: #1A5FD6; }
.prio-alta { background: #FFF1E0; color: #BC4C00; }
.prio-urgente { background: #FFE5E8; color: #CF222E; }

/* ============ QUADRO (Kanban) ============ */
.et-body-quadro { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.et-quadro-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.et-quadro-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem 1.5rem; background: #fff; border-bottom: 1px solid var(--et-borda); }
.et-quadro { flex: 1; display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding: 1rem 1.5rem 1.5rem; min-height: 0; }

.et-coluna { flex: 0 0 290px; background: var(--et-coluna); border-radius: 14px; display: flex; flex-direction: column; max-height: 100%; }
.et-coluna.concluida { background: #EAF5EE; }
.et-coluna-topo { display: flex; align-items: center; gap: .4rem; padding: .7rem .8rem .5rem; }
.et-coluna-nome { font-weight: 600; font-size: .88rem; }
.et-coluna-alca { cursor: grab; color: #9AA5B4; }
.et-contador { font-size: .72rem; background: rgba(0,0,0,.07); color: #57606A; border-radius: 10px; padding: 0 .45rem; font-weight: 600; }
.et-coluna-cards { flex: 1; overflow-y: auto; padding: .15rem .55rem; min-height: 40px; display: flex; flex-direction: column; gap: 8px; }
.et-coluna-rodape { padding: .4rem .55rem .6rem; }
.et-coluna-nova { background: transparent; border: 2px dashed #CBD3DE; padding: .75rem; }

.et-card { display: block; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(16,24,40,.08); border: 1px solid transparent; color: inherit; text-decoration: none; overflow: hidden; cursor: pointer; }
.et-card:hover { border-color: #9DBCF5; color: inherit; }
.et-card-capa { width: 100%; height: 130px; object-fit: cover; display: block; background: #F3F5F8; }
.et-card-corpo { padding: .6rem .7rem; }
.et-card-titulo { font-weight: 500; margin: .3rem 0 .4rem; line-height: 1.3; word-break: break-word; }
.et-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .76rem; color: #6E7781; }
.et-data { padding: .05rem .35rem; border-radius: 5px; }
.et-data.atrasado { background: #FFE5E8; color: #CF222E; font-weight: 600; }
.et-data.hoje { background: #FFF4D6; color: #9A6700; font-weight: 600; }
.et-data.ok { background: #DDF4E4; color: #1A7F37; }
.et-card.sortable-ghost { opacity: .35; }
.et-card.sortable-drag { transform: rotate(2deg); box-shadow: 0 10px 25px rgba(16,24,40,.2); }
.et-coluna.sortable-ghost { opacity: .4; }

/* ============ DETALHES DO CARD ============ */
.et-titulo-input { font-size: 1.35rem; font-weight: 600; border-color: transparent; padding-left: .5rem; }
.et-titulo-input:hover { border-color: var(--et-borda); }
.et-lateral { position: sticky; top: 80px; }
.et-meta dt { font-weight: 500; color: #6E7781; }
.et-meta dd { margin-bottom: .4rem; }

.et-dropzone { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; border: 2px dashed #B9C6DA; border-radius: 12px; padding: 1.3rem; cursor: pointer; color: #57606A; background: #FAFCFF; transition: .15s; }
.et-dropzone:hover, .et-dropzone.arrastando { border-color: var(--et-azul); background: #EEF4FF; color: var(--et-azul); }

.et-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.et-midia { margin: 0; border: 1px solid var(--et-borda); border-radius: 10px; overflow: hidden; background: #fff; }
.et-midia img { width: 100%; height: 130px; object-fit: cover; cursor: zoom-in; display: block; background: #F3F5F8; }
.et-midia figcaption { display: flex; justify-content: space-between; gap: .4rem; font-size: .75rem; padding: .35rem .5rem; align-items: center; }
.et-midia-acoes { display: inline-flex; gap: .6rem; flex-shrink: 0; }
.et-midia-acoes a { color: #57606A; }
.et-video video { width: 100%; max-height: 480px; border-radius: 10px; background: #000; }

.et-link { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-top: 1px solid #F0F2F5; }

.et-comentario { display: flex; gap: .7rem; padding: .75rem 0; border-top: 1px solid #F0F2F5; }
.et-comentario-texto { white-space: pre-wrap; word-break: break-word; margin-top: .15rem; }

/* ============ LOGIN ============ */
.et-login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 20% 10%, #E3EDFF 0, transparent 45%), radial-gradient(circle at 90% 90%, #E8F0FE 0, transparent 40%), var(--et-fundo); }
.et-login { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--et-borda); border-radius: 18px; padding: 2.25rem; box-shadow: 0 20px 50px rgba(16,24,40,.08); margin: 1rem; }

@media (max-width: 576px) {
    .et-quadro { padding: .75rem; }
    .et-quadro-topo { padding: .75rem; }
    .et-coluna { flex-basis: 85vw; }
}
