/* Styling for the shared TFG evaluation fragment (_tfgEvaluationFragment.html):
   the nota cards, the rubric nivell chips, and the weight/score chips. Extracted
   from the fragment's inline <style> so the 5 templates that include the fragment
   share a single cached stylesheet instead of re-emitting the CSS per include. */

.nota-container {
    border: 2px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}
.nota-container:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); }

/* Rubric nivells rendered as outlined chip boxes — same look as the
   estat-filter buttons on /publica/tfgs. The hidden radio still
   drives the :checked + .nivell-chip-label::before selectors so we
   keep accessibility and form-submission. */
.nivell-chip {
    position: relative;
    margin: 0.15rem 0.25rem 0.15rem 0;
    padding: 0;
    display: inline-flex;
}
.nivell-chip input[type=radio] {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}
.nivell-chip input[type=radio]:disabled { cursor: default; }
.nivell-chip-label {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 999px;
    background: #fff;
    color: var(--text-strong);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
    user-select: none;
    transition: border-color .15s ease-in-out, background-color .15s ease-in-out, color .15s ease-in-out;
}
/* Hover only when the underlying radio is enabled (i.e. the page
   is actually editable). Read-only views stay static. */
.nivell-chip input[type=radio]:not(:disabled):hover + .nivell-chip-label,
.nivell-chip input[type=radio]:not(:disabled):focus + .nivell-chip-label {
    border-color: var(--urv-accent);
    color: var(--urv-accent);
}
/* Selected state — filled with the URV red so the answer pops. */
.nivell-chip input[type=radio]:checked + .nivell-chip-label {
    background-color: var(--urv-accent);
    border-color: var(--urv-accent);
    color: #fff;
}

/* Weight / score chips: outlined box, white background, colored border
   and font. Three variants for grup-ponderacio (gray), grup-puntuacio
   (green), and criteri-ponderacio (blue) — replaces the filled
   bg-secondary / bg-success / bg-info badges. */
.rubric-chip {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background-color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
}
.rubric-chip--weight { color: var(--text-strong); }      /* keep gray for grup ponderacio */
.rubric-chip--score  { color: #146c43; }      /* keep green for grup puntuacio */
.rubric-chip--criteri { color: #0f6cbd; }     /* new blue for criteri ponderacio */
