body {
    background: #0b1220;
    color: #eaf0ff;
}

.card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
}

.muted {
    color: rgba(234,240,255,.72);
}

textarea.form-control {
    background: rgba(255,255,255,.08);
    color: #eaf0ff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
}

    textarea.form-control::placeholder {
        color: rgba(234,240,255,.55);
    }

    textarea.form-control:focus {
        background: rgba(255,255,255,.10);
        border-color: rgba(90,200,255,.55);
        box-shadow: 0 0 0 .25rem rgba(90,200,255,.20);
        color: #eaf0ff;
    }

.btn-primary {
    border-radius: 14px;
}

.btn-outline-light {
    border-radius: 14px;
}

/* Highlight styling */
.highlight-wrap {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 14px;
    min-height: 120px;
    white-space: pre-wrap;
    line-height: 1.9;
    font-size: 1.02rem;
}

.ent {
    padding: .15rem .35rem;
    border-radius: .5rem;
    border: 1px solid rgba(255,255,255,.25);
    font-weight: 600;
    position: relative;
    margin: 0 .08rem;
}

    /* label tag shown on top-right of entity */
    .ent::after {
        content: attr(data-label);
        font-size: .70rem;
        font-weight: 800;
        padding: .10rem .35rem;
        border-radius: 999px;
        margin-left: .35rem;
        opacity: .95;
        border: 1px solid rgba(0,0,0,.25);
        color: #0b1220;
        background: rgba(255,255,255,.85);
    }

/* Default colors by label (you can add more) */
.label-CHEMICAL {
    background: rgba(92, 255, 171, .22);
    border-color: rgba(92, 255, 171, .55);
}

.label-PERSON {
    background: rgba(90, 200, 255, .22);
    border-color: rgba(90, 200, 255, .55);
}

.label-ORG {
    background: rgba(255, 198, 90, .22);
    border-color: rgba(255, 198, 90, .55);
}

.label-LOC {
    background: rgba(255, 90, 160, .22);
    border-color: rgba(255, 90, 160, .55);
}

.legend-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.05);
    margin-right: .4rem;
    margin-bottom: .4rem;
    font-weight: 600;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.35);
}

    .dot.label-CHEMICAL {
        background: rgba(92,255,171,.75);
    }

    .dot.label-PERSON {
        background: rgba(90,200,255,.75);
    }

    .dot.label-ORG {
        background: rgba(255,198,90,.75);
    }

    .dot.label-LOC {
        background: rgba(255,90,160,.75);
    }

.table {
    color: #eaf0ff;
}

    .table thead th {
        color: rgba(234,240,255,.75);
    }

    .table td, .table th {
        border-color: rgba(255,255,255,.10) !important;
    }

.spinner-border {
    width: 1.1rem;
    height: 1.1rem;
}
