/* Base strong button */
.btn-strong {
    font-weight: 600;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

    /* Prevent Bootstrap from overriding hover colors */
    .btn-strong:hover,
    .btn-strong:focus,
    .btn-strong:active {
        color: #fff !important;
        filter: brightness(1.05); /* subtle highlight without going white */
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.45);
    }

    /* Prevent active state from flashing white */
    .btn-strong:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }

/* High‑contrast variants */
.btn-log {
    background-color: #455A64 !important;
}

.btn-team {
    background-color: #0d47a1 !important;
}

.btn-alarm {
    background-color: #b36b00 !important;
}

.btn-feeding {
    background-color: #1b5e20 !important;
}

.btn-heartbeat {
    background-color: #8b0000 !important;
}

.btn-user {
    background-color: #006666 !important;
}

.btn-admin {
    background-color: #424242 !important;
}

.btn-dashboard {
    background-color: #008080 !important;
}

/* -----------------------------------------------------------
   HEARTBEAT INDICATOR
----------------------------------------------------------- */
.heartbeat-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    animation: heartbeat-pulse 1.2s infinite ease-in-out;
}

    .heartbeat-indicator.running {
        background-color: #28a745; /* Bootstrap success green */
    }

    .heartbeat-indicator.stopped {
        background-color: #dc3545; /* Bootstrap danger red */
        animation: none;
    }

@keyframes heartbeat-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* -----------------------------------------------------------
   STATUS BADGES
----------------------------------------------------------- */
.status-badge {
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.85rem;
}

    .status-badge.running {
        background-color: #28a745;
        color: #fff;
    }

    .status-badge.stopped {
        background-color: #6c757d;
        color: #fff;
    }

.status-inactive {
    color: #999 !important;
    font-style: italic;
}

/* -----------------------------------------------------------
   ESCALATION LEVEL COLORS (for alarm cards)
----------------------------------------------------------- */
.border-warning {
    border-color: #fbc02d !important;
}

.border-orange {
    border-color: #ff9800 !important;
}

.border-danger {
    border-color: #d32f2f !important;
}

.border-dark {
    border-color: #424242 !important;
}

/* -----------------------------------------------------------
   ALARM ITEM CARD LAYOUT
----------------------------------------------------------- */
.card .text-break {
    word-break: break-word;
}

.card .small {
    line-height: 1.3;
}

/* -----------------------------------------------------------
   PROGRESS BAR (Escalation Percentage)
----------------------------------------------------------- */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    transition: width 0.4s ease;
}

/* -----------------------------------------------------------
   TABLE ENHANCEMENTS
----------------------------------------------------------- */
table.table td small {
    color: #666;
}

table.table td code {
    color: #444;
    background: #f1f1f1;
    padding: 2px 4px;
    border-radius: 4px;
}

/* -----------------------------------------------------------
   SYSTEM INFO CARDS
----------------------------------------------------------- */
.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card ul,
.card ol {
    padding-left: 1.2rem;
}

    .card ul li,
    .card ol li {
        margin-bottom: 4px;
    }

/* -----------------------------------------------------------
   REFRESH HINT BOX
----------------------------------------------------------- */
.alert-light {
    background-color: #fafafa;
    border-color: #e0e0e0;
}

/* -----------------------------------------------------------
   SECTION TITLES
----------------------------------------------------------- */
h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}
