/* ============================================
   CHANGELOG WIDGET - Estilos
   shared_modules/changelog/css
   ============================================ */

/* Badge "novidades" no menu */
.chg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}
.chg-badge.is-hidden { display: none; }

/* Modal swal2 do widget */
.swal2-popup.chg-modal {
    width: 1000px !important;
    max-width: 95vw;
    padding: 0 !important;
}
.swal2-popup.chg-modal .swal2-html-container {
    padding: 0 !important;
    margin: 0 !important;
    max-height: 80vh;
    overflow-y: auto;
}

/* Filtros topo */
.chg-filtros {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 1fr 200px 200px auto;
    gap: 10px;
    align-items: end;
}
.chg-filtros label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-align: left;
}
.chg-filtros input, .chg-filtros select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: white;
}
.chg-btn-marcar-todos {
    background: #2450A6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    height: 35px;
}
.chg-btn-marcar-todos:hover { background: #1E3A8A; }

/* Timeline de cards */
.chg-lista {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.chg-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 18px;
    transition: box-shadow 0.15s;
}
.chg-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.chg-card.is-nao-visto { background: linear-gradient(135deg, #fef3c7 0%, white 60%); }
.chg-card.is-destaque { border-left-color: #f59e0b; }

.chg-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.chg-protocolo {
    font-family: monospace;
    font-size: 11px;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.chg-data {
    font-size: 12px;
    color: #64748b;
}
.chg-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.chg-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.chg-chip-tipo-NOVA_FUNCIONALIDADE { background: #dbeafe; color: #1e40af; }
.chg-chip-tipo-CORRECAO            { background: #fee2e2; color: #991b1b; }
.chg-chip-tipo-MELHORIA            { background: #d1fae5; color: #065f46; }
.chg-chip-tipo-SEGURANCA           { background: #fef3c7; color: #78350f; }
.chg-chip-tipo-AVISO               { background: #ede9fe; color: #5b21b6; }
.chg-chip-modulo {
    background: #f1f5f9;
    color: #334155;
}
.chg-chip-destaque {
    background: #fef3c7;
    color: #92400e;
}
.chg-chip-nao-visto {
    background: #dc3545;
    color: white;
}

.chg-titulo {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 4px 0 6px 0;
}
.chg-descricao {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}
.chg-descricao p { margin: 0 0 6px 0; }
.chg-descricao strong { color: #334155; }
.chg-descricao code {
    font-family: monospace;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
    color: #be185d;
}
.chg-tags {
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
}

.chg-vazio {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
}
