/* SC-EMR Admin Portal */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* Navbar brand */
.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Status badges */
.badge-online { background-color: #198754; }
.badge-offline { background-color: #dc3545; }
.badge-degraded { background-color: #fd7e14; }
.badge-unknown { background-color: #6c757d; }

/* Instance cards */
.instance-card {
    transition: border-color 0.2s;
    cursor: pointer;
}
.instance-card:hover {
    border-color: #0d6efd;
}

/* Status dot */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-dot.online { background-color: #198754; }
.status-dot.offline { background-color: #dc3545; }
.status-dot.unknown { background-color: #6c757d; }

/* Stat cards */
.stat-card {
    border-left: 4px solid;
}
.stat-card.primary { border-left-color: #0d6efd; }
.stat-card.success { border-left-color: #198754; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.danger { border-left-color: #dc3545; }

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

/* Audit log table */
.audit-detail {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Connection test spinner */
.test-spinner {
    display: none;
}
.testing .test-spinner {
    display: inline-block;
}
.testing .test-text {
    display: none;
}
