/* Shared by Instruments.razor and InstrumentOverview.razor */
.instr-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.pill-online  { background: rgba(40, 167, 69, .15);  color: #28a745; }
.pill-offline { background: rgba(108, 117, 125, .12); color: #6c757d; }
.pill-on      { background: rgba(253, 126, 20, .15);  color: #fd7e14; }
.pill-off     { background: rgba(108, 117, 125, .10); color: #adb5bd; }
.pill-alarm   { background: rgba(220, 53, 69, .15);   color: #dc3545; animation: instr-pulse-icon 1.5s infinite; }
.pill-online i { animation: instr-pulse-icon 2s infinite; }

.instr-name-link {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.instr-name-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

@keyframes instr-pulse-icon {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
