/* =========================================================
   HEADER
   ========================================================= */

.cg-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cg-title-text {
    display: flex;
    flex-direction: column;
}

.cg-title-sub {
    font-size: 0.82rem;
    opacity: 0.75;
}

.cg-title-actions {
    display: flex;
    gap: 10px;
}

/* Bouton carré style GIL */
.cg-btn-square {
    width: 36px;
    height: 36px;
    border-radius: 8px;

    background: #111827;
    border: 1px solid rgba(160,160,255,0.35);
    color: #e0e0ff;

    font-size: 1.2rem;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow:
        0 0 6px rgba(180,150,255,0.25),
        inset 0 0 4px rgba(160,140,255,0.20);

    transition: 0.15s ease;
}

.cg-btn-square:hover {
    border-color: rgba(220,220,255,0.9);
    box-shadow:
        0 0 12px rgba(190,150,255,0.45),
        inset 0 0 8px rgba(200,160,255,0.25);
}

/* =========================================================
   TABLEAU
   ========================================================= */

.cg-compare-table {
    width: 100%;
    border-collapse: collapse;
}

.cg-compare-table th,
.cg-compare-table td {
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cg-compare-table th {
    font-size: 0.95rem;
    color: #d8dcff;
}

.cg-compare-table tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   PASTILLE + COULEURS CATÉGORIES
   ========================================================= */

.essentiel { color: #28a745 !important; }
.important { color: #ffc107 !important; }
.plaisir   { color: #b57aff !important; }

.compare-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.compare-dot.essentiel { background: #28a745; }
.compare-dot.important { background: #ffc107; }
.compare-dot.plaisir   { background: #b57aff; }

.compare-amount {
    font-weight: 600;
}

/* =========================================================
   PANEL PARAMETRES
   ========================================================= */

.hidden {
    display: none;
}

.cg-settings {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* Titre */
.cg-param-title {
    color: #e6e6ff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

/* Liste */
.priority-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Une ligne = Nom | Catégorie | Modifier */
.priority-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
}

.priority-row:last-child {
    border-bottom: none;
}

/* Nom et catégorie */
.p-fund {
    font-weight: 600;
}

.p-prio {
    font-weight: 700;
}

/* Couleurs */
.p-fund.essentiel, .p-prio.essentiel { color: #28a745; }
.p-fund.important, .p-prio.important { color: #ffc107; }
.p-fund.plaisir,   .p-prio.plaisir   { color: #b57aff; }

/* Bouton Modifier */
.p-edit {
    all: unset;
    cursor: pointer;
    color: #88aaff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 4px;
    transition: 0.15s ease-in-out;
}

.p-edit:hover {
    color: #ff4d4d !important;
}
